我们能否知道Python有序字典中项目的位置?例如:
如果我有字典:
// Ordered_dict is OrderedDictionary Ordered_dict = {"fruit": "banana", "drinks": "water", "animal": "cat"}
现在如何知道猫属于哪个位置?是否有可能得到如下答案:
cat 或以其他方式?
cat
python ordereddictionary
ordereddictionary ×1
python ×1