源代码
from numpy import random x = random.choice([3, 5, 7, 9]) print(x)
运行结果