看了一圈没有人用python二维数组去解,我就写了一个.
a = [[0 for _ in range(0, 5)] for _ in range(0, 5)]
for i in range(0,5):
a[i] = list(map(float,input().split()))+[0]
for i in range(0,5):
a[i][5] = round(sum (a[i]),1)
for i in range(0,5):
for j in range(0,6):
print(a[i][j],end=" ")
print()