在這個程序中,我創建了它,在評估輸入時給我一個錯誤,我不知道爲什麼。我對此也非常陌生。不需要閱讀輸入時遇到問題
def power(maxPower):
p = eval(input("How much power do you generate?"))
if p >= 200:
print "Wow, lots of power"
elif p < 200 and power > 100:
print "Not bad"
else:
print "Hmm, not so much"
其中Python版本您使用的? –
@AhsanulHaque Python 2 – vaultah
我在標記 –