difference between clearing list and initializing list to null list

后端 未结 0 1579
不思量自难忘°
不思量自难忘° 2020-12-29 02:41

In this code, I am getting different outputs if I change the line from temp=[] to temp.clear().

t = int(input())
arr = list()
temp =         


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