per page, with , order by , clip by
Results of 1 - 1 of about 1 for ServerAliveInterval (0.001 sec.)
configparser --- 設定ファイルのパーサー 9414
configparser --- 設定ファイルのパーサー ソースコード: Lib/configparser.py このモジュールは、 Microsoft Windows の INI ファイルに似た構造を持ったベーシックな設定用言語を実装した ConfigParser クラスを提供します。このクラスを使ってユーザーが簡 ... ありますが、コメントはサポートしません。 クイックスタート 次のような、非常に簡単な設定ファイルを例に考えましょう: [DEFAULT] ServerAliveInterval = 45 Compression = yes CompressionLevel = 9 ForwardX11 = yes [forge.example] User = hg [topsecret.server.example] Port = 5 ... ラムで作成してみましょう。 >>> import configparser >>> config = configparser . ConfigParser () >>> config [ 'DEFAULT' ] = { 'ServerAliveInterval' : '45' , ... 'Compression' : 'yes' , ... 'CompressionLevel' : '9' } >>> config [ 'forge.example' ] = {} >>> config [ 'for ... ] 'no' >>> topsecret [ 'Port' ] '50022' >>> for key in config [ 'forge.example' ]: ... print ( key ) user compressionlevel serveraliveinterval compression forwardx11 >>> config [ 'forge.example' ][ 'ForwardX11' ] 'yes' 上の例からわかるように、API はとても直感的です ...
https://man.mtool.work/python/3.14/library/configparser.html
PREV 1 NEXT