全局变量 修改全局变量 a=100 def test(): global a a=200 print a 多个返回值 缺省参数 def test3(a,b=1): print a,b test3(a) test3(a,b=2) 不定长参数 相关文章: 2022-12-23 2021-12-19 2021-10-07 2022-12-23 2022-12-23 2021-12-04 2022-02-07 2021-11-09