import os
while True:
name=input("请输入一个名字")
with open("F:\\ aa.txt","a",encoding="UTF-8" )as n:
n.writelines(name+"\n")
n.close()
2023-11-05 15:46:28
import os
while True:
name=input("请输入一个名字")
with open("F:\\ aa.txt","a",encoding="UTF-8" )as n:
n.writelines(name+"\n")
n.close()