input()
returns a string in python. You'd need to convert the result of input()
to a list
and then pass it in.
If the user inputs the list as a comma separated values (e.g. "1,2,3"), then we can parse the data like this:
inputdata = input("Enter your lst: ")
valueList = [v.strip() for v in inputdata.split(",")]
result = " ".join(valueList)
print(result)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…