📅  最后修改于: 2022-03-11 14:45:08.746000             🧑  作者: Mango
T=[i for i in range(8)]
for i in range(8):
print("T[",i,"]= ",end="")
T[i]=int(input())
print("Tableau avant permutation")
print(T)
k=7
for i in range(4):
X=T[i]
T[i]=T[k]
T[k]=X
k=k-1
print("Tableau après permutation")
print(T)