摘要: 下面由三个长度为 4 的列表组成的 3x4 矩阵: >>> matrix = [ ... [1, 2, 3, 4], ... [5, 6, 7, 8], ... [9, 10, 11, 12], ... ] 下面的列表推导式将转置行和列: >>> [[row[i] for row in matrix 阅读全文
posted @ 2018-10-15 17:36 子觉 阅读(757) 评论(0) 推荐(0) 编辑
摘要: Directory: 1.List, tuple action 2.String operations 3.Dictionary operations 4.Set 5.File operations 6.Character encoding and transcoding 1.List and Tu 阅读全文
posted @ 2018-10-15 15:52 子觉 阅读(360) 评论(0) 推荐(0) 编辑