按str 存储1 w2 = open(‘./trsd_w.txt‘,‘a‘)#a代表追加 w代表重写 2 if matcher1: 3 flag = 1 4 w2.write("\n") 5 for j in matcher1: 6 for k in j: 7 w2.write(k)
按 list 存储1 w2 = open(‘./trsd_w.txt‘,‘a‘)#a代表追加 w代表重写 2 if matcher1: 3 flag = 1 4 w2.write("\n") 5 for j in matcher1: 7 w2.write(j)
时间: 2024-10-11 18:11:22