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
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