我想获取字典的第一个元素,“names(1)”不起作用。
names = {"John":20, "Marc":22, "Dwayne":23} print(names(1))
python dictionary
dictionary ×1
python ×1