🌈 搜索
📅  最后修改于: 2022-03-11 14:46:19.441000             🧑  作者: Mango
a_list = ["abc", "def", "ghi"] f = open("a_file.txt", "w") for item in a_list: f.write(item + "\n") f.close()