摘要: point_x = [A_x, B_x, C_x, D_x] point_y = [A_y, B_y, C_y, D_y] points_tulpe = list(zip(point_x, point_y)) print(points_tulpe) >>>[(A_x,A_y),(B_x,B_y),( 阅读全文
posted @ 2020-05-07 13:29 胸怀丶若谷 阅读(5388) 评论(0) 推荐(0) 编辑
摘要: needdata = ' '.join(needdata.split()) 阅读全文
posted @ 2020-05-07 11:35 胸怀丶若谷 阅读(328) 评论(0) 推荐(0) 编辑
摘要: f3 = open(file=path,mode='rb') data = f3.read() # print(data) f3.close() result = chardet.detect(data) print(result) 结果: {'encoding': 'Big5', 'confide 阅读全文
posted @ 2020-05-07 10:34 胸怀丶若谷 阅读(221) 评论(0) 推荐(0) 编辑
摘要: linux环境自带有python2和python3 大部分与windows一致,不同的是激活环境: 在虚拟环境的上一级目录中,输入: source venv/bin/activate 阅读全文
posted @ 2020-05-07 10:22 胸怀丶若谷 阅读(967) 评论(0) 推荐(0) 编辑