📜  列表到文本 python 代码示例

📅  最后修改于: 2022-03-11 14:46:59.900000             🧑  作者: Mango

代码示例3
# Turn the list into a literal string:
s = ['I', 'want', 4, 'apples', 'and', 18, 'bananas'] 
# will return: "['I', 'want', 4, 'apples', 'and', 18, 'bananas']"
print(str(s))