Modifying the data in a collection directly?

前端 未结 0 720
鱼传尺愫
鱼传尺愫 2021-01-15 21:21

Is there a way in Python3 to modify the data in a collection directly?

For example, the below code:

var1, var2 = 0, 0
for data in [var1, var2]:
  data          


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