The only mode of parameter passing in Python is call by sharing. That is the same mode
used in most OO languages, including Ruby, SmallTalk and Java3. Call by sharing means
that each formal parameter of the function gets a copy of each reference in the arguments.
In other words, the parameters inside the function become aliases of the actual
arguments.
【 在 nokia0125 的大作中提到: 】
: 这个能说的明白一些吗
: 这类似c语言的,按照指针传递和按照相应的值传递
--
FROM 124.93.28.*