1 for line in fr.readlines(): 2 try: 3 # print(len(line)) 4 if(len(line)==1): 5 continue 6 else: 7 fw.write(matcher1[0]+‘_%s‘%j+‘,‘+line) 8 j=j+1 9 except: 10 pass
时间: 2024-07-30 03:30:50
1 for line in fr.readlines(): 2 try: 3 # print(len(line)) 4 if(len(line)==1): 5 continue 6 else: 7 fw.write(matcher1[0]+‘_%s‘%j+‘,‘+line) 8 j=j+1 9 except: 10 pass