06 2019 档案

摘要:参考链接: Leetcode LRU 阅读全文
posted @ 2019-06-06 16:02 zzwcng 阅读(185) 评论(0) 推荐(0)
摘要:在写一些比较小的类的时候,例如 Point(x, y) ,不用去定义一个类Point 可使用namedtuple替换: Point = namedtuple('Point', ['x', 'y'], defaults=[1.0, 1.0]) 假设有一个列表points,它是一系列点的集合 point 阅读全文
posted @ 2019-06-06 10:15 zzwcng 阅读(314) 评论(0) 推荐(0)