python中如何将列表中的数字不按列表输出,而是直接输出数字。

2025-04-08 16:23:40
推荐回答(2个)
回答1:

s = ""
a = [1, 2, 3]
for i in a:
    s += str(i)
print(s)

回答2: