Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. [stat=1]
  2. name=value
  3. name=value
  4.  
  5. [stat=2]
  6. name=value
  7. name=value
  8.  
  9. config = configparser.ConfigParser()
  10. config.read('example.ini')
  11.  
  12. config['stat2']['flame'] = "42"
  13.  
  14. with open('example.ini', 'w') as configfile:
  15. config.write(configfile)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement