import random #导入模块 n = random.randint(0,10) #定义变量 guess = int(input("input anyone to make it correct:")) if guess > n : #多分支 print("lagre") elif guess < n : print("small") else : print("correct") print(n) Categories: python Tags: python-random 0 Comments 发表评论 取消回复邮箱地址不会被公开。 必填项已用*标注 Name * Email * Website What's on your mind? 在此浏览器中保存我的姓名、电子邮件和站点地址。
0 Comments