📜  lista to txt python代码示例

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

代码示例1
#Salvar lista em .txt
with open('your_file.txt', 'w') as f:
    for item in my_list:
        f.write("%s\n" % item)