import random  #导入模块
sec=random.randint(1,10)  #使用randint函数生成1至10的随机数
print(sec) #打印生成的随机数