📜  如何在python代码示例中创建一个随机变量

📅  最后修改于: 2022-03-11 14:46:56.577000             🧑  作者: Mango

代码示例3
import random
value = randint(1,10)
#1 and 10 represent the range for your random value
print(value)