Results of 1 - 10 of about 22 for digit (0.006 sec.)
- 整数型オブジェクト (integer object) 13231
- 整数型オブジェクト (integer object) すべての整数は任意の長さをもつ "long" 整数として実装されます。 エラーが起きると、ほとんどの PyLong_As* API は (return type)-1 を返しますが、これは数値と見分けが付きません。 見分けを付けるためには PyErr_Oc
...であれば、その値を返します。 それ以外の場合、戻り値は未定義です。 Added in version 3.12. Build configuration PYLONG_BITS_IN_DIGIT The number of bits in each digit of CPython's native representation of integers. The value can currently be either 30 (the...default) or 15 , selected with --enable-big-digits when building Python. To access the native representation of integers, use PyLong_GetNativeLayout() and its bits_per_digi...きい」整数に内部で使われるレイアウトです。 Python で同様の情報を提供する sys.int_info も参照してください。 uint8_t bits_per_digit 1 桁あたりのビット数です。 例えば 15 ビットの桁では、ビット 0–14 が意味のある情報を持ちます。 uint8_t digit_size バイト単位... - https://man.mtool.work/python/3.14/c-api/long.html
- unicodedata --- Unicode データベース 12474
- unicodedata --- Unicode データベース This module provides access to the Unicode Character Database (UCD) which defines character properties for all Unicode characters. The data contained in this database is compiled from the UCD version 16.
...lt を指定していなければ ValueError を送出します。 例えば次のようになります。 >>> unicodedata . decimal ( ' \N{ARABIC-INDIC DIGIT NINE} ' ) 9 >>> unicodedata . decimal ( ' \N{SUPERSCRIPT NINE} ' , - 1 ) -1 unicodedata. digit ( chr , default = None , /...します。 値が定義されていなければ default を返し、 default を指定していなければ ValueError を送出します。 >>> unicodedata . digit ( ' \N{SUPERSCRIPT NINE} ' ) 9 unicodedata. numeric ( chr , default = None , / ) 文字 chr に割り当てられた数値を浮動小数点...Database documentation for a list of bidirectional codes. For example: >>> unicodedata . bidirectional ( ' \N{ARABIC-INDIC DIGIT SEVEN} ' ) # 'A'rabic (アラビア)、'N'umber (数字) 'AN' unicodedata. combining ( chr ) Returns the canonical combining clas... - https://man.mtool.work/python/3.14/library/unicodedata.html
- 1. はじめに 11228
- 1. はじめに このリファレンスマニュアルは、Python プログラミング言語自体に関する記述です。チュートリアルとして書かれたものではありません。 私は本マニュアルをできるだけ正確に書こうとする一方で、文法や字句解析以外の全てについて、形式化された仕
...解析と構文の説明には、 EBNF と PEG を組み合わせた文法の記法を使います。 例えば次のようになります。 name : letter ( letter | digit | "_" )* letter : "a" ... "z" | "A" ... "Z" digit : "0" ... "9" この例の最初の行は、 name が letter で始まり、その後に let...ter 、 digit 、アンダースコアが 0 個以上続くことを示しています。 letter は 'a' から 'z' 、または A から Z までのいずれか 1 文字で、 dig... - https://man.mtool.work/python/3.14/reference/introduction.html
- 2. 字句解析 9460
- 2. 字句解析 Python プログラムは パーザ によって読み取られます。 パーザへの入力は、 字句解析器 (または トークナイザ ) が生成した トークン の列です。 この章では、字句解析器がこれらのトークンを生成する方法を説明します。 字句解析器はプログラムの
...ルは次の字句定義で表されます。 integer : decinteger | bininteger | octinteger | hexinteger | zerointeger decinteger : nonzerodigit ([ "_" ] digit )* bininteger : "0" ( "b" | "B" ) ([ "_" ] bindigit )+ octinteger : "0" ( "o" | "O" ) ([ "_" ] octdigit )+...hexinteger : "0" ( "x" | "X" ) ([ "_" ] hexdigit )+ zerointeger : "0" + ([ "_" ] "0" )* nonzerodigit : "1" ... "9" digit : "0" ... "9" bindigit : "0" | "1" octdigit : "0"...... "7" hexdigit : digit | "a" ... "f" | "A" ... "F" バージョン 3.6 で変更: グループ化を目的としたリテラル中のアンダースコアが許されるように... - https://man.mtool.work/python/3.14/reference/lexical_analysis.html
- string --- 一般的な文字列操作 8972
- string --- 一般的な文字列操作 ソースコード: Lib/string/__init__.py 参考 テキストシーケンス型 --- str 文字列メソッド 文字列定数 このモジュールで定義されている定数は以下の通りです: string. ascii_letters 後述の ascii_lowercase と ascii_upperca
...ず、固定です。 string. ascii_uppercase 大文字 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 。この値はロケールに依存せず、固定です。 string. digits 文字列 '0123456789' です。 string. hexdigits 文字列 '0123456789abcdefABCDEF' です。 string. octdigits 文字列 '01234567' で...の文字列です: !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ . string. printable Python が表示可能とみなす ASCII 文字からなる文字列です。 digits 、 ascii_letters 、 punctuation 、 whitespace を組み合わせたものです。 注釈 仕様上、 string.printable.isprintable() は Fa...] [ ":" format_spec ] "}" field_name : arg_name ( "." attribute_name | "[" element_index "]" )* arg_name : [ identifier | digit +] attribute_name : identifier element_index : digit + | index_string index_string : <any source character except "]" > +... - https://man.mtool.work/python/3.14/library/string.html
- decimal --- 10進固定小数点と浮動小数点の演算 8467
- decimal --- 10進固定小数点と浮動小数点の演算 ソースコード: Lib/decimal.py decimal モジュールは、高速で正しく丸められる 10 進浮動小数点演算をサポートします。 float データ型に比べて次のような利点があります: Decimal は「人間を念頭に設計された
...末尾の空白および全てのアンダースコアを取り除いた後には以下の 10進数文字列の文法に従わなければなりません: sign : := '+' | '-' digit : := '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' indicator : := 'e' | 'E' digits : := digit [ digit ] ... de...cimal - part : := digits '.' [ digits ] | [ '.' ] digits exponent - part : := indicator [ sign ] digits infinity : := 'Infinity' | 'Inf' nan : :=...'NaN' [ digits ] | 'sNaN' [ digits ] numeric - value : := decimal - part [ exponent - part ] | infinity numeric - string : := [ sign ] n... - https://man.mtool.work/python/3.14/library/decimal.html
- 組み込み関数 8215
- 組み込み関数 Python インタプリタには数多くの関数と型が組み込まれており、いつでも利用できます。それらをここにアルファベット順に挙げます。 組み込み関数 A abs() aiter() all() anext() any() ascii() B bin() bool() breakpoint() bytearray() bytes(
...た入力が、以下の文法の floatvalue の生成規則に従う必要があります: sign : "+" | "-" infinity : "Infinity" | "inf" nan : "nan" digit : <a Unicode decimal digit, i.e. characters in Unicode general category Nd> digitpart : digit ([ "_" ] digit )* number : [...digitpart ] "." digitpart | digitpart [ "." ] exponent : ( "e" | "E" ) [ sign ] digitpart floatnumber : number [ exponent ] absf...および、 0 以上の整数を引数とする __getitem__() メソッド) をサポートするオブジェクトでなければなりません。 round ( number , ndigits = None ) number を小数点以下 ndigits 桁の精度で丸めた値を返します。 ndigits が省略されたり、 None だった場合、入力値に最も... - https://man.mtool.work/python/3.14/builtins/functions.html
- What's New In Python 3.1 8215
- What's New In Python 3.1 著者 : Raymond Hettinger この記事では Python 3.0 と比較した Python 3.1 の新機能を説明します。 Python 3.1 は 2009 年 6 月 27 日にリリースされました。 PEP 372: 順序付き辞書 通常の Python 辞書は、 key/value ペアを不定の
...bit マシンで 2**30 ベースを、 32 bit マシンで 2**15 ベースを使用します。 Unix では新たな configure オプション --enable-big-digits が追加されました。 これにより上記のデフォルトを上書き出来ます。 この変更は性能向上以外ではエンドユーザには分からないはずで...のビット数と各数字の格納に使われる C の型のバイトサイズが分かります: >>> import sys >>> sys . int_info sys.int_info(bits_per_digit=30, sizeof_digit=4) (Contributed by Mark Dickinson; bpo-4258 .) PyLong_AsUnsignedLongLong() 関数は負の pylong に対し TypeE... - https://man.mtool.work/python/3.14/whatsnew/3.1.html
- 文字列の変換と書式化 7962
- 文字列の変換と書式化 数値変換と、書式化文字列出力のための関数群。 int PyOS_snprintf ( char * str , size_t size , const char * format , ... ) 次に属します: Stable ABI . 書式文字列 format と追加の引数から、 size バイトを超えない文字列を str に
...( c ) 文字 c が英数字の場合に真を返します。 Py_ISALPHA ( c ) 文字 c が英字 ( a-z または A-Z ) の場合に真を返します。 Py_ISDIGIT ( c ) 文字 c が 10 進数字 ( 0-9 ) の場合に真を返します。 Py_ISLOWER ( c ) 文字 c が ASCII の英小文字 ( a-z ) の場合に真を返...。 Py_ISSPACE ( c ) 文字 c が空白文字 (スペース、タブ、復帰、改行、垂直タブ、フォームフィード) の場合に真を返します。 Py_ISXDIGIT ( c ) 文字 c が 16 進数字 ( 0-9 、 a-f 、 A-F ) の場合に真を返します。 Py_TOLOWER ( c ) 文字 c に対応する小文字を返します。...The following constants are bit masks used by the character classification macros above: PY_CTF_ALNUM PY_CTF_ALPHA PY_CTF_DIGIT PY_CTF_LOWER PY_CTF_SPACE PY_CTF_UPPER PY_CTF_XDIGIT Values used internally by the Py_IS* classification macros above. Exp... - https://man.mtool.work/python/3.14/c-api/conversion.html
- sys --- システム固有のパラメーターと関数 7962
- sys --- システム固有のパラメーターと関数 このモジュールは、インタープリタが使用または管理する変数と、インタープリタに密接に関わる関数を提供します。 常に利用できます。 特に明記されていない限り、すべての変数は読み出し専用です。 sys. abiflags
...domization -R flags. dev_mode -X dev ( Python 開発モード ) flags. utf8_mode -X utf8 flags. safe_path -P flags. int_max_str_digits -X int_max_str_digits ( 整数文字列変換の長さ制限 ) flags. warn_default_encoding -X warn_default_encoding flags. gil -X gi...した。 バージョン 3.11 で変更: -P オプションに対応する safe_path 属性が追加されました。 バージョン 3.11 で変更: int_max_str_digits 属性が追加されました。 バージョン 3.13 で変更: gil 属性が追加されました。 バージョン 3.14 で変更: thread_inherit_context...ig needs further explanation. If s is any string representing a decimal number with at most sys.float_info.dig significant digits, then converting s to a float and back again will recover a string representing the same decimal value: >>> import sys >>... - https://man.mtool.work/python/3.14/library/sys.html