what is implementation or execution Difference Between dictionary with keys as 0,1,2,.. and list in python

前端 未结 0 357
滥情空心
滥情空心 2021-01-22 09:54
li=[1,2]
dic={0:1,1:2}

print(li[0],dic[0])

I have executed following code, they give the same result, is there any implementation or execu

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