我正在使用 python 并在大学做家庭作业,因为这个我不能让 if-elif-else 函数工作.. D:
这是我的代码,我无法让它正常工作。它只打印没什么可吹嘘的。即使分数是1000。
score = raw_input("What is your score?")
if (score >= 0, score <= 999):
print "Nothing to brag about."
elif (score >= 1000, score <= 9999):
print "Good Score."
elif (score >= 10000):
print "Very Impressive!"
else:
print "That's not a legal score!"