📌  相关文章
📜  在 python 代码示例中从用户获取列表输入

📅  最后修改于: 2022-03-11 14:46:05.182000             🧑  作者: 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)