Results of 1 - 5 of about 5 for area (0.005 sec.)
- 7. Input and Output 12446
- 7. Input and Output プログラムの出力方法にはいくつかの種類があります。 データを人間が読める形で出力することもあれば、将来使うためにファイルに書くこともあります。 この章では、こうした幾つかの出力の方法について話します。 7.1. Fancier Output F
...指定子を使うと、式のテキスト、 = 、式を評価した値の repr() 結果を順に表示できます。 >>> bugs = 'roaches' >>> count = 13 >>> area = 'living room' >>> print ( f 'Debugging { bugs =} { count =} { area =} ' ) Debugging bugs='roaches' count=13 area='living... - https://man.mtool.work/python/3.14/tutorial/inputoutput.html
- モジュールオブジェクト (module object) 9872
- モジュールオブジェクト (module object) PyTypeObject PyModule_Type 次に属します: Stable ABI . この PyTypeObject のインスタンスは Python のモジュール型を表します。 Python プログラムには types.ModuleType として公開されています。 int PyModule_C
...a docstring variable created with PyDoc_STRVAR is used. Py_ssize_t m_size Module state may be kept in a per-module memory area that can be retrieved with PyModule_GetState() , rather than in static globals. This makes modules safe for use in multipl...e sub-interpreters. This memory area is allocated based on m_size on module creation, and freed when the module object is deallocated, after the m_free functio...の動的な作成 The following functions may be used to create a module outside of an extension's initialization function . They are also used in single-phase initialization . PyObject * PyModule_Create ( PyModuleDef * def ) 戻り値: 新しい参照。 def の定義... - https://man.mtool.work/python/3.14/c-api/module.html
- mmap --- メモリマップファイルのサポート 8144
- mmap --- メモリマップファイルのサポート 利用可能な環境 : not WASI. このモジュールは WebAssembly では動作しないか、利用不可です。詳しくは、 WebAssembly プラットフォーム を見てください。 Memory-mapped file objects behave like both bytearray a
...です。 Added in version 3.13. size ( ) Return the length of the file, which can be larger than the size of the memory-mapped area. tell ( ) ファイルポインタの現在位置を返します。 write ( bytes ) メモリ内のファイルポイントの現在位置に bytes のバイト列を... - https://man.mtool.work/python/3.14/library/mmap.html
- typing --- 型ヒントのサポート 8144
- typing --- 型ヒントのサポート Added in version 3.5. ソースコード: Lib/typing.py 注釈 Python ランタイムは、関数や変数の型アノテーションを強制しません。型アノテーションは、 type checkers や IDE、linterなどのサードパーティーツールで使われます。
...このモジュールは型ヒントの実行時サポートを提供します。 以下の関数を例に考えてみます: def surface_area_of_cube ( edge_length : float ) -> str : return f "The surface area of the cube is { 6 * edge_length ** 2 } ." surface_are... - https://man.mtool.work/python/3.14/library/typing.html
- 組み込み関数 7280
- 組み込み関数 Python インタプリタには数多くの関数と型が組み込まれており、いつでも利用できます。それらをここにアルファベット順に挙げます。 組み込み関数 A abs() aiter() all() anext() any() ascii() B bin() bool() breakpoint() bytearray() bytes(
...alcsize', 'error', 'pack', 'pack_into', 'unpack', 'unpack_from'] >>> class Shape : ... def __dir__ ( self ): ... return [ 'area' , 'perimeter' , 'location' ] ... >>> s = Shape () >>> dir ( s ) ['area', 'location', 'perimeter'] 注釈 dir() は主に対話プ...ow encoding and decoding errors are to be handled—this cannot be used in binary mode. A variety of standard error handlers are available (listed under エラーハンドラ ), though any error handling name that has been registered with codecs.register_erro... - https://man.mtool.work/python/3.14/builtins/functions.html
PREV
1
NEXT