list1 = []
while True:
neirong =input("请输入内容")
if neirong =="n" or neirong=="N":
break
list1.append(neirong)
print(list1)
想往列表里输什么就输什么
最新推荐文章于 2024-08-14 23:30:40 发布
list1 = []
while True:
neirong =input("请输入内容")
if neirong =="n" or neirong=="N":
break
list1.append(neirong)
print(list1)