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