((针对上述编辑,上述链接未对此进行回答.上述问题与我的预期用途无关.))
我读过一个关于将字符串变成小写的类似问题;
我理解这是如何完美的,但是我自己的尝试失败了.
这是我当前调试块的设置示例;
#Debug block - Used to toggle the display of variable data throughout the game for debug purposes.
def debug():
print("Would you like to play in Debug/Developer Mode?")
while True:
global egg
choice = input()
if choice == "yes":
devdebug = 1
break
elif choice == "Yes":
devdebug = 1
break
elif choice == "no":
devdebug = 0
break
elif choice == "No":
devdebug = 0
break
elif choice == "bunny":
print("Easter is Here!")
egg = …Run Code Online (Sandbox Code Playgroud)