运用random.randin函数,在线救急,交作业了!
import random # 导入随机模块 n = random.randint(1,6) # 在1-6中随机生成 一个整数 print(f'骰子数字为{n}')