当 Path("notes.txt").write_text("new") 指向已有文件时会怎样?

来自 Python
进阶 1分钟

当 Path("notes.txt").write_text("new") 指向已有文件时会怎样?

报告错误