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

17 行
326 B

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