摘要: 【题干描述】 Given a matrix A, return the transpose of A. The transpose of a matrix is the matrix flipped over it's main diagonal, switching the row and col 阅读全文
posted @ 2018-07-16 21:31 NirvanaInFire 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 1. range() 和 xrange()的区别 这么看,range和xrange返回的值是一致的;但是range返回的实际上是一个列表;xrange返回的是一个迭代器 python2.7有xrange;python3无xrange 数据量大的时候,使用xrange效率高 2. zip()函数 3. 阅读全文
posted @ 2018-07-16 20:55 NirvanaInFire 阅读(186) 评论(0) 推荐(0) 编辑