打开 Pycharm ,进入 File > Settings > Editor > General > Appearance找到 → Show right margin (configured in Code Style options) 这一项取消勾选, Apply 点击应用,再点击 OK ,即可生效