在Python中,如何生成12位随机数?有没有我们可以指定范围的功能random.range(12)?
random.range(12)
import random random.randint()
输出应为12位数字的字符串,范围为0-9(允许前导零).
python
python ×1