Results of 1 - 10 of about 218 for keys (0.041 sec.)
- json --- JSON エンコーダーとデコーダー — Python 3.14.8 ドキュメント 9620
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » json --- JSON エンコーダーとデコーダー テーマ 自動 ライト ダーク | json --- JSON エンコーダーとデコ
...34 ' )) "\u1234" >>> print ( json . dumps ( ' \\ ' )) "\\" >>> print ( json . dumps ({ "c" : 0 , "b" : 0 , "a" : 0 }, sort_keys = True )) {"a": 0, "b": 0, "c": 0} >>> from io import StringIO >>> io = StringIO () >>> json . dump ([ 'streaming API' ],...( ',' , ':' )) '[1,2,3,{"4":5,"6":7}]' 見やすい表示: >>> import json >>> print ( json . dumps ({ '6' : 7 , '4' : 5 }, sort_keys = True , indent = 4 )) { "4": 5, "6": 7 } JSON オブジェクトのエンコーディング方法をカスタマイズする: >>> import json >>> d...ようになっています。根底のコンテナに順序がない場合のみ、順序が失われます。 基本的な使い方 ¶ json. dump ( obj , fp , * , skipkeys = False , ensure_ascii = True , check_circular = True , allow_nan = True , cls = None , indent = None , separators = None... - https://man.mtool.work/python/3.14/library/json.html
- json --- JSON エンコーダーとデコーダー — Python 3.14.8 ドキュメント 9620
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » json --- JSON エンコーダーとデコーダー テーマ 自動 ライト ダーク | json --- JSON エンコーダーとデコ
...34 ' )) "\u1234" >>> print ( json . dumps ( ' \\ ' )) "\\" >>> print ( json . dumps ({ "c" : 0 , "b" : 0 , "a" : 0 }, sort_keys = True )) {"a": 0, "b": 0, "c": 0} >>> from io import StringIO >>> io = StringIO () >>> json . dump ([ 'streaming API' ],...( ',' , ':' )) '[1,2,3,{"4":5,"6":7}]' 見やすい表示: >>> import json >>> print ( json . dumps ({ '6' : 7 , '4' : 5 }, sort_keys = True , indent = 4 )) { "4": 5, "6": 7 } JSON オブジェクトのエンコーディング方法をカスタマイズする: >>> import json >>> d...ようになっています。根底のコンテナに順序がない場合のみ、順序が失われます。 基本的な使い方 ¶ json. dump ( obj , fp , * , skipkeys = False , ensure_ascii = True , check_circular = True , allow_nan = True , cls = None , indent = None , separators = None... - https://man.mtool.work/python/3.14/library/json.html
- typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 8950
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース
...dict : Point2D = TypedDict ( 'Point2D' , { 'x' : int , 'y' : int , 'label' : str }) This functional syntax allows defining keys which are not valid identifiers , for example because they are keywords or contain hyphens, or when key names must not be...{ 'in' : int , 'x-y' : int }) Definition = TypedDict ( 'Definition' , { '__schema' : str }) # not mangled By default, all keys must be present in a TypedDict . It is possible to mark individual keys as non-required using NotRequired : class Point2D...NotRequired [ str ]}) This means that a Point2D TypedDict can have the label key omitted. It is also possible to mark all keys as non-required by default by specifying a totality of False : class Point2D ( TypedDict , total = False ): x : int y : in... - https://man.mtool.work/python/3.14/library/typing.html
- typing --- 型ヒントのサポート — Python 3.14.8 ドキュメント 8950
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » typing --- 型ヒントのサポート テーマ 自動 ライト ダーク | typing --- 型ヒントのサポート ¶ Added in version 3.5. ソース
...dict : Point2D = TypedDict ( 'Point2D' , { 'x' : int , 'y' : int , 'label' : str }) This functional syntax allows defining keys which are not valid identifiers , for example because they are keywords or contain hyphens, or when key names must not be...{ 'in' : int , 'x-y' : int }) Definition = TypedDict ( 'Definition' , { '__schema' : str }) # not mangled By default, all keys must be present in a TypedDict . It is possible to mark individual keys as non-required using NotRequired : class Point2D...NotRequired [ str ]}) This means that a Point2D TypedDict can have the label key omitted. It is also possible to mark all keys as non-required by default by specifying a totality of False : class Point2D ( TypedDict , total = False ): x : int y : in... - https://man.mtool.work/python/3.14/library/typing.html
- configparser --- 設定ファイルのパーサー — Python 3.14.8 ドキュメント 8615
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルフォーマット » configparser --- 設定ファイルのパーサー テーマ 自動 ライト ダーク | configparser --- 設定ファイルのパーサー
...re of INI files is described in the following section . Essentially, the file consists of sections, each of which contains keys with values. configparser classes can read and write such files. Let's start by creating the above configuration file prog...rations into a single ConfigParser , where the most recently added configuration has the highest priority. Any conflicting keys are taken from the more recent configuration while the previously existing keys are retained. The example below reads in a...n override.ini file, which will override any conflicting keys from the example.ini file. [DEFAULT] ServerAliveInterval = -1 >>> config_override = configparser . ConfigParser () >>> con... - https://man.mtool.work/python/3.14/library/configparser.html
- configparser --- 設定ファイルのパーサー — Python 3.14.8 ドキュメント 8615
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルフォーマット » configparser --- 設定ファイルのパーサー テーマ 自動 ライト ダーク | configparser --- 設定ファイルのパーサー
...re of INI files is described in the following section . Essentially, the file consists of sections, each of which contains keys with values. configparser classes can read and write such files. Let's start by creating the above configuration file prog...rations into a single ConfigParser , where the most recently added configuration has the highest priority. Any conflicting keys are taken from the more recent configuration while the previously existing keys are retained. The example below reads in a...n override.ini file, which will override any conflicting keys from the example.ini file. [DEFAULT] ServerAliveInterval = -1 >>> config_override = configparser . ConfigParser () >>> con... - https://man.mtool.work/python/3.14/library/configparser.html
- zoneinfo --- IANA タイムゾーンのサポート — Python 3.14.8 ドキュメント 8511
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » zoneinfo --- IANA タイムゾーンのサポート テーマ 自動 ライト ダーク | zoneinfo --- IANA タイムゾーンのサポート ¶ Added in
...se it if you know that you need to. 次のクラスメソッドもサポートされています: classmethod ZoneInfo. clear_cache ( * , only_keys = None ) ¶ A method for invalidating the cache on the ZoneInfo class. If no arguments are passed, all caches are invalidat...call to the primary constructor for each key will return a new instance. If an iterable of key names is passed to the only_keys parameter, only the specified keys will be removed from the cache. Keys passed to only_keys but not found in the cache are...one . 注釈 Although it is a somewhat common practice to expose these to end users, these values are designed to be primary keys for representing the relevant zones and not necessarily user-facing elements. Projects like CLDR (the Unicode Common Local... - https://man.mtool.work/python/3.14/library/zoneinfo.html
- zoneinfo --- IANA タイムゾーンのサポート — Python 3.14.8 ドキュメント 8511
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » zoneinfo --- IANA タイムゾーンのサポート テーマ 自動 ライト ダーク | zoneinfo --- IANA タイムゾーンのサポート ¶ Added in
...se it if you know that you need to. 次のクラスメソッドもサポートされています: classmethod ZoneInfo. clear_cache ( * , only_keys = None ) ¶ A method for invalidating the cache on the ZoneInfo class. If no arguments are passed, all caches are invalidat...call to the primary constructor for each key will return a new instance. If an iterable of key names is passed to the only_keys parameter, only the specified keys will be removed from the cache. Keys passed to only_keys but not found in the cache are...one . 注釈 Although it is a somewhat common practice to expose these to end users, these values are designed to be primary keys for representing the relevant zones and not necessarily user-facing elements. Projects like CLDR (the Unicode Common Local... - https://man.mtool.work/python/3.14/library/zoneinfo.html
- 変更履歴 — Python 3.14.8 ドキュメント 8291
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » 変更履歴 テーマ 自動 ライト ダーク | 変更履歴 ¶ Python next ¶ Release date: XXXX-XX-XX セキュリティ ¶ gh-157265 : In tarfile , when extrac
...interpreter is running. gh-158254 : Reverse iterators over a dict and its views now raise RuntimeError if the dictionary's keys change during iteration, like forward iterators, instead of yielding entries for the new keys. gh-157838 : Merge biased re...charset, so str(m) no longer raises UnicodeEncodeError . gh-145856 : Fix plistlib.dumps() and plistlib.dump() so that skipkeys=True together with sort_keys=True correctly drops non-string keys when the dictionary contains a mix of string and non-str...ing keys. Previously the sort ran before the filter and raised TypeError . gh-140729 : Fix a pickling error in the cProfile module... - https://man.mtool.work/python/3.14/whatsnew/changelog.html
- dbm --- Unix "データベース" へのインターフェース — Python 3.14.8 ドキュメント 8291
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データの永続化 » dbm --- Unix "データベース" へのインターフェース テーマ 自動 ライト ダーク | dbm --- Unix "データベース" へのインタ
...変更: file accepts a path-like object . The object returned by open() supports the basic functionality of mutable mappings ; keys and their corresponding values can be stored, retrieved, and deleted, and iteration, the in operator and methods keys() ,...get() , setdefault() and clear() are available. The keys() method returns a list instead of a view object. The setdefault() method requires two arguments. Key and values are alway...ello' ] = b 'there' db [ 'www.python.org' ] = 'Python Website' db [ 'www.cnn.com' ] = 'Cable News Network' # Note that the keys are considered bytes now. assert db [ b 'www.python.org' ] == b 'Python Website' # Notice how the value is now in bytes. a... - https://man.mtool.work/python/3.14/library/dbm.html