os.path.join (folder, filename) ensures the path is correct for the system. On Windows, it uses backslashes (reports\summary.txt); on Linux and macOS it uses forward slashes (reports/summary.txt).
本教程在Github上的地址在这里。如果你喜欢本教程,请不吝Star。如果你想贡献一份力量,欢迎提交Pull Request(提示:请小步pr ...