🌈 搜索
📅  最后修改于: 2022-03-11 14:45:05.810000             🧑  作者: Mango
f = open('file.txt', 'r+') f.truncate(0) # need '0' when using r+