per page, with , order by , clip by
Results of 1 - 10 of about 15 for signed (0.009 sec.)
array --- 効率的な数値配列 12504
array --- 効率的な数値配列 This module defines an object type which can compactly represent an array of basic values: characters, integers, floating-point numbers. Arrays are mutable sequence types and behave very much like lists, except th ... is a single character. The following type codes are defined: 型コード C の型 Python の型 最小サイズ (バイト単位) 注釈 'b' signed char int 1 'B' unsigned char int 1 'u' wchar_t Unicode 文字 2 (1) 'w' Py_UCS4 Unicode 文字 4 (2) 'h' signed short int 2 'H ... ' unsigned short int 2 'i' signed int int 2 'I' unsigned int int 2 'l' signed long int 4 'L' unsigned long int 4 'q' signed long long ... int 8 'Q' unsigned long long int 8 'f' 浮動小数点数 浮動小数点数 4 'd' double 浮動小数点数 8 注釈: プラットフォームによって、16 ビットの場合と ...
https://man.mtool.work/python/3.14/library/array.html
10. 完全な文法仕様 12017
10. 完全な文法仕様 以下は Python の完全な文法で、CPython のパーサを生成するための文法から直接得たものです ( Grammar/python.gram を参照)。 ここでは、コード生成とエラー回復に関する詳細を省略しています。 ここで使う記法は、これまでのドキュメント ... rn | mapping_pattern | class_pattern # Literal patterns are used for equality and identity constraints literal_pattern : | signed_number ! ( '+' | '-' ) | complex_number | strings | 'None' | 'True' | 'False' # Literal expressions are used to restrict p ... ermitted mapping pattern keys literal_expr : | signed_number ! ( '+' | '-' ) | complex_number | strings | 'None' | 'True' | 'False' complex_number : | signed_real_number '+' im ... aginary_number | signed_real_number '-' imaginary_number signed_number : | NUMBER | '-' NUMBER signed_real_number : | real_number | '-' real_numbe ...
https://man.mtool.work/python/3.14/reference/grammar.html
組み込み型 10519
組み込み型 以下のセクションでは、インタプリタに組み込まれている標準型について記述します。 主要な組み込み型は、数値、シーケンス、マッピング、クラス、インスタンス、および例外です。 コレクションクラスには、ミュータブルなものがあります。コレクシ ... ( self ): return bin ( self ) . count ( "1" ) Added in version 3.10. int. to_bytes ( length = 1 , byteorder = 'big' , * , signed = False ) 整数を表すバイト列を返します。 >>> ( 1024 ) . to_bytes ( 2 , byteorder = 'big' ) b'\x04\x00' >>> ( 1024 ) . to_b ... 10 , byteorder = 'big' ) b'\x00\x00\x00\x00\x00\x00\x00\x00\x04\x00' >>> ( - 1024 ) . to_bytes ( 10 , byteorder = 'big' , signed = True ) b'\xff\xff\xff\xff\xff\xff\xff\xff\xfc\x00' >>> x = 1000 >>> x . to_bytes (( x . bit_length () + 7 ) // 8 , byteo ... g" なら、最上位のバイトがバイト配列の最初に来ます。 byteorder が "little" なら、最上位のバイトがバイト配列の最後に来ます。 signed 引数は、整数を表すのに 2 の補数を使うかどうかを決定します。 signed が False で、負の整数が与えられたなら、 OverflowError が ...
https://man.mtool.work/python/3.14/builtins/stdtypes.html
ctypes --- Python 用の外部関数ライブラリ 10275
ctypes --- Python 用の外部関数ライブラリ ソースコード: Lib/ctypes ctypes は Python 用の外部関数ライブラリです。 C と互換性のあるデータ型を提供し、DLL や共有ライブラリの関数を呼び出せます。 これらのライブラリを純粋な Python でラップするために ... _type_ c_bool _Bool bool '?' c_char char 1 文字の bytes 'c' c_wchar wchar_t 1 文字の str 'u' c_byte char int 'b' c_ubyte unsigned char int 'B' c_short short int 'h' c_ushort unsigned short int 'H' c_int int int 'i' * c_int8 int8_t int * c_int16 int16_t ... int * c_int32 int32_t int * c_int64 int64_t int * c_uint unsigned int int 'I' * c_uint8 uint8_t int * c_uint16 uint16_t int * c_uint32 uint32_t int * c_uint64 uint64_t int * c_long long in ... t 'l' c_ulong unsigned long int 'L' c_longlong long long int 'q' * c_ulonglong unsigned long long int 'Q' * c_size_t size_t int * c_ssize_t Py_ss ...
https://man.mtool.work/python/3.14/library/ctypes.html
8. 複合文 (compound statement) 9526
8. 複合文 (compound statement) 複合文には、他の文 (のグループ) が入ります; 複合文は、中に入っている他の文の実行の制御に何らかのやり方で影響を及ぼします。一般的には、複合文は複数行にまたがって書かれますが、全部の文を一行に連ねた単純な書き方も ... います。 8.6.4.3. リテラルパターン リテラルパターンは、一部を除く Python の リテラル に対応します。 構文: literal_pattern : signed_number | signed_number "+" NUMBER | signed_number "-" NUMBER | strings | "None" | "True" | "False" signed_number : [ "-" ] ... で定義されています。 三重引用符で囲んだ文字列、raw 文字列、バイト文字列を使えます。 f-strings と t-strings は使えません。 signed_number '+' NUMBER と signed_number '-' NUMBER という構文は 複素数 を表現するためのものです。 そのため、左側には実数、右側に ...
https://man.mtool.work/python/3.14/reference/compound_stmts.html
decimal --- 10進固定小数点と浮動小数点の演算 8028
decimal --- 10進固定小数点と浮動小数点の演算 ソースコード: Lib/decimal.py decimal モジュールは、高速で正しく丸められる 10 進浮動小数点演算をサポートします。 float データ型に比べて次のような利点があります: Decimal は「人間を念頭に設計された ... 限大または NaN であれば False を返します。 is_qnan ( ) 引数が無言 NaN であれば True を、そうでなければ False を返します。 is_signed ( ) 引数に負の符号がついていれば True を、そうでなければ False を返します。注意すべきはゼロや NaN なども符号を持ち得ること ... します。そうでなければ False です。 is_qnan ( x , / ) x が無言 NaN であれば True を返します。そうでなければ False です。 is_signed ( x , / ) x が負の数であれば True を返します。そうでなければ False です。 is_snan ( x , / ) x が発信 NaN であれば True を返 ... を貫くなら、 compare() および compare_signal() メソッドを代わりに使いましょう。 アンダフローの起きた計算は、符号付きのゼロ (signed zero) を返すことがあります。符号は、より高い精度で計算を行った結果の符号と同じになります。符号付きゼロの大きさはやはりゼロ ...
https://man.mtool.work/python/3.14/library/decimal.html
email.generator: MIME 文書の生成 7784
email.generator : MIME 文書の生成 ソースコード: Lib/email/generator.py メッセージオブジェクトの構造で表された電子メールメッセージから、フラットな (直列化された) 表現を生成することは、よく行う処理の一つです。 smtplib.SMTP.sendmail() で送信し ... ンテンツ転送エンコーディングを使います。 SMIME で署名されたメッセージを再現可能な形で処理できるよう、 Generator は multipart/signed 型のパートとそのすべてのサブパートで、ヘッダーの折り返しを無効にします。 class email.generator. BytesGenerator ( outfp , m ...
https://man.mtool.work/python/3.14/library/email.generator.html
5. macOS で Python を使う 7784
5. macOS で Python を使う このドキュメントでは、Mac コンピュータで Python を使い始める際に知っておくべき、macOS 固有の挙動を概説します。 macOS を実行する Mac 上の Python は、ほかの Unix 派生プラットフォーム上の Python と非常によく似ています ... sigstore signature, etc) for each file is included on the release download page. Installer packages and their contents are signed and notarized with Python Software Foundation Apple Developer ID certificates to meet macOS Gatekeeper requirements . For ...
https://man.mtool.work/python/3.14/using/mac.html
引数の解釈と値の構築 7541
引数の解釈と値の構築 これらの関数は、独自の拡張関数やメソッドを作成するときに便利です。 追加の情報や例は Python インタプリタの拡張と埋め込み を参照してください。 最初に説明する 3 つの関数、 PyArg_ParseTuple() , PyArg_ParseTupleAndKeywords() ... する特殊メソッド __index__() 、 __float__() 、 __complex__() で Python オブジェクトを必要な型に変換することもできます。 For signed integer formats, OverflowError is raised if the value is out of range for the C type. For unsigned integer formats, no ran ... the most significant bits are silently truncated when the receiving field is too small to receive the value. b ( int ) [unsigned char] 負でない Python 整数を小さい符号なし整数に変換し、C の unsigned char に格納します。 B ( int ) [unsigned char] Conver ... t a Python integer to a tiny integer without overflow checking, stored in a C unsigned char . h ( int ) [short int] Python の整数を、 C の short int 型に変換します。 H ( int ) [unsigned short int] Convert a Py ...
https://man.mtool.work/python/3.14/c-api/arg.html
はじめに 7541
はじめに Python のアプリケーションプログラマー向けインターフェース (API) は、C と C++ のプログラマーに、Python インタープリタへのさまざまなレベルのアクセスを提供します。 C++ からも同様に使えますが、簡潔に Python/C API と呼びます。 Python/C ... は使われず、後方互換性のためだけに残されています。 以前は、 integer のキャストに使っていました。 バージョン 3.1 で変更: unsigned type が有効な型だけでなく、すべての符号付き整数型で使えるようになりました。 そのため、 type は使われなくなりました。 Py_CH ... ARMASK ( c ) 引数は、文字か、[-128, 127] または [0, 255] の範囲の整数でなければなりません。 このマクロは c を unsigned char にキャストして返します。 PY_BIG_ENDIAN PY_LITTLE_ENDIAN Constants describing the byte order of the platform that Pyth ... C11 standard _Alignas specifier over this macro. Py_LL ( number ) Py_ULL ( number ) number を、それぞれ long long または unsigned long long の整数リテラルとして使います。 それぞれ、 number の後ろに LL または LLU を付けたものに展開されます。 ただし、一部 ...
https://man.mtool.work/python/3.14/c-api/intro.html
PREV 1 2 NEXT