【发布时间】:2018-09-06 19:03:35
【问题描述】:
我正在阅读 Zed Shaw 的 Learn Python The Hard Way 教科书 (LPTHW)。
当 Zed 创建字典时,他使用第二个括号来创建字典。如:
# Creating an empty dictionary
dict = []
这是一个图片示例,他使用字典为项目创建设置文件,使用第二个括号创建名为“config”的字典:
link : implementation of dictionary from his workbook
但这给了我一个错误。我该如何解决?
【问题讨论】:
标签: python dictionary