主页
Python
Python 字典
demo_dictionary_dict
运行 ❯
×
更改方向
保存代码
更改主题
thisdict = dict(brand="Ford", model="Mustang", year=1964) # note that keywords are not string literals # note the use of equals rather than colon for the assignment print(thisdict)
{'brand': 'Ford', 'model': 'Mustang', 'year': 1964}