Results of 1 - 10 of about 38 for Dictionary (0.007 sec.)
- 6. 式 (expression) 14733
- 6. 式 (expression) この章では、Python の式における個々の要素の意味について解説します。 構文上の注意: この章以降では、 文法の表記法 を字句解析ではなく構文の記述に使います。 構文規則の (選択肢の 1 つの) 形式が次のように記述され、 name : other
...allow common typos to pass uncaught. 6.2.5. Displays for lists, sets and dictionaries For constructing a list, a set or a dictionary Python provides special syntax called "displays", each of them in two flavors: either the container contents are listed ex...ements resulting from the comprehension. 6.2.7. 集合表示 A set display is denoted by curly braces and distinguishable from dictionary displays by the lack of colons separating keys and values: set_display : "{" ( flexible_expression_list | comprehension )...e elements resulting from the comprehension. An empty set cannot be constructed with {} ; this literal constructs an empty dictionary. 6.2.8. 辞書表示 A dictionary display is a possibly empty series of dict items (key/value pairs) enclosed in curly braces:... - https://man.mtool.work/python/3.14/reference/expressions.html
- 具象オブジェクト (concrete object) レイヤ 11777
- 具象オブジェクト (concrete object) レイヤ この章では、特定の Python オブジェクト型固有の関数について述べています。これらの関数に間違った型のオブジェクトを渡すのは良い考えではありません; Python プログラムから何らかのオブジェクトを受け取ったと
...iter 非推奨の API タプルオブジェクト (tuple object) Struct Sequence オブジェクト リストオブジェクト Container オブジェクト Dictionary Objects Dictionary View Objects Ordered Dictionaries Set オブジェクト 非推奨の API Function オブジェクト Function オブジェ... - https://man.mtool.work/python/3.14/c-api/concrete.html
- runpy --- Python モジュールの位置特定と実行 10094
- runpy --- Python モジュールの位置特定と実行 ソースコード: Lib/runpy.py runpy モジュールは、Python モジュールをあらかじめインポートせずに見つけて実行するために使います。 主な用途はコマンドラインオプション -m の実装です。 このオプションを使う
...e special global variables __name__ , __spec__ , __file__ , __cached__ , __loader__ and __package__ are set in the globals dictionary before the module code is executed. (Note that this is a minimal set of variables - other variables may be set implicitly...e special global variables __name__ , __spec__ , __file__ , __cached__ , __loader__ and __package__ are set in the globals dictionary before the module code is executed. (Note that this is a minimal set of variables - other variables may be set implicitly... - https://man.mtool.work/python/3.14/library/runpy.html
- Dictionary Objects 9670
- Dictionary Objects type PyDictObject この PyObject のサブタイプは Python の辞書オブジェクトを表現します。 PyTypeObject PyDict_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python の辞書を表現します。このオブジェクトは、
...thread-safe in the free-threaded build without external synchronization. You can use Py_BEGIN_CRITICAL_SECTION to lock the dictionary while iterating over it: Py_BEGIN_CRITICAL_SECTION ( self -> dict ); while ( PyDict_Next ( self -> dict , & pos , & key ,...定し得る別の API を呼び出す場合は、まず例外の状態を保存してクリアし、戻る前に復元する必要があります。 Added in version 3.12. Dictionary View Objects int PyDictViewSet_Check ( PyObject * op ) op が辞書内の集合のビューであれば真を返します。 現在、これは PyDict... - https://man.mtool.work/python/3.14/c-api/dict.html
- スレッドセーフ性の保証 8821
- スレッドセーフ性の保証 このページでは、Python のフリースレッドビルドにおける組み込み型のスレッドセーフ性の保証を説明します。 ここで説明する保証は、 GIL を無効にして Python を使う場合 (フリースレッドモード) に適用されます。 GIL が有効な場合、
...ッド間で list インスタンスを共有する場合は、外部での同期を検討してください。 dict オブジェクトのスレッドセーフ性 Creating a dictionary with the dict constructor is atomic when the argument to it is a dict or a tuple . When using the dict.fromkeys() method,... - https://man.mtool.work/python/3.14/builtins/threadsafety.html
- collections --- コンテナデータ型 8396
- collections --- コンテナデータ型 ソースコード: Lib/collections/__init__.py このモジュールは、汎用の Python 組み込みコンテナ dict , list , set , および tuple に代わる、特殊なコンテナデータ型を実装しています。 namedtuple() 名前付きフィールドを
...ld () # Create nested child context e = c . new_child () # Child of c, independent from d e . maps [ 0 ] # Current context dictionary -- like Python's locals() e . maps [ - 1 ] # Root context -- like Python's globals() e . parents # Enclosing context chain...all nested values len ( d ) # Number of nested values d . items () # All nested items dict ( d ) # Flatten into a regular dictionary ChainMap クラスは、探索はチェーン全体に対して行いますが、更新 (書き込みと削除) は最初のマッピングに対してのみ行います。しか...カウントの合計を計算します。 >>> c = Counter ( a = 10 , b = 5 , c = 0 ) >>> c . total () 15 Added in version 3.10. The usual dictionary methods are available for Counter objects except for two which work differently for counters. fromkeys ( iterable ) このク... - https://man.mtool.work/python/3.14/library/collections.html
- email.message: 電子メールメッセージの表現 8396
- email.message : 電子メールメッセージの表現 ソースコード: Lib/email/message.py Added in version 3.6: [ 1 ] email パッケージの中心となるクラスは、 email.message モジュールからインポートする EmailMessage です。 これは email のオブジェクトモデル
...sing the message's headers. Note that there are some semantic differences between these methods and a normal mapping (i.e. dictionary) interface. For example, in a dictionary there are no duplicate keys, but here there may be duplicate message headers. Als... - https://man.mtool.work/python/3.14/library/email.message.html
- plistlib --- Apple .plist ファイルを生成・解析する 8396
- plistlib --- Apple .plist ファイルを生成・解析する ソースコード: Lib/plistlib.py このモジュールは Apple (主に macOS と iOS) で使われる「プロパティーリスト」ファイルを読み書きするインターフェイスを提供します。このモジュールはバイナリと XML の
...ialization supporting basic object types, like dictionaries, lists, numbers and strings. Usually the top level object is a dictionary. plist ファイルを書き出したり解析したりするには dump() や load() 関数を利用します。 バイトオブジェクトや文字列オブジェクト... - https://man.mtool.work/python/3.14/library/plistlib.html
- turtle --- タートルグラフィックス 8396
- turtle --- タートルグラフィックス ソースコード: Lib/turtle.py Turtle star 単純な動きを繰り返すプログラムで、タートルは複雑な図形を描けます。 x-y 平面の (0, 0) から動き出す、亀のロボットを想像してください。 import turtle の後に turtle.forwar
...以下のキーの一部またはすべてを持つ辞書 pendict -- 以下のキーをキーワードとする、1 つ以上のキーワード引数 ペンの属性を "pen-dictionary" に以下のキー/値ペアで設定するかまたは返します: "shown": True/False "pendown": True/False "pencolor": 色文字列または色タプ...named shape. If name is not given, return the name of the current shape. The shape must exist in the TurtleScreen 's shape dictionary. Initially there are the following shapes: "arrow", "turtle", "circle", "square", "triangle" and "classic". To add shapes,...lename = 'turtle_docstringdict' ) パラメータ : filename -- ファイル名として使われる文字列 ドキュメント文字列辞書(docstring-dictionary)を作って与えられたファイル名の Python スクリプトに書き込みます。この関数はわざわざ呼び出さなければなりません (タートルグラ... - https://man.mtool.work/python/3.14/library/turtle.html
- 5. データ構造 8396
- 5. データ構造 この章では、すでに学んだことについてより詳しく説明するとともに、いくつか新しいことを追加します。 5.1. リスト型についてもう少し list 型には、他にもいくつかメソッドがあります。リストオブジェクトのすべてのメソッドを以下に示します
...et comprehensions are also supported: >>> a = { x for x in 'abracadabra' if x not in 'abc' } >>> a {'r', 'd'} 5.5. 辞書型 (dictionary) もう一つ、有用な型が Python に組み込まれています。それは 辞書 (dictionary) ( Mapping Types --- dict を参照)です。辞書は他... - https://man.mtool.work/python/3.14/tutorial/datastructures.html