2020
11-03
11-03
详解Python利用configparser对配置文件进行读写操作
简介想写一个登录注册的demo,但是以前的demo数据都写在程序里面,每一关掉程序数据就没保存住。。于是想着写到配置文件里好了Python自身提供了一个Module-configparser,来进行对配置文件的读写Configurationfileparser.Aconfigurationfileconsistsofsections,leadbya“[section]”header,andfollowedby“name:value”entries,withcontinuationsandsuchinthestyleofRFC822.NoteTheConfigParsermodu...
继续阅读 >