我对python完全不熟悉,我有一个脚本可以产生这个错误
for a in sorted([p for p in PRODUCERS.Get('PartitionName="{}"'.format(partition))
if p["SignalName"] not in EXCLUDED_SIGNALS]):
TypeError: unorderable types: dict() < dict()
这个脚本是用Python2.7编写的,我使用的是3.5(32位),有什么变化吗?在
函数如下:
^{pr2}$
Tags:
dict排序列表示例:
在示例中,键是“id”字段。你需要决定什么是合适的字段。在
输出
^{pr2}$相关问题 更多 >
编程相关推荐