python get dict key 在 How can I get dictionary key as variable directly in Python (not 的評價 You should iterate over keys with: for key in mydictionary: print "key: %s , value: %s" % (key, mydictionary[key]). ... <看更多>