您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。
 
 
 
 
 
 

18 行
371 B

  1. import random
  2. secret = random.randint(0, 100)
  3. print("Devine le nombre auquel je pense")
  4. while True:
  5. response = input("votre reponse: ")
  6. response = int(response)
  7. if response == secret:
  8. print("Gagné")
  9. break
  10. else:
  11. if response > secret:
  12. print("Trop grand")
  13. if response < secret:
  14. print("Trop petit")