method = input("Is it currently raining? ")
if method=="Yes" :
print("You should take the bus.")
else: distance = input("How far in km do you want to travel? ")
if distance == > 2:
print("You should walk.")
elif distance == < 10 :
print("You should take the bus.")
else:
print("You should ride your bike.")
NVM,我固定it..for那些谁拥有了同样的问题,是对神交学习它只是一个缩进的问题,我忘了写INT ...Python 3的语法错误
请不要更改你的问题中的代码在你收到答案后。它使答案毫无意义。 – RichieHindle
@RichieHindle对不起,我不知道...我只需要仔细检查我复制了正确的代码...:0对不起 –
我已经回滚到您收到答案的代码。 – Marcin