求助
  • 板块灌水区
  • 楼主LuCat_qwq
  • 当前回复2
  • 已保存回复2
  • 发布时间2022/1/13 18:47
  • 上次更新2023/10/28 12:25:19
查看原帖
求助
649256
LuCat_qwq楼主2022/1/13 18:47

python中函数里的变量怎么在外部调用

例如

def goodsrandom():
    shell1 = r.randint(0, 3)
    shell2 = r.randint(0, 3)
    shell3 = r.randint(0, 5)
    shell4 = r.randint(0, 5)

这个函数中的四个shell变量如何在外面调用?

2022/1/13 18:47
加载中...