Skip to content

Instantly share code, notes, and snippets.

@nanmi
Last active January 13, 2021 08:19
Show Gist options
  • Save nanmi/d1c7ba75fc4807752f1f96795402da86 to your computer and use it in GitHub Desktop.
Save nanmi/d1c7ba75fc4807752f1f96795402da86 to your computer and use it in GitHub Desktop.
python ini文件读取
import configparser
config = configparser.ConfigParser()
config.read({file}.ini)
config['FILE_DATA']['path']
@nanmi
Copy link
Author

nanmi commented Dec 17, 2019

TIP3 about read ini file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment