![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python标准库
pw_linyl
码农界的菜鸟,偏向于Python Web开发
展开
-
2021-04-14
PyQt5 遍历QTreeWidgetdef traverse: iterator = QtWidgets.QTreeWidgetItemIterator(self.folder_tree.tree) while iterator.value(): item = iterator.value() if item.checkState(0) == QtCore.Qt.Checked: category_ids.append(item.model.i原创 2021-04-14 17:49:37 · 119 阅读 · 0 评论 -
Python标准模块--functools
1 模块简介functools,用于高阶函数:指那些作用于函数或者返回其它函数的函数,通常只要是可以被当做函数调用的对象就是这个模块的目标。在Python 2.7 中具备如下方法,cmp_to_key,将一个比较函数转换关键字函数;partial,针对函数起作用,并且是部分的;reduce,与python内置的reduce函数功能一样;total_ordering,在类装饰器中按照缺失顺序,填充方...转载 2018-04-24 15:45:55 · 112 阅读 · 0 评论