摘要: if os.path.getsize('j:/v.txt')==0: path=r'j:/v' f=open('j:/v.txt','w') for filename in os.listdir(path): f.write(os.path.join(path,filename,'\\n')) f. 阅读全文
posted @ 2021-12-07 22:41 星尘ome 阅读(87) 评论(0) 推荐(0)
摘要: import ospath=r'j:/v'for filename in os.listdir(path): print(os.path.join(path,filename)) 阅读全文
posted @ 2021-12-07 21:50 星尘ome 阅读(71) 评论(0) 推荐(0)
摘要: aa=[a,b,c,d] #打开文件,追加a out = open('Z:/Desktop/虚拟机/7.csv','a', newline='') #设定写入模式 csv_write = csv1.writer(out,dialect='excel') #写入具体内容 csv_write.write 阅读全文
posted @ 2021-11-28 11:49 星尘ome 阅读(439) 评论(0) 推荐(0)
摘要: browser.switch_to.frame(1) 直接用数字切换 一个一个的试 阅读全文
posted @ 2021-11-27 23:13 星尘ome 阅读(36) 评论(0) 推荐(0)