🌈 搜索
📅  最后修改于: 2022-03-11 14:47:04.197000             🧑  作者: Mango
# Delete all text in a text file f = open("text_file.txt", "r+") f.truncate(0) f.close()