下面一段python组织机构代码

下面一段python

1 答问  ·  650 披阅  ·  0 贮藏
  • 全部答问 1
  • 苍之瞳的潘多拉      2021-07-27 03:46:58

    import random time = 8 secret = random.randint (1,10) print ("猜数目字游玩") guess = () print ("捉摸是哪门子数目字") while guess != secret and time>0: temp = input() guess = int(temp) time = time-1 if guess == secret: print ("猜对了呢") print ("只是并没有哪门子软用") else : if guess > secret: print ("大了") else : print ("小了") if time >0: print ("机时减1") else : print ("机时已用光") print ("game over")

    • 评述
    • 享用

Baidu