摘要: 1 import configparser 2 3 # config = configparser.ConfigParser() 4 # config["DEFAULT"] = {'Port':3306, 5 # 'Server_name':'localhost', 6 # 'Server_ip':... 阅读全文
posted @ 2019-07-17 15:19 恶灵酒 阅读(191) 评论(0) 推荐(0) 编辑
摘要: # 记录用户行为或者报错信息 import logging # 配置错误日志有两种方法 # 方法1:通过basicconfig # 配置简单。但是能做的事情少,解决不了中文乱码,不能同时输出到屏幕和文件 # logging.debug('debug message') # logging.info('info message') # logging.warning('warning m... 阅读全文
posted @ 2019-07-17 15:19 恶灵酒 阅读(327) 评论(0) 推荐(0) 编辑