摘要: datetime库概述 datetime库定义了2个常量和5个类。 2个常量分别是MINYEAR=1和MAXYEAR=9999。 5个类分别是: date类:表示日期的类 time类:表示时间的类 datetime类:表示时间日期的类 timedelta类:表示两个datetime对象的差值; tz 阅读全文
posted @ 2019-10-18 17:58 洛丶丶丶 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 编码问题 https://www.cnblogs.com/clbao/articles/11697228.html python基础常见问题 https://www.cnblogs.com/clbao/articles/11391146.html 阅读全文
posted @ 2019-10-18 11:15 洛丶丶丶 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 编码问题处理 有时候获取的数据为bytes或者str c = b'\u6279\u53d1\u548c\u96f6\u552e\u4e1a' # bytes print(c.decode('unicode_escape')) a = "我在这里——————\u6279\u53d1\u548c\u96 阅读全文
posted @ 2019-10-18 11:10 洛丶丶丶 阅读(126) 评论(0) 推荐(0) 编辑