📜  在列表python代码示例中打印字符串元素

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

代码示例1
# list having all elements are strings
strings = ['string1', 'string2', 'string3', 'string4']
for string in strings:
    print(string)