Some issue about the function of Python and how it works

后端 未结 0 1913
太阳男子
太阳男子 2021-01-06 06:21

I write the following program to see how function works in Python

def mylove(a):
    a=a+1
a=2
mylove(a)
print(a)

When I print(a), why it is

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