python3学习手册
#跳出当前循环,跳出for #使用索引: for i in range(10) : #生成10个数,从0开始,0到9 # To Do # range(1,9) #从1开始,1到8 # range(1,9,2) #从1开始,步长为2,即1,3,5,7 [[0 for i in range(3)] for i in range(4)] # 4个 小list,每小list为3元素 print(matrix) matrix = [0 for _ in range(10)] # 下划线表示占位符,如果写 i,有时会提示i未被使用 print(matrix) 三维类推: matrix = [[[0 for _ in range(3)] for _ in in range(4)] for _ in range(2)] print(matrix) #查看数组行数与列数 arr = [[1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12]] print(len(arr)) # 行数 print(len(arr[0])) # 列数 ★遍历字典dic�onary0 码力 | 213 页 | 3.53 MB | 1 年前3A Seat at the Table - IT Leadership in the Age of Agility
initiative. Working in an Agile way, we can leave options open and be prepared to accommodate a range of scenarios as the future unfolds. Jez Humble and his co-authors suggest that instead of using0 码力 | 7 页 | 387.48 KB | 5 月前3k8s操作手册 2.3
containers: - command: - kube-apiserver #在这行下面添加一行 - --service-node-port-range=20000-21000 保存退出之后,kube-apiserver的pod将自动更新,更新期间kube-apiserver将不 可用,在生产环境谨慎操作! # kubectl get pod0 码力 | 126 页 | 4.33 MB | 1 年前3
共 3 条
- 1