with open(negative_txt, ‘a‘) as f: patch_name1 = patch_name + ‘\n‘ f.write(patch_name1)
txt换行追加写入
原文:https://www.cnblogs.com/ziytong/p/11718741.html