08 2018 档案

摘要:此错误就是因为需要string类型的数据,但是你的数据(x)是byte型。 解决方法: 阅读全文
posted @ 2018-08-23 10:53 那时的吻狠陶醉 阅读(3368) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/eruituoa/article/details/75142500 阅读全文
posted @ 2018-08-22 16:47 那时的吻狠陶醉 阅读(173) 评论(0) 推荐(0)
摘要:解决方式: 使用时候只要在json.dumps增加一个cls参数即可: 转载链接:https://my.oschina.net/whp/blog/111173 阅读全文
posted @ 2018-08-20 16:50 那时的吻狠陶醉 阅读(1814) 评论(0) 推荐(0)
摘要:import datetime s = 'December 8, 2016' ss=datetime.datetime.strptime(s.strip(), '%B %d, %Y') print(ss) 阅读全文
posted @ 2018-08-14 09:26 那时的吻狠陶醉 阅读(392) 评论(0) 推荐(0)
摘要:import re html='<a href="//www.jb51.net">脚本之家</a>,Python学习!' dr = re.compile(r'<[^>]+>',re.S) dd = dr.sub('',html) print(dd) 阅读全文
posted @ 2018-08-10 16:48 那时的吻狠陶醉 阅读(468) 评论(0) 推荐(0)
摘要:字符串为:6.12 ounces 阅读全文
posted @ 2018-08-08 21:31 那时的吻狠陶醉 阅读(8338) 评论(0) 推荐(0)