参考
Clears all data from the print stream.
clear
close
Saves the file and closes the print stream.
print
Writes data to the print stream with new lines added.
write
Writes data to the print stream without adding new lines.