随笔分类 -  Python

摘要:# -*- coding:utf-8 -*- # import os import time import sys def del_expire_file(file_path,expire_day): if not os.path.isdir(file_path): print("{} is not 阅读全文
posted @ 2021-04-29 22:52 knowledge-is-power 阅读(73) 评论(0) 推荐(0)
摘要:import configparser config = configparser.ConfigParser(allow_no_value=True) config.read("test.ini") ''' test.ini [db] host = 127.0.0.1 port = 8888 use 阅读全文
posted @ 2021-04-29 22:48 knowledge-is-power 阅读(43) 评论(0) 推荐(0)