摘要: 转自:https://docs.python.org/zh-cn/3/library/typing.html 以前只能通过注释来说明变量类型。 可以简化一些类型说明的过程。 阅读全文
posted @ 2019-05-30 18:42 lypbendlf 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 转自:https://blog.csdn.net/iamaiearner/article/details/9378093 提供了打印出任何python数据结构类的方法。 阅读全文
posted @ 2019-05-30 17:08 lypbendlf 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.jianshu.com/p/801318c77ab5 该模块提供了堆排序算法的实现。堆是二叉树,最大堆中父节点大于或等于两个子节点,最小堆父节点小于或等于两个子节点。 1.创建 通过列表或者是heappush函数 默认是从小到大排序 2.弹出值.heappop函数 3. 阅读全文
posted @ 2019-05-30 17:03 lypbendlf 阅读(100) 评论(0) 推荐(0) 编辑