代码示例:(标识:python_dictionary_length)
python_dictionary_length.py
thisdict =	{
  "brand": "Porsche",
  "model": "911",
  "year": 1963
}

print(len(thisdict))
运行结果: