📜  如何在 python 代码示例中为列表输入输入

📅  最后修改于: 2022-03-11 14:46:38.042000             🧑  作者: Mango

代码示例6
a = []
s = int(input("Enter the size of array: "))
for i in range(0, s):
    ele = int(input("Enter the elements of the array: "))
    a.append(ele)
print(a)