SyntaxFix
Write A Post
Hire A Developer
Questions
write_text() from pathlib.Path can be used.
write_text()
pathlib.Path
>>> from pathlib import Path >>> Path('aa.txt').write_text("") 0