Python 矩阵的旋转
2016-05-09 18:02
573 查看
Array = [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]] print (Array) for i in range(len(Array)): for j in range(i,len(Array[i])): tmp = Array[i][j] Array[i][j] = Array[j][i] Array[j][i] = tmp print (Array)
相关文章推荐
- python2和python3的区别
- python2和python3的区别
- Python及其包安装
- leetcode(4),Move Zeroes详解(python)
- python遍历字典所有的字段
- win7系统Python 下配置 numpy
- python: 生成guid
- python:执行一个命令行N次
- python网页自动摘要和关键词提取
- 二叉查找树中搜索区间
- [LeetCode]题解(python):143-Reorder List
- Python WSGI
- python - __str__ 和 __repr__
- [LeetCode]题解(python):142-Linked List Cycle II
- wxpython最小化图标的创建
- python查询IP对应的地理位置
- Python 数据分析包:pandas 基础
- Python sort( ) sorted( ) reverse( ) reversed( ) 总结
- Python pip distribute
- python reverse()方法