Results of 1 - 10 of about 436 for bytes (0.040 sec.)
- 組み込み型 — Python 3.14.8 ドキュメント 8883
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み型 テーマ 自動 ライト ダーク | 組み込み型 ¶ 以下のセクションでは、インタプリタに組み込まれている標準型について記述します。 主
.... bit_count () 3 次と等価です: def bit_count ( self ): return bin ( self ) . count ( "1" ) Added in version 3.10. int. to_bytes ( length = 1 , byteorder = 'big' , * , signed = False ) ¶ 整数を表すバイト列を返します。 >>> ( 1024 ) . to_bytes ( 2 , byt...eorder = 'big' ) b'\x04\x00' >>> ( 1024 ) . to_bytes ( 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 , byteorder = 'little' ) b'\xe8\x03' 整数は length バイトで表されます、デフォルト値は 1 で... - https://man.mtool.work/python/3.14/builtins/stdtypes.html
- 組み込み型 — Python 3.14.8 ドキュメント 8683
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み型 テーマ 自動 ライト ダーク | 組み込み型 ¶ 以下のセクションでは、インタプリタに組み込まれている標準型について記述します。 主
.... bit_count () 3 次と等価です: def bit_count ( self ): return bin ( self ) . count ( "1" ) Added in version 3.10. int. to_bytes ( length = 1 , byteorder = 'big' , * , signed = False ) ¶ 整数を表すバイト列を返します。 >>> ( 1024 ) . to_bytes ( 2 , byt...eorder = 'big' ) b'\x04\x00' >>> ( 1024 ) . to_bytes ( 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 , byteorder = 'little' ) b'\xe8\x03' 整数は length バイトで表されます、デフォルト値は 1 で... - https://man.mtool.work/python/3.14/builtins/stdtypes.html
- base64 --- Base16, Base32, Base64, Base85 データのエンコード — Python 3.14.8 ド... 8192
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » base64 --- Base16, Base32, Base64, Base85 データのエンコード テーマ 自動 ライト ダーク | base64 --
...d variants of Base85 used elsewhere. このモジュールは、2つのインターフェースを提供します。このモダンなインターフェースは、 bytes-like object を ASCII bytes にエンコードし、 bytes-like object か ASCII 文字列を、 bytes にデコードすることができます。 RFC...icode 文字列を受け付けるようになりました。 バージョン 3.4 で変更: このモジュールのすべてのエンコード・デコード関数が任意の bytes-like オブジェクト を受け取るようになりました。Ascii85/Base85 のサポートが追加されました。 RFC 4648 エンコーディング ¶ RFC...TP POST リクエストの一部に含めるために用いるのに適しています。 base64. b64encode ( s , altchars = None ) ¶ Base64 を使って bytes-like object の s をエンコードし、エンコードされた bytes を返します。 オプション引数 altchars は長さ 2 の bytes-like object... - https://man.mtool.work/python/3.14/library/base64.html
- base64 --- Base16, Base32, Base64, Base85 データのエンコード — Python 3.14.8 ド... 8192
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » base64 --- Base16, Base32, Base64, Base85 データのエンコード テーマ 自動 ライト ダーク | base64 --
...d variants of Base85 used elsewhere. このモジュールは、2つのインターフェースを提供します。このモダンなインターフェースは、 bytes-like object を ASCII bytes にエンコードし、 bytes-like object か ASCII 文字列を、 bytes にデコードすることができます。 RFC...icode 文字列を受け付けるようになりました。 バージョン 3.4 で変更: このモジュールのすべてのエンコード・デコード関数が任意の bytes-like オブジェクト を受け取るようになりました。Ascii85/Base85 のサポートが追加されました。 RFC 4648 エンコーディング ¶ RFC...TP POST リクエストの一部に含めるために用いるのに適しています。 base64. b64encode ( s , altchars = None ) ¶ Base64 を使って bytes-like object の s をエンコードし、エンコードされた bytes を返します。 オプション引数 altchars は長さ 2 の bytes-like object... - https://man.mtool.work/python/3.14/library/base64.html
- バイトオブジェクト — Python 3.14.8 ドキュメント 8125
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » バイトオブジェクト テーマ 自動 ライト ダーク | バイトオブジェクト ¶ 下記の関数は、バイ
...トオブジェクトでないパラメタを指定して呼び出されると、 TypeError を送出します。 CPython 実装の詳細: The internal buffer of PyBytesObject always includes an extra trailing null byte for compatibility with null terminated C strings. This extra byte is not...counted in PyBytes_Size() nor in the various length and size arguments of the functions below. type PyBytesObject ¶ この PyObject のサブタイプ...は、Python バイトオブジェクトを表します。 PyTypeObject PyBytes_Type ¶ 次に属します: Stable ABI . この PyTypeObject のインスタンスは、Python バイト型を表します; Pythonレイヤの bytes と同... - https://man.mtool.work/python/3.14/c-api/bytes.html
- バイトオブジェクト — Python 3.14.8 ドキュメント 8125
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » バイトオブジェクト テーマ 自動 ライト ダーク | バイトオブジェクト ¶ 下記の関数は、バイ
...トオブジェクトでないパラメタを指定して呼び出されると、 TypeError を送出します。 CPython 実装の詳細: The internal buffer of PyBytesObject always includes an extra trailing null byte for compatibility with null terminated C strings. This extra byte is not...counted in PyBytes_Size() nor in the various length and size arguments of the functions below. type PyBytesObject ¶ この PyObject のサブタイプ...は、Python バイトオブジェクトを表します。 PyTypeObject PyBytes_Type ¶ 次に属します: Stable ABI . この PyTypeObject のインスタンスは、Python バイト型を表します; Pythonレイヤの bytes と同... - https://man.mtool.work/python/3.14/c-api/bytes.html
- 変更履歴 — Python 3.14.8 ドキュメント 7218
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...nction returns None when called with the extracted member's name replaced with the link's. Core and Builtins ¶ gh-158583 : bytes.fromhex() and bytearray.fromhex() : Fix uninitialized memory read. Patch by Victor Stinner. gh-156204 : Fix a crash in PyE...dentifier, like <!DOCTYPE html> , as in the C implementation. gh-128509 : marshal.load() and marshal.loads() can now get 1-byte string singletons. Patch by Victor Stinner. gh-157325 : Fix an out-of-bounds read in the hz incremental decoder when the in...return values from ctypes callbacks on some platforms, such as s390x. gh-157048 : Preserve the position and contents of io.BytesIO when BytesIO.__init__() fails because a buffer is exported. gh-156961 : Fix tkinter.font.nametofont() and the tkinter.fo... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- io --- ストリームを扱うコアツール — Python 3.14.8 ドキュメント 7018
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 汎用オペレーティングシステムサービス » io --- ストリームを扱うコアツール テーマ 自動 ライト ダーク | io --- ストリームを扱うコアツー
...o them. For example giving a str object to the write() method of a binary stream will raise a TypeError . So will giving a bytes object to the write() method of a text stream. バージョン 3.3 で変更: 以前 IOError を送出していた操作が OSError を送出する...ームの API は TextIOBase のドキュメントで詳しく解説します。 バイナリ I/O ¶ バイナリー I/O ( buffered I/O とも呼ばれます) は bytes-like オブジェクト を受け取り bytes オブジェクトを生成します。エンコード、デコード、改行文字変換は一切行いません。このカテゴ...リーストリームを生成する一番簡単な方法は、 open() の mode 文字列に 'b' を指定することです: f = open ( "myfile.jpg" , "rb" ) BytesIO はインメモリーのバイナリストリームです: f = io . BytesIO ( b "some initial binary data: \x00\x01 " ) バイナリーストリーム... - https://man.mtool.work/python/3.14/library/io.html
- io --- ストリームを扱うコアツール — Python 3.14.8 ドキュメント 7018
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 汎用オペレーティングシステムサービス » io --- ストリームを扱うコアツール テーマ 自動 ライト ダーク | io --- ストリームを扱うコアツー
...o them. For example giving a str object to the write() method of a binary stream will raise a TypeError . So will giving a bytes object to the write() method of a text stream. バージョン 3.3 で変更: 以前 IOError を送出していた操作が OSError を送出する...ームの API は TextIOBase のドキュメントで詳しく解説します。 バイナリ I/O ¶ バイナリー I/O ( buffered I/O とも呼ばれます) は bytes-like オブジェクト を受け取り bytes オブジェクトを生成します。エンコード、デコード、改行文字変換は一切行いません。このカテゴ...リーストリームを生成する一番簡単な方法は、 open() の mode 文字列に 'b' を指定することです: f = open ( "myfile.jpg" , "rb" ) BytesIO はインメモリーのバイナリストリームです: f = io . BytesIO ( b "some initial binary data: \x00\x01 " ) バイナリーストリーム... - https://man.mtool.work/python/3.14/library/io.html
- uuid --- RFC 9562 に基づく UUID オブジェクト — Python 3.14.8 ドキュメント 6493
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » uuid --- RFC 9562 に基づく UUID オブジェクト テーマ 自動 ライト ダーク | uuid --- RFC 9562 に基
...なかった unknown ¶ プラットフォームは、UUID が安全に生成されたかどうかの情報を提供しなかった class uuid. UUID ( hex = None , bytes = None , bytes_le = None , fields = None , int = None , version = None , * , is_safe = SafeUUID.unknown ) ¶ Create a UUID...from either a string of 32 hexadecimal digits, a 16-byte bytes object in big-endian order as the bytes argument, a 16-byte bytes object in little-endian order as the bytes_le argument,...7812345678}' ) UUID ( '12345678123456781234567812345678' ) UUID ( 'urn:uuid:12345678-1234-5678-1234-567812345678' ) UUID ( bytes = b ' \x12\x34\x56\x78 ' * 4 ) UUID ( bytes_le = b ' \x78\x56\x34\x12\x34\x12\x78\x56 ' + b ' \x12\x34\x56\x78\x12\x34\x56... - https://man.mtool.work/python/3.14/library/uuid.html