【发布时间】:2015-03-18 07:34:58
【问题描述】:
首先,我是 Python 新手。我正在使用 PTVS http://pytools.codeplex.com/。接下来我安装了reportlab。然后我在https://github.com/nakagami/reportlab/blob/master/demos/colors/colortest.py#L68 上运行了一个示例演示,但是在线,
all_colors = reportlab.lib.colors.getAllNamedColors().items()
all_colors.sort() # alpha order by name
我遇到了错误,dict_items object has no attribute sort
【问题讨论】: