Python and Java parameter passing [duplicate]
问题 This question already has answers here : How do I pass a variable by reference? (26 answers) Closed 4 years ago . I've seen in several places, including the Python documentation that Python uses pass by "assignment" semantics. Coming from a Java background, where the common mistake of saying "Java passes primitives by value, and objects by reference" is as a result of having objects references passed by value, I can't help but wonder if Python is really doing the same thing. To me, the