写了一下午的排序算法,其实用import collections就能解决

import collections

 

dicNumContent = collections.OrderedDict()#存储了编号和文本内容的映射
dicNumTreeWidgetItem = collections.OrderedDict()#TreeWidgetItem也很重要
posted @ 2020-06-25 15:49  bH1pJ  阅读(24)  评论(0编辑  收藏  举报