Python Delete Text в текстовом файле
# Delete all text in a text file
f = open("text_file.txt", "r+")
f.truncate(0)
f.close()
Hello There
# Delete all text in a text file
f = open("text_file.txt", "r+")
f.truncate(0)
f.close()