when list is used for parameter of functions . Q. about memory stack and heap in python 3

后端 未结 0 1627
栀梦
栀梦 2021-01-15 06:16
def first(a):

cnt=0
if a[0]==1:
    a[0]=0
else:
    a[0]=1

for i in range(1, len(a)):
    if a[i] != a[i - 1]:
        continue
    else:
        if a[i - 1] == T         


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