我刚刚开始学习如何编码,并且正在学习 Python。我正在尝试编写一个程序,每次用户键入 1 时都会打印一个 ASCII 艺术,但是当我尝试运行该模块时,它给了我标题中的错误。
这是我的代码:我哪里出错了?
yORn = int(input("Type 1 to run the program, Type 2 to Exit: ")
while yORn = 1:
Name = str(input("What is your name?"))
print(" 1111111111111111111111 ")
print(" 1 1 ")
print(" 1 1 ")
print(" 1 Hello... 1 ")
print(" 1 ", Name," 1 ")
print(" 1 1 ")
print(" 1 1 ")
print(" 1111111111111111111111___ ")
print(" 11111111 | ")
print(" ------------------------- O ")
print(" 1.............._... ... 1 ")
print(" 1...................... 1 ")
print(" ------------------------- ")
yORn = int(input("Type 1 to run the program, Type 2 to Exit: ")
print ("GoodBye")