Results of 1 - 10 of about 63 for loads (0.005 sec.)
- json --- JSON エンコーダーとデコーダー — Python 3.14.8 ドキュメント 11695
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » json --- JSON エンコーダーとデコーダー テーマ 自動 ライト ダーク | json --- JSON エンコーダーとデコ
...efault = custom_json ) '{"__complex__": true, "real": 1.0, "imag": 2.0}' JSON のデコーディング: >>> import json >>> json . loads ( '["foo", {"bar":["baz", null, 1.0, 2]}]' ) ['foo', {'bar': ['baz', None, 1.0, 2]}] >>> json . loads ( '" \\ "foo \\ bar"...( dct ): ... if '__complex__' in dct : ... return complex ( dct [ 'real' ], dct [ 'imag' ]) ... return dct ... >>> json . loads ( '{"__complex__": true, "real": 1, "imag": 2}' , ... object_hook = as_complex ) (1+2j) >>> import decimal >>> json . load...dictionary is converted into JSON and then back into a dictionary, the dictionary may not equal the original one. That is, loads(dumps(x)) != x if x has non-string keys. sort_keys sorts the keys before they are converted to strings, so numeric keys ar... - https://man.mtool.work/python/3.14/library/json.html
- pickle --- Python オブジェクトの直列化 — Python 3.14.8 ドキュメント 11465
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データの永続化 » pickle --- Python オブジェクトの直列化 テーマ 自動 ライト ダーク | pickle --- Python オブジェクトの直列化 ¶ ソース
...ルインターフェース ¶ オブジェクト階層を直列化するには、 dumps() 関数を呼ぶだけです。同様に、データストリームを復元するには、 loads() 関数を呼びます。しかし、直列化および復元に対してより多くのコントロールを行いたい場合、それぞれ Pickler または Unpickler...buffers は Unpickler のコンストラクタと同じ意味になります。 バージョン 3.8 で変更: buffers 引数が追加されました。 pickle. loads ( data , / , * , fix_imports = True , encoding = 'ASCII' , errors = 'strict' , buffers = None ) ¶ オブジェクトのピックル化...) >>> reader . readline () '1: Hello world!' >>> reader . readline () '2: I am line number two.' >>> new_reader = pickle . loads ( pickle . dumps ( reader )) >>> new_reader . readline () '3: Goodbye!' 型、関数、その他のオブジェクトに対するリダクション... - https://man.mtool.work/python/3.14/library/pickle.html
- pickle --- Python オブジェクトの直列化 — Python 3.14.8 ドキュメント 11465
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データの永続化 » pickle --- Python オブジェクトの直列化 テーマ 自動 ライト ダーク | pickle --- Python オブジェクトの直列化 ¶ ソース
...ルインターフェース ¶ オブジェクト階層を直列化するには、 dumps() 関数を呼ぶだけです。同様に、データストリームを復元するには、 loads() 関数を呼びます。しかし、直列化および復元に対してより多くのコントロールを行いたい場合、それぞれ Pickler または Unpickler...buffers は Unpickler のコンストラクタと同じ意味になります。 バージョン 3.8 で変更: buffers 引数が追加されました。 pickle. loads ( data , / , * , fix_imports = True , encoding = 'ASCII' , errors = 'strict' , buffers = None ) ¶ オブジェクトのピックル化...) >>> reader . readline () '1: Hello world!' >>> reader . readline () '2: I am line number two.' >>> new_reader = pickle . loads ( pickle . dumps ( reader )) >>> new_reader . readline () '3: Goodbye!' 型、関数、その他のオブジェクトに対するリダクション... - https://man.mtool.work/python/3.14/library/pickle.html
- json --- JSON エンコーダーとデコーダー — Python 3.14.8 ドキュメント 11249
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » json --- JSON エンコーダーとデコーダー テーマ 自動 ライト ダーク | json --- JSON エンコーダーとデコ
...efault = custom_json ) '{"__complex__": true, "real": 1.0, "imag": 2.0}' JSON のデコーディング: >>> import json >>> json . loads ( '["foo", {"bar":["baz", null, 1.0, 2]}]' ) ['foo', {'bar': ['baz', None, 1.0, 2]}] >>> json . loads ( '" \\ "foo \\ bar"...( dct ): ... if '__complex__' in dct : ... return complex ( dct [ 'real' ], dct [ 'imag' ]) ... return dct ... >>> json . loads ( '{"__complex__": true, "real": 1, "imag": 2}' , ... object_hook = as_complex ) (1+2j) >>> import decimal >>> json . load...dictionary is converted into JSON and then back into a dictionary, the dictionary may not equal the original one. That is, loads(dumps(x)) != x if x has non-string keys. sort_keys sorts the keys before they are converted to strings, so numeric keys ar... - https://man.mtool.work/python/3.14/library/json.html
- plistlib --- Apple .plist ファイルを生成・解析する — Python 3.14.8 ドキュメント 10370
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルフォーマット » plistlib --- Apple .plist ファイルを生成・解析する テーマ 自動 ライト ダーク | plistlib --- Apple .plist ファ
...するには dump() や load() 関数を利用します。 バイトオブジェクトや文字列オブジェクトの plist データを扱うためには dumps() や loads() を利用します。 値は文字列、整数、浮動小数点数、ブール型、タプル、リスト、辞書 (ただし文字列だけがキーになれます)、 bytes...ot be parsed. Added in version 3.4. バージョン 3.13 で変更: キーワード専用引数 aware_datetime が追加されました。 plistlib. loads ( data , * , fmt = None , dict_type = dict , aware_datetime = False ) ¶ バイナリまたは文字列オブジェクトから plist をロード...plistlib plist = b """<plist version="1.0"> <dict> <key>foo</key> <string>bar</string> </dict> </plist>""" pl = plistlib . loads ( plist ) print ( pl [ "foo" ]) 関連キーワード plist datetime plistlib aware バイナリ dict Added 解析 サポート 辞書 type キ... - https://man.mtool.work/python/3.14/library/plistlib.html
- marshal --- 内部使用向けの Python オブジェクト直列化 — Python 3.14.8 ドキュメン... 9506
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データの永続化 » marshal --- 内部使用向けの Python オブジェクト直列化 テーマ 自動 ライト ダーク | marshal --- 内部使用向けの Python
...sion を指定して 監査イベント marshal.dumps を送出します。 バージョン 3.13 で変更: Added the allow_code parameter. marshal. loads ( bytes , / , * , allow_code = True ) ¶ Convert the bytes-like object to a value. If no valid value is found, raise EOFErr...are only supported if allow_code is true. Extra bytes in the input are ignored. 引数 bytes を指定して 監査イベント marshal.loads を送出します。 バージョン 3.10 で変更: This call used to raise a code.__new__ audit event for each code object. Now it rai...ses a single marshal.loads event for the entire load operation. バージョン 3.13 で変更: Added the allow_code parameter. これに加えて、以下の定数が定義... - https://man.mtool.work/python/3.14/library/marshal.html
- marshal --- 内部使用向けの Python オブジェクト直列化 — Python 3.14.8 ドキュメン... 9506
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データの永続化 » marshal --- 内部使用向けの Python オブジェクト直列化 テーマ 自動 ライト ダーク | marshal --- 内部使用向けの Python
...sion を指定して 監査イベント marshal.dumps を送出します。 バージョン 3.13 で変更: Added the allow_code parameter. marshal. loads ( bytes , / , * , allow_code = True ) ¶ Convert the bytes-like object to a value. If no valid value is found, raise EOFErr...are only supported if allow_code is true. Extra bytes in the input are ignored. 引数 bytes を指定して 監査イベント marshal.loads を送出します。 バージョン 3.10 で変更: This call used to raise a code.__new__ audit event for each code object. Now it rai...ses a single marshal.loads event for the entire load operation. バージョン 3.13 で変更: Added the allow_code parameter. これに加えて、以下の定数が定義... - https://man.mtool.work/python/3.14/library/marshal.html
- plistlib --- Apple .plist ファイルを生成・解析する — Python 3.14.8 ドキュメント 9290
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルフォーマット » plistlib --- Apple .plist ファイルを生成・解析する テーマ 自動 ライト ダーク | plistlib --- Apple .plist ファ
...するには dump() や load() 関数を利用します。 バイトオブジェクトや文字列オブジェクトの plist データを扱うためには dumps() や loads() を利用します。 値は文字列、整数、浮動小数点数、ブール型、タプル、リスト、辞書 (ただし文字列だけがキーになれます)、 bytes...ot be parsed. Added in version 3.4. バージョン 3.13 で変更: キーワード専用引数 aware_datetime が追加されました。 plistlib. loads ( data , * , fmt = None , dict_type = dict , aware_datetime = False ) ¶ バイナリまたは文字列オブジェクトから plist をロード...plistlib plist = b """<plist version="1.0"> <dict> <key>foo</key> <string>bar</string> </dict> </plist>""" pl = plistlib . loads ( plist ) print ( pl [ "foo" ]) 関連キーワード plist datetime plistlib aware バイナリ オブジェクト dict Added fmt False 場... - https://man.mtool.work/python/3.14/library/plistlib.html
- tomllib --- TOML ファイルの解析 — Python 3.14.8 ドキュメント 8627
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルフォーマット » tomllib --- TOML ファイルの解析 テーマ 自動 ライト ダーク | tomllib --- TOML ファイルの解析 ¶ Added in versi
...あり、そうでない場合は ValueError が送出されます。 無効なTOMLドキュメントの場合は TOMLDecodeError が送出されます。 tomllib. loads ( s , / , * , parse_float = float ) ¶ str からTOMLを読み込みます。戻り値は dict です。TOMLの型は conversion table を使用し...を解析します: import tomllib toml_str = """ python-version = "3.11.0" python-implementation = "CPython" """ data = tomllib . loads ( toml_str ) 変換表 ¶ TOML Python TOMLドキュメント 辞書 文字列 文字列 整数 整数 浮動小数点数 浮動小数点数( parse_float で... - https://man.mtool.work/python/3.14/library/tomllib.html
- tomllib --- TOML ファイルの解析 — Python 3.14.8 ドキュメント 8627
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルフォーマット » tomllib --- TOML ファイルの解析 テーマ 自動 ライト ダーク | tomllib --- TOML ファイルの解析 ¶ Added in versi
...あり、そうでない場合は ValueError が送出されます。 無効なTOMLドキュメントの場合は TOMLDecodeError が送出されます。 tomllib. loads ( s , / , * , parse_float = float ) ¶ str からTOMLを読み込みます。戻り値は dict です。TOMLの型は conversion table を使用し...を解析します: import tomllib toml_str = """ python-version = "3.11.0" python-implementation = "CPython" """ data = tomllib . loads ( toml_str ) 変換表 ¶ TOML Python TOMLドキュメント 辞書 文字列 文字列 整数 整数 浮動小数点数 浮動小数点数( parse_float で... - https://man.mtool.work/python/3.14/library/tomllib.html