07 2018 档案

摘要:例如一个元组里面的元素类型是str类型,将它们改变成int类型: 阅读全文
posted @ 2018-07-30 12:44 那时的吻狠陶醉 阅读(1421) 评论(0) 推荐(0)
摘要:用法:truncate table 表名; 阅读全文
posted @ 2018-07-24 10:22 那时的吻狠陶醉 阅读(228) 评论(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 那时的吻狠陶醉 阅读(226) 评论(0) 推荐(0)
摘要:import refind_float = lambda x: re.search("\d+(\.\d+)?", x).group() find_float("有1.3元") 阅读全文
posted @ 2018-07-16 19:39 那时的吻狠陶醉 阅读(1706) 评论(0) 推荐(0)
摘要:python3版本解决方案: 阅读全文
posted @ 2018-07-04 18:06 那时的吻狠陶醉 阅读(484) 评论(0) 推荐(0)