tool = 1
new_file = 0
while tool == 1:
user_Input = (str(input(">>>")))
if user_Input == "new": #新建一个文件
print(" ")
user_Input_New_File = (str(input(">>>")))
with open(user_Input_New_File, "w") as f:
new_file = f.readlines()
各位大佬,为啥这样的话,执行完了新建文件后,会关闭这个py程序啊?谢谢啦