标签:16px range print odi auth inpu 原来 ber 矩阵
#-*-coding:utf-8-*-
#__author__ = why
n=input("input the numbers")
a=[[col for col in range(n)] for row in range(n)]
k=0
print("原来的矩阵型状")
for h in range(n):
print(a[h])
print("反转的矩阵型状")
for i in a:
i=[k]*n
a[k]=i
k+=1
for j in range(n):
print(a[j])
标签:16px range print odi auth inpu 原来 ber 矩阵
原文地址:http://www.cnblogs.com/POP-w/p/7514161.html