高仿模拟练习,补全代码空缺,答案点击按钮展开
生成 1 到 10(含两端)的随机整数并输出。
import random print(random.____(1, 10))
randint
random.randint(a, b) 返回 [a, b] 含两端的随机整数。