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

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

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