将Stu_pack的‘万疆.txt’写入demo里面’副本_万疆.txt')
fr=open('../Stu_pack\万疆.txt','rt',encoding='utf_8')
fw=open('副本_万疆.txt','w+',encoding='utf_8')
for line in fr:
fw.write(line)
fr.close()
fw.close()
将Stu_pack的‘万疆.txt’写入demo里面’副本_万疆.txt')
fr=open('../Stu_pack\万疆.txt','rt',encoding='utf_8')
fw=open('副本_万疆.txt','w+',encoding='utf_8')
for line in fr:
fw.write(line)
fr.close()
fw.close()