我到处找了,想找到这个问题的答案,但似乎找不到。我从Python开始,我试图做一个简单的测验游戏。我希望播放器能够键入他们想要的菜单名goto
。你知道吗
到目前为止我有:
print("Hello, and welcome to the Python Quiz.")
print("[START]")
print("[HELP]")
print("[ABOUT]")
print("[EXIT]")
menu = input("Type name of menu to navigate to corresponding menu. ")
if menu == "START":
...........
接下来是什么?你知道吗
我会将每个菜单定义为它应该打印的样子
然后你就可以做一些
相关问题 更多 >
编程相关推荐