📜  如何将输入输入到列表python代码示例中

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

代码示例3
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)