生成随机数主要用random.randrange()
或者random.randint()
这两个函数
import random
goal = random.randint(1,100)
guess = int(input('please input a number from 1 to 100:'))
while guess != goal:
生成随机数主要用random.randrange()
或者random.randint()
这两个函数
import random
goal = random.randint(1,100)
guess = int(input('please input a number from 1 to 100:'))
while guess != goal: