# Python3 面試試題--Python語言特性

Python語言特性 1 Python的函數參數傳遞 看兩個例子:css a = 1 def fun(a): a = 2 fun(a) print(a) # 1 a = [] def fun(a): a.append(1) fun(a) print(a) # [1] 全部的變量均可以理解是內存中一個對象的「引用」,或者,也能夠看似c中void*的感受。html 經過id來看引用
相關文章
相關標籤/搜索