上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: date_sub('2016-08-01',interval 1 day) 表示 2016-07-31 date_sub('2016-08-01',interval 0 day) 表示 2016-08-01 date_sub('2016-08-01',interval -1 day) 表示 2016 阅读全文
posted @ 2018-09-27 11:09 那时的吻狠陶醉 阅读(1466) 评论(0) 推荐(0) 编辑
摘要: 此错误就是因为需要string类型的数据,但是你的数据(x)是byte型。 解决方法: 阅读全文
posted @ 2018-08-23 10:53 那时的吻狠陶醉 阅读(3258) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/eruituoa/article/details/75142500 阅读全文
posted @ 2018-08-22 16:47 那时的吻狠陶醉 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 解决方式: 使用时候只要在json.dumps增加一个cls参数即可: 转载链接:https://my.oschina.net/whp/blog/111173 阅读全文
posted @ 2018-08-20 16:50 那时的吻狠陶醉 阅读(1794) 评论(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 那时的吻狠陶醉 阅读(337) 评论(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 那时的吻狠陶醉 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 字符串为:6.12 ounces 阅读全文
posted @ 2018-08-08 21:31 那时的吻狠陶醉 阅读(8326) 评论(0) 推荐(0) 编辑
摘要: 例如一个元组里面的元素类型是str类型,将它们改变成int类型: 阅读全文
posted @ 2018-07-30 12:44 那时的吻狠陶醉 阅读(1407) 评论(0) 推荐(0) 编辑
摘要: 用法:truncate table 表名; 阅读全文
posted @ 2018-07-24 10:22 那时的吻狠陶醉 阅读(216) 评论(0) 推荐(0) 编辑
摘要: item_weight = '1.8 inches' weight_re = re.findall(r'([1-9]\d*.\d*|0.\d*[1-9]\d*|\d+) ([a-z\s]*)', item_weight) 阅读全文
posted @ 2018-07-17 12:27 那时的吻狠陶醉 阅读(219) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页