2017-05-09 43 views

回答

0

This文檔將幫助你。

TL;博士:

example = StringIO(''' 
[test] 
opt1 = 1 
# this is a comment 
; and so is this 
opt2 = 2''') 
safeconfigparser.readfp(example) 
print safeconfigparser.items('test') 

希望這會幫助你,Yahli。

相關問題