摘要: 参考 https://stackoverflow.com/questions/2970608/what are named tuples in python 先上例子,用tuple和namedtuple分别表示点(x, y),然后计算两个点的距离 1. 用tuple表示点,从例子可见计算两个点的距离 阅读全文
posted @ 2018-04-10 23:28 Rocin 阅读(313) 评论(0) 推荐(0) 编辑