修改了行为和任务耦合的问题

This commit is contained in:
黄伟韬 2024-07-24 11:23:52 +08:00
parent ca1a44c3c4
commit 48b8a941b9
4 changed files with 4 additions and 3 deletions

View file

@ -36,7 +36,7 @@ class Editor:
with open(path, "w", encoding="utf-8") as f:
f.write(content)
# self.resource.report(path, "path")
return f" The task of writing/coding the '{os.path.basename(path)}' file has been completed. The file '{os.path.basename(path)}' has been successfully created."
return f"The writing/coding the of the file {os.path.basename(path)}' is now completed. The file '{os.path.basename(path)}' has been successfully created."
def read(self, path: str) -> FileBlock:
"""Read the whole content of a file. Using absolute paths as the argument for specifying the file location."""