Py学习  »  Python

python 3.6.6输入不从输入返回任何内容

WastefulProgramming • 5 年前 • 1217 次点击  

我的代码现在很简单

#BlackJack

print("welcome to Wasteful's blackjack game")`
print("this program was built using standard python")

print("please select a option")
print("A to start, B to quit")
print("----------------------------")

menu_select = input("A/B: ").lower

if menu_select == "a":
    print("starting game when i can be assed to program it")
elif menu_select == "b":
    exit()
else:
    print("invalid")

但两个都是空的 a b ?我卡住了,需要点帮助,谢谢!

编辑:我注意到了这个愚蠢的错误。lower应该是。lower()

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/40733
 
1217 次点击  
文章 [ 2 ]  |  最新文章 5 年前