txt换行追加写入

时间:2019-10-22 13:11:09   收藏:0   阅读:111
    with open(negative_txt, ‘a‘) as f:
        patch_name1 = patch_name + ‘\n‘
        f.write(patch_name1)

  

原文:https://www.cnblogs.com/ziytong/p/11718741.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!