1
text = "sample sample"
text_file = open("input.txt", "r+b")
text_file.write(text)
instance.src_after = File(text_file)
instance.save()
text_file.close()
如何刪除instance.save()
之後的所有文件內容input.txt
?如何在instance.save()後刪除input.txt文件的所有內容?