例一个函数def nun(a,b):s=a+b
怎样将s的值在外部引用出来如:c=s
def nun(a,b): s=a+b return s a = int(input()) b = int(input()) c = nun(a,b) print(c)
global s即就是定义一个全局变量s