【新人】想请大佬看一下我自己做的python的一个小游戏

no = input(“请问你是否输入过这个文件:”)
no = str(no)
yes = [“yes”]
if no in yes:
keys = 1
if keys == 1:
key = 0
while key < 5:
name_2 = input(“再次输入一个网址:”)
name_2 = str(name_2)
file = open("/网站.txt",“a”)
file.write("\n" + name_2)
file.close
key +=1
if key >= 5:
break
else:
keys = 0
if keys == 0:
name =input(“输入一个网址:”)
name = str(name)
File = open("/网站.txt",“w+”)
File.write(name)

你可能感兴趣的:(python)