文件操作同时打开两个文件格式

with open('file/userinfo',encoding='utf-8') as f1,\
#         open('file/userinfo.new',mode='a',encoding='utf-8') as f2:

 

posted @ 2018-11-24 11:21  张朝华  阅读(169)  评论(0编辑  收藏  举报