PyCharm

新文件默认换行符

Settings -> Editor -> Code Style -> Line separator (for new files)