2018-10-16
閱讀量:
2108
如何用Python3的for循環(huán)生成5階Hibert矩陣?
python3實現(xiàn):
nums=[1,2,3,4,5]
for i in nums:
for j in nums:
hilbert=round(1/(i+j-1),5)
if j==5:
print(hilbert,end="\n")
else:
print(hilbert,end=" ")






評論(0)


暫無數(shù)據(jù)
推薦帖子
0條評論
0條評論
0條評論