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