摘要: python中configparser模块读取ini文件 ConfigParser模块在python中用来读取配置文件,配置文件的格式跟windows下的ini配置文件相似,可以包含一个或多个节(section), 每个节可以有多个参数(键=值)。使用的配置文件的好处就是不用在程序员写死,可以使程序 阅读全文
posted @ 2019-07-12 15:01 道理我都懂Zz 阅读(1825) 评论(0) 推荐(0)
摘要: python3之subprocess常见方法使用 一、常见subprocess方法 1、subprocess.getstatusoutput(cmd) 官方解释: Return (exitcode, output) of executing cmd in a shell.Execute the st 阅读全文
posted @ 2019-07-12 15:00 道理我都懂Zz 阅读(4677) 评论(0) 推荐(0)