如果语句返回错误的值

时间:2015-01-25 00:35:10

标签: python

import time
print("Welcome My Fellow Friend")
print("You have £5000")
rs = input("Would you like to buy a Ford Focus RS?")
if rs ==  "yes":
  print("You Have Bought The Ford Focus RS BALANCE = £0.00")
elif rs == "no":
  print("ok")
  

好的问题是,当我输入yes时它会返回你已经买了福特福克斯RS BALANCE =£0.00但是当我放弃它它会返回相同的东西!

谢谢!

0 个答案:

没有答案