代码示例:(标识:python_dictionary_dict)
python_dictionary_dict.py
thisdict = dict(brand="Porsche", model="911", year=1963)
# note that keywords are not string literals
# note the use of equals rather than colon for the assignment
print(thisdict)
运行结果: