编写.ini文件,编写.ini,from ConfigP


from ConfigParser import RawConfigParser as rcp if __name__ == "__main__":     cfg = rcp()     cfg.add_section("Info")     cfg.set("Info", "ImagePath", "f:/whu")     cfg.set("Info", "foo", "cd's information")     cfg.write(open("f:/Whu/try.ini","w")) # #[Info] #imagepath = f:/whu #foo = cd's information#该片段来自于http://byrx.net

评论关闭