python-基礎-函數-局部和全局變量

1 函數的定義和調用 1.1 函數定義 1.2 函數的調用   2 函數參數 >>> def fun(a, b, *args, **kwargs): ... """可變參數演示示例""" ... print "a =", a ... print "b =", b ... print "args =", args ... print "kwargs: " ..
相關文章
相關標籤/搜索