python language and C language

Are all parameters are passed by reference transfer python language (C language concepts) but because of the concept of variable types in python and immutable types, but the transmission parameters are immutable type, the memory address value becomes changed, at Lane does not affect the function of the parameter modification to the original object. When the transmission parameters are variable-type, since the type of the variable memory address does not change, it will affect the original object.

And a reference copy of the value passed passed passed are C language variables, except that the value passed is the value of the copy, the copy address is passed by reference. In general, the higher the efficiency of the copy address (address small data amount), the lower the size of the copy transfer efficiency depends on the value of the value, the greater the efficiency value

Guess you like

Origin www.cnblogs.com/Ghostant/p/12498859.html