per page, with , order by , clip by
Results of 1 - 10 of about 658 for Return (0.018 sec.)
tkinter --- Tcl/Tk の Python インターフェース — Python 3.14.8 ドキュメント 6993
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter --- Tcl/Tk の Python インターフェース テーマ 自動 ライト ダーク | tkinter --- Tcl/Tk の ... tify what you need. To find out what configuration options are available on any widget, call its configure() method, which returns a dictionary containing a variety of information about each object, including its default and current values. Use keys() ... the one that created the Tk object, an event is posted to the interpreter's event queue, and when executed, the result is returned to the calling Python thread. Tcl/Tk applications are normally event-driven, meaning that after initialization, the inte ... e queried at runtime by calling the config() method without arguments, or by calling the keys() method on that widget. The return value of these calls is a dictionary whose key is the name of the option as a string (for example, 'relief' ) and whose va ...
https://man.mtool.work/python/3.14/library/tkinter.html
tkinter --- Tcl/Tk の Python インターフェース — Python 3.14.8 ドキュメント 6727
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter --- Tcl/Tk の Python インターフェース テーマ 自動 ライト ダーク | tkinter --- Tcl/Tk の ... tify what you need. To find out what configuration options are available on any widget, call its configure() method, which returns a dictionary containing a variety of information about each object, including its default and current values. Use keys() ... the one that created the Tk object, an event is posted to the interpreter's event queue, and when executed, the result is returned to the calling Python thread. Tcl/Tk applications are normally event-driven, meaning that after initialization, the inte ... e queried at runtime by calling the config() method without arguments, or by calling the keys() method on that widget. The return value of these calls is a dictionary whose key is the name of the option as a string (for example, 'relief' ) and whose va ...
https://man.mtool.work/python/3.14/library/tkinter.html
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 6353
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... p_new = PyType_GenericNew , }; static int custom_module_exec ( PyObject * m ) { if ( PyType_Ready ( & CustomType ) < 0 ) { return -1 ; } if ( PyModule_AddObjectRef ( m , "Custom" , ( PyObject * ) & CustomType ) < 0 ) { return -1 ; } return 0 ; } static ... creates an extension type." , . m_size = 0 , . m_slots = custom_module_slots , }; PyMODINIT_FUNC PyInit_custom ( void ) { return PyModuleDef_Init ( & custom_module ); } 一度に把握するにはちょっと量が多いですが、前の章よりはとっつきやすくなっていること ... in the file should be familiar, except for some code in custom_module_exec() : if ( PyType_Ready ( & CustomType ) < 0 ) { return -1 ; } これは、 NULL に初期化された ob_type も含めて、いくつかのメンバーを適切なデフォルト値で埋めて、 Custom 型を初期化し ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
2. 拡張の型の定義: チュートリアル — Python 3.14.8 ドキュメント 6353
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python インタプリタの拡張と埋め込み » 2. 拡張の型の定義: チュートリアル テーマ 自動 ライト ダーク | 2. 拡張の型の定義: チュートリアル ¶ Python では、組み込みの s ... p_new = PyType_GenericNew , }; static int custom_module_exec ( PyObject * m ) { if ( PyType_Ready ( & CustomType ) < 0 ) { return -1 ; } if ( PyModule_AddObjectRef ( m , "Custom" , ( PyObject * ) & CustomType ) < 0 ) { return -1 ; } return 0 ; } static ... creates an extension type." , . m_size = 0 , . m_slots = custom_module_slots , }; PyMODINIT_FUNC PyInit_custom ( void ) { return PyModuleDef_Init ( & custom_module ); } 一度に把握するにはちょっと量が多いですが、前の章よりはとっつきやすくなっていること ... in the file should be familiar, except for some code in custom_module_exec() : if ( PyType_Ready ( & CustomType ) < 0 ) { return -1 ; } これは、 NULL に初期化された ob_type も含めて、いくつかのメンバーを適切なデフォルト値で埋めて、 Custom 型を初期化し ...
https://man.mtool.work/python/3.14/extending/newtypes_tutorial.html
unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 6303
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ ... u can make assertions about which methods / attributes were used and arguments they were called with. You can also specify return values and set needed attributes in the normal way. 加えて、 mock はテストのスコープ内にあるモジュールやクラスの属性を変更 ... てアサートできます: >>> from unittest.mock import MagicMock >>> thing = ProductionClass () >>> thing . method = MagicMock ( return_value = 3 ) >>> thing . method ( 3 , 4 , 5 , key = 'value' ) 3 >>> thing . method . assert_called_with ( 3 , 4 , 5 , key = ... most recent call last): ... KeyError : 'foo' >>> values = { 'a' : 1 , 'b' : 2 , 'c' : 3 } >>> def side_effect ( arg ): ... return values [ arg ] ... >>> mock . side_effect = side_effect >>> mock ( 'a' ), mock ( 'b' ), mock ( 'c' ) (1, 2, 3) >>> mock . ...
https://man.mtool.work/python/3.14/library/unittest.mock.html
unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 6303
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ ... u can make assertions about which methods / attributes were used and arguments they were called with. You can also specify return values and set needed attributes in the normal way. 加えて、 mock はテストのスコープ内にあるモジュールやクラスの属性を変更 ... てアサートできます: >>> from unittest.mock import MagicMock >>> thing = ProductionClass () >>> thing . method = MagicMock ( return_value = 3 ) >>> thing . method ( 3 , 4 , 5 , key = 'value' ) 3 >>> thing . method . assert_called_with ( 3 , 4 , 5 , key = ... most recent call last): ... KeyError : 'foo' >>> values = { 'a' : 1 , 'b' : 2 , 'c' : 3 } >>> def side_effect ( arg ): ... return values [ arg ] ... >>> mock . side_effect = side_effect >>> mock ( 'a' ), mock ( 'b' ), mock ( 'c' ) (1, 2, 3) >>> mock . ...
https://man.mtool.work/python/3.14/library/unittest.mock.html
cmath --- 複素数用の数学関数 — Python 3.14.8 ドキュメント 6260
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » cmath --- 複素数用の数学関数 テーマ 自動 ライト ダーク | cmath --- 複素数用の数学関数 ¶ このモジュールは、複 ... bove the branch cut: >>> cmath . sqrt ( - 2 + 0 j ) 1.4142135623730951j Conversions to and from polar coordinates phase(z) Return the phase of z polar(z) Return the representation of z in polar coordinates rect(r, phi) Return the complex number z with ... polar coordinates r and phi Power and logarithmic functions exp(z) Return e raised to the power z log(z[, base]) Return the logarithm of z to the given base ( e by default) log10(z) Return the bas ... e-10 logarithm of z sqrt(z) Return the square root of z Trigonometric functions acos(z) Return the arc cosine of z asin(z) Return the arc sine of z atan(z) R ...
https://man.mtool.work/python/3.14/library/cmath.html
cmath --- 複素数用の数学関数 — Python 3.14.8 ドキュメント 6260
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » cmath --- 複素数用の数学関数 テーマ 自動 ライト ダーク | cmath --- 複素数用の数学関数 ¶ このモジュールは、複 ... bove the branch cut: >>> cmath . sqrt ( - 2 + 0 j ) 1.4142135623730951j Conversions to and from polar coordinates phase(z) Return the phase of z polar(z) Return the representation of z in polar coordinates rect(r, phi) Return the complex number z with ... polar coordinates r and phi Power and logarithmic functions exp(z) Return e raised to the power z log(z[, base]) Return the logarithm of z to the given base ( e by default) log10(z) Return the bas ... e-10 logarithm of z sqrt(z) Return the square root of z Trigonometric functions acos(z) Return the arc cosine of z asin(z) Return the arc sine of z atan(z) R ...
https://man.mtool.work/python/3.14/library/cmath.html
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 6116
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... nations_with_replacement('ABCD', 2) AA AB AC AD BB BC BD CC CD DD Itertool関数 ¶ The following functions all construct and return iterators. Some provide streams of infinite length, so they should only be accessed by functions or loops that truncate th ... e stream. itertools. accumulate ( iterable [ , function , * , initial=None ] ) ¶ Make an iterator that returns accumulated sums or accumulated results from other binary functions. The function defaults to addition. The function shou ... han the input iterable. およそ次と等価です: def accumulate ( iterable , function = operator . add , * , initial = None ): 'Return running totals' # accumulate([1,2,3,4,5]) → 1 3 6 10 15 # accumulate([1,2,3,4,5], initial=100) → 100 101 103 106 110 115 # ...
https://man.mtool.work/python/3.14/library/itertools.html
itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 6116
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効 ... nations_with_replacement('ABCD', 2) AA AB AC AD BB BC BD CC CD DD Itertool関数 ¶ The following functions all construct and return iterators. Some provide streams of infinite length, so they should only be accessed by functions or loops that truncate th ... e stream. itertools. accumulate ( iterable [ , function , * , initial=None ] ) ¶ Make an iterator that returns accumulated sums or accumulated results from other binary functions. The function defaults to addition. The function shou ... han the input iterable. およそ次と等価です: def accumulate ( iterable , function = operator . add , * , initial = None ): 'Return running totals' # accumulate([1,2,3,4,5]) → 1 3 6 10 15 # accumulate([1,2,3,4,5], initial=100) → 100 101 103 106 110 115 # ...
https://man.mtool.work/python/3.14/library/itertools.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT