Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 102 for args (0.049 sec.)
19.1.8. email: 使用例 — Python 3.6.5 ドキュメント 7829
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... p = 'A To: header value (at least one required)' ) args = parser . parse_args () directory = args . direct ... abspath ( directory ) msg [ 'To' ] = ', ' . join ( args . recipients ) msg [ 'From' ] = args . sender msg ... me = filename ) # Now send or store the message if args . output : with open ( args . output , 'wb' ) as f ... dy exist.""" ) parser . add_argument ( 'msgfile' ) args = parser . parse_args () with open ( args . msgfil ...
https://man.plustar.jp/python/library/email.examples.html - [similar]
10.1. itertools --- 効率的なループ実行のためのイテレータ生成関数 — Python 3.6.5... 7505
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 、 要素が順に返されます。 def islice ( iterable , * args ): # islice('ABCDEFG', 2) --> A B # islice('ABCDEF ... e('ABCDEFG', 0, None, 2) --> A C E G s = slice ( * args ) start , stop , step = s . start or 0 , s . stop ... ではメモリ中に中間結果を作りません: def product ( * args , repeat = 1 ): # product('ABCD', 'xy') --> Ax Ay ... 0 101 110 111 pools = [ tuple ( pool ) for pool in args ] * repeat result = [[]] for pool in pools : resul ...
https://man.plustar.jp/python/library/itertools.html - [similar]
プログラミング FAQ — Python 3.6.5 ドキュメント 7466
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python よくある質問 ... と ** を使ってそれらの引数を渡せます: def f ( x , * args , ** kwargs ): ... kwargs [ 'width' ] = '14.3c' .. ... . g ( x , * args , ** kwargs ) 実引数と仮引数の違いは何ですか? ¶ 仮 ... 義があったとして: def func ( foo , bar = None , ** kwargs ): pass foo 、 bar 、 kwargs は func の仮引数です。 ... st a [ 1 ] = a [ 1 ] + 1 # changes a shared object args = [ 'old-value' , 99 ] func1 ( args ) print ( args ...
https://man.plustar.jp/python/faq/programming.html - [similar]
Logging クックブック — Python 3.6.5 ドキュメント 7415
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Logg ... } thread = threading . Thread ( target = worker , args = ( info ,)) thread . start () while True : try : ... から少し抜き出してみます: def debug ( self , msg , * args , ** kwargs ): """ Delegate a debug call to the un ... nformation from this adapter instance. """ msg , kwargs = self . process ( msg , kwargs ) self . logger . ... debug ( msg , * args , ** kwargs ) LoggerAdapter の process() メソッドが ...
https://man.plustar.jp/python/howto/logging-cookbook.html - [similar]
デスクリプタ HowTo ガイド — Python 3.6.5 ドキュメント 7376
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » デス ... 変換されます。この非データディスクリプタは、 obj.f(*args) の呼び出しを f(obj, *args) に変換します。 klass.f ... (*args) を呼び出すと f(*args) になります。 このチャートは ... 呼び出される クラスから呼び出される function f(obj, *args) f(*args) 静的メソッド f(*args) f(*args) クラスメソ ... ッド f(type(obj), *args) f(klass, *args) 静的メソッドは、下にある関数をその ...
https://man.plustar.jp/python/howto/descriptor.html - [similar]
2. 拡張の型の定義: チュートリアル — Python 3.6.5 ドキュメント 7324
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... ct * Custom_new ( PyTypeObject * type , PyObject * args , PyObject * kwds ) { CustomObject * self ; self = ... int Custom_init ( CustomObject * self , PyObject * args , PyObject * kwds ) { static char * kwlist [] = { ... ULL , * tmp ; if ( ! PyArg_ParseTupleAndKeywords ( args , kwds , "|OOi" , kwlist , & first , & last , & se ... { { "name" , ( PyCFunction ) Custom_name , METH_NOARGS , "Return the name, combining the first and last n ...
https://man.plustar.jp/python/extending/newtypes_tutorial.html - [similar]
10.2. functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.6.5 ド... 7324
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... れるようになりました。 functools. partial ( func , *args , **keywords ) ¶ 新しい partial オブジェクトを返し ... ます。このオブジェクトは呼び出されると位置引数 args とキーワード引数 keywords 付きで呼び出された func ... 呼び出しに際してさらなる引数が渡された場合、それらは args に付け加えられます。追加のキーワード引数が渡された ... いうと、次のコードと等価です: def partial ( func , * args , ** keywords ): def newfunc ( * fargs , ** fkeywo ...
https://man.plustar.jp/python/library/functools.html - [similar]
オブジェクトプロトコル (object protocol) — Python 3.6.5 ドキュメント 7285
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... bject_Call ( PyObject *callable_object , PyObject *args , PyObject *kw ) ¶ Return value: New reference. 呼 ... ブジェクト callable_object をタプルで指定された引数 args および辞書で指定された名前つき引数 (named argument ... 必要としない場合、 kw を NULL にしてもかまいません。 args は NULL であってはなりません。引数が全く必要ない場 ... ると NULL を返します。 Python の式 callable_object(*args, **kw) と同じです。 PyObject * PyObject_CallObject ...
https://man.plustar.jp/python/c-api/object.html - [similar]
1. C や C++ による Python の拡張 — Python 3.6.5 ドキュメント 7143
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... bject * spam_system ( PyObject * self , PyObject * args ) { const char * command ; int sts ; if ( ! PyArg_ ... ParseTuple ( args , "s" , & command )) return NULL ; sts = system ( ... C 関数は常に二つの引数を持ち、便宜的に self および args と呼ばれます。 self 引数には、モジュールレベルの関 ... 、メソッドにはオブジェクトインスタンスが渡されます。 args 引数は、引数の入った Python タプルオブジェクトへの ...
https://man.plustar.jp/python/extending/extending.html - [similar]
10. API リファレンス — Python 3.6.5 ドキュメント 7104
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python モジュールの ... トの名前 - デフォルトでは sys.argv[0] 文字列 script_args setup スクリプトの引数 文字列のリスト options セッ ... distutils.core. run_setup ( script_name [ , script_args=None , stop_after='run' ] ) ¶ 制御された環境でセッ ... 呼び出しのために script_name と置換されます。 script_args は文字列のリストです。もし提供されていた場合、 sys ... .argv[1:] は、呼び出しのために script_args で置換されます。 stop_after はいつ動作を停止するか ...
https://man.plustar.jp/python/distutils/apiref.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 NEXT