编程语言中的实现Python在Python中,可以使用`random`模块来生成随机数:```pythonimport randomnumber = random randint(1, 9)print(n