Python笔记

python笔记--(1)--[有序字典的创建]

2017-03-15  本文已影响0人  FengBli

python中使用有序字典:


import collection

dic = collections.OrderedDict()

dic['0'] = 'hello'

dic['A'] = 'world'
上一篇 下一篇

猜你喜欢

热点阅读