返回顶部

收藏

Dictionary: create a new list of keys

更多
d2 = {'spam': 2, 'ham': 1, 'eggs': 3}    # make a dictionary

print d2                                       # order is scrambled

print d2.keys()                  # create a new list of my keys

标签:Python,Dictionary

收藏

0人收藏

支持

0

反对

0