python the list in dict extend value

前端 未结 0 523
囚心锁ツ
囚心锁ツ 2021-02-19 09:12

There was a dictionary I created and the value of the dict was a list.
The sample code is below.

zigzag = dict.fromkeys(range(1, 4),[])
for i in range(1, 4):
         


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