📅  最后修改于: 2022-03-11 14:46:15.192000             🧑  作者: Mango
代码示例1
filename = "filewithcontents.csv"
# opening the file with w+ mode truncates the file
f = open(filename, "w+")
f.close()