如何在Python中生成0到9(含)之间的随机整数?
例如,0,1,2,3,4,5,6,7,8,9
0,1,2,3,4,5,6,7,8,9
尝试:
from random import randrange print(randrange(10))