编辑代码

# coding:utf-8
#JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。 
def test(b=2,a=4):
    global z
    z+=a*b
    return z
z=10
print(test(),z)