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).
福田 (@JunyaFff) です。今月の 「Python Monthly Topics」 は、最近私が個人的に気になっている静的コード解析ツールRuffについて紹介します。 どんなプログラミング言語でも、静的コード解析ツール (リンター) やフォーマッターは非常に便利です。Pythonで ...