【发布时间】:2021-01-14 06:15:52
【问题描述】:
我是 python 新手。还有其他打印列表的方法吗
li1 = ['This is one sentence. ' 'This is another.']
print(...)
然后输出将是:
This is one sentence. This is another.
【问题讨论】:
-
什么是
...?如果是li1,那就换成li1。 -
这能回答你的问题吗? Pythonic way to print list items
-
这个列表只有一个字符串。你确定这就是你想要的吗?
标签: python python-3.x list