How does array assignment work within a python function?

后端 未结 0 707
礼貌的吻别
礼貌的吻别 2021-02-05 02:45

I\'m confused by the following example. Let a=[1] be a python list and try to write a function which re-assigns the list such that we will have a=[2]

相关标签:
回答
  • 消灭零回复
提交回复
热议问题