详解Python利用configparser对配置文件进行读写操作

上传:Ethan-cw 浏览: 29 推荐: 0 文件:PDF 大小:67.44KB 上传时间:2020-12-17 07:01:55 版权申诉
简介 想写一个登录注册的demo,但是以前的demo数据都写在程序里面,每一关掉程序数据就没保存住。。 于是想着写到配置文件里好了 Python自身提供了一个Module – configparser,来进行对配置文件的读写 Configuration file parser. A configuration file consists of sections, lead by a “[section]” header, and followed by “name: value” entries, with continuations and such in the style of RFC
上传资源
用户评论