源代码:
def func():
app=[] #开辟新空间
def put(x):
app.append(x)
def get():
return app
return put,get #对p数组传值,就相当于对func中数组传值
p,g=func()
p(1)
p(2)
print("数组中的数为: ",g())
p(3)
p(4)
print("此时数组中的数又为:? ",g())
C(conclusion总结,之后不再提示):1.大脑帮助我们节省空间,计算机不辞辛劳存储。2.计算机程序,如射箭,有拉弓,就有收弓。