• 2022-05-29
    在代码后面说明变量是全局变量还是局部变量num1=1 #num1为__________(1)num2=2 #num2为__________(2)def fun(): global num1 #num1为__________(3) num1 =11 num2 = 22 #num2为__________(4) print(num1,num2)fun()print(num1,num2)