发布时间:2019-07-15 10:45:51编辑:auto阅读(1828)
工作中的一个小脚本
目的:用于修改配置文件setting.ini,新增一个新的配置项
import ConfigParser cf = ConfigParser.ConfigParser() filepath = 'setting.ini' cf.read(filepath) for i in cf.sections(): cf.set(i,'user', 'test') with open(filepath, 'wb') as configfile: cf.write(configfile)
上一篇: python用作监控
下一篇: Python 学习笔记
50958
50341
40956
37825
32289
29179
28069
22897
22858
21191
1050°
1728°
1410°
1348°
1609°
1438°
2094°
3637°
3563°
2510°