1.python全局变量相关概念及使用 来自菜鸟教程上的例子: http://www.runoob.com/python3/python3-function.html 一.python入参需要注意地方 a=1 def speak(a=None): if a is None: print('None') else: print(a) speak() None speak(a=a) 1 class A(): def talk(self,filename=''): if filename=='': f