本文共 76 字,大约阅读时间需要 1 分钟。
#第一步引入模块
import random
#第二步生成随机数
print random.randint(1,3);#[1,2,3]注意这里是闭区间。
转载地址:http://xvfsl.baihongyu.com/