python 生成随机数

作者: python 发布时间: 2022-10-16 浏览: 424 次 编辑

python 生成随机数

 import random
a = random.randint(1,7)
print(a)