in python what is the difference of '=' and '+='

后端 未结 0 1927
清歌不尽
清歌不尽 2021-01-21 04:21

In Python, I have tuple, to convert tuple to list i use

tuple1 = (1,2,3,4,5)
eq_list = []
eq_list += tuple1

it works fine.But if i use :



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