Python生成0到9的随机数

import random
a=random.choice(range(10))
print(a)
原文地址:https://www.cnblogs.com/ITester520/p/13204494.html