2018年1月16日

logging 日志模块

摘要: import logging logging.warning("user [alex] attempted wrong password more than 3 times")...........输出给屏膜 logging.basicConfig(filename='example.log',le 阅读全文

posted @ 2018-01-16 19:02 wc_chan 阅读(146) 评论(0) 推荐(0)

json 、 pickle 、shelve序列化

摘要: json and pickle 序列化(只可以dump,load一次):类似str(数据类型),f.write(数据类型) 到文件...........序列化类似 eval(字符串) 变成数据类型 .....................反序列化json:标准序列化类型,可与第三方程序交互,如ja 阅读全文

posted @ 2018-01-16 18:51 wc_chan 阅读(144) 评论(0) 推荐(0)

导航