小编Ant*_*one的帖子

文本游戏 - 将输入文本转换为小写 - Python 3.0

((针对上述编辑,上述链接未对此进行回答.上述问题与我的预期用途无关.))

我读过一个关于将字符串变成小写的类似问题;

如何在Python中将字符串转换为小写

我理解这是如何完美的,但是我自己的尝试失败了.

这是我当前调试块的设置示例;

#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)

python text input lowercase

-1
推荐指数
1
解决办法
2万
查看次数

标签 统计

input ×1

lowercase ×1

python ×1

text ×1