Results of 1 - 1 of about 1 for topsecret (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 = 50022 ForwardX11 = no INI ファイルの構造は 次の節 で説明します。 基本的には、ファイルはセクションで...ompressionLevel' : '9' } >>> config [ 'forge.example' ] = {} >>> config [ 'forge.example' ][ 'User' ] = 'hg' >>> config [ 'topsecret.server.example' ] = {} >>> topsecret = config [ 'topsecret.server.example' ] >>> topsecret [ 'Port' ] = '50022' # パーサー...を変更する >>> topsecret [ 'ForwardX11' ] = 'no' # ここも同様 >>> config [ 'DEFAULT' ][ 'ForwardX11' ] = 'yes' >>> with open ( 'example.ini' , 'w'... - https://man.mtool.work/python/3.14/library/configparser.html
PREV
1
NEXT