list1 = [] sizeNum = int(input("Please input the size of matrix: ")) for i in range(sizeNum): valueNum = int(input("Please input the value: ")) list1.append(valueNum) print(list1)
[tranining] 蟒蛇 – 在矩阵保存输入数
发表评论
list1 = [] sizeNum = int(input("Please input the size of matrix: ")) for i in range(sizeNum): valueNum = int(input("Please input the value: ")) list1.append(valueNum) print(list1)