data = {'a':7,'b':9,'c':10}
key = []for i in sorted(data.items()): key.append(i[0])print(key)本文共 149 字,大约阅读时间需要 1 分钟。
data = {'a':7,'b':9,'c':10}
key = []for i in sorted(data.items()): key.append(i[0])print(key)转载于:https://www.cnblogs.com/laosun0204/p/9811896.html