#猜价钱
trueprice = 202
price = input("Please guess the price:")
while (int(price) != trueprice):
    if(int(price) > trueprice):
        price = input("Your price is higher,Please try again:")
    else:
        price = input("Your price is lower,Please try again:")
print("Great! The price is %s"  %price)

 

相关文章:

  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
  • 2021-10-19
  • 2022-12-23
  • 2021-10-18
  • 2021-09-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-02
  • 2021-09-27
  • 2021-12-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
相关资源
相似解决方案