Python7--局部变量、全局变量、缺省参数、不定长参数、递归

局部变量: 函数内部定义的变量,只能在函数内部使用 全局变量: 函数外部定义的变量,在哪均可以调用   1 '''   2 def get_wendu():   3     wendu = 33   4     return wendu   5   6 def print_wendu(wendu):   7     print('温度:%d'%wendu)   8   9 result =  ge
相关文章
相关标签/搜索