例1: total = 0; # 这是一个全局变量 # 可写函数说明 def sum(arg1, arg2):# 返回2个参数的和."# total = arg1 + arg2; # total在这里是局部变量.# print "函数内是局部变量 : "……