摘要: break用法:循环的时候,循环一次即停止 import pymysql,xlwt FI = pymysql.connect( host='*',user='root',passwd='*', port=*,db='z*',charset='utf8' #port必须写int类型, #charset 阅读全文
posted @ 2021-06-25 17:21 小蕊-zr 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 在python里,1个=号是赋值,==号是IF后面的等于 阅读全文
posted @ 2021-06-25 15:07 小蕊-zr 阅读(311) 评论(0) 推荐(0) 编辑
摘要: import os,time,shutil root=r'D:\pylx\20210622' while True: for item in os.listdir(root): abs_path = os.path.join(root, item) if time.time()-os.path.ge 阅读全文
posted @ 2021-06-25 14:36 小蕊-zr 阅读(30) 评论(0) 推荐(0) 编辑
摘要: sql = '''select case left(d.name,2) when 'DD' then '*' when 'DW' then '*' when 'ZN' then '*' when 'DL' then '*' WHEN 'HB' then '华北' when 'ZH' then'*' 阅读全文
posted @ 2021-06-25 13:58 小蕊-zr 阅读(563) 评论(0) 推荐(0) 编辑