📜  python 3中的随机整数 - Python代码示例

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

代码示例1
from random import randint 
 
print(randint(1, 10))

# prints a random integer from 1 to 10