2017-05-09 2 views

Répondre

0

This la documentation vous aidera.

tl; dr:

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

Espérons que cela vous aidera, Yahli.