代码示例:(标识:python_numbers_random)
python_numbers_random.py
import random

print(random.randrange(1,10))
运行结果: