Results 2 comments of stamaimer

感觉第一个问题举的例子不恰当。 应该使用相同的操作来考察可变对象和不可变对象。现在的例子中,对于不可变对象(整数)在函数中创建了一个新的对象,然后把函数中的a绑定到这个新的整数对象上,对于可变对象(列表)在函数中的append操作只是就地更改了原来的列表对象,如果在这个函数中同样创建一个新的列表对象,然后把a绑定到新的列表对象上,函数外的a仍然还是原来的对象。 def fun_a(a): print id(a) a = type(a)() print id(a) print a a = 1 fun_a(a) print a a = [1] fun_a(a) print a fun_a中的操作对所有类型都创建了一个新的对象,把内部的a绑定到新创建的对象上,并不影响外部的a指向的对象 def fun_b(a, b): print...

@biomap Thanks for your reply. In China there is only digits in phone number. And i can't find where use the `get_user` by primary key in the project. And i...