per page, with , order by , clip by
Results of 1 - 1 of about 1 for deploy (0.003 sec.)
What's New In Python 3.2 9414
What's New In Python 3.2 著者 : Raymond Hettinger この記事では Python 3.1 と比較した Python 3.2 の新機能を説明します。 Python 3.2 は 2011 年 2 月 20 日にリリースされました。 主な変更点をいくつか取り上げ、例を示します。 すべての詳細については ... な説明 epilog = 'Tested on Solaris and Linux' ) # ヘルプの後に表示 parser . add_argument ( 'action' , # 引数名 choices = [ 'deploy' , 'start' , 'stop' ], # 許可する三つの値 help = 'action on each target' ) # ヘルプメッセージ parser . add_argument ( 'tar ... quired = True , # 必須の引数にする help = 'login as user' ) コマンド文字列とともにこのパーサを呼び出してみます: >>> cmd = 'deploy sneezy.example.com sleepy.example.com -u skycaptain' >>> result = parser . parse_args ( cmd . split ()) >>> result . actio ... n 'deploy' >>> result . targets ['sneezy.example.com', 'sleepy.example.com'] >>> result . user 'skycaptain' このパーサが自動的に作り ...
https://man.mtool.work/python/3.14/whatsnew/3.2.html
PREV 1 NEXT