目录

git-bash-里使用python

目录

git bash 里使用python

一般直接在git bash中直接输入python后会无反应

  1. 可以在python前添加 winpty

    winpty python

    https://i-blog.csdnimg.cn/blog_migrate/72cb9587f0d5357a7f6ebdeed1f5f165.png

  2. 每次在python前添加winpty有些麻烦,我们可以执行指令生成一个名为“python”的别名

    alias python='winpty python.exe'

    https://i-blog.csdnimg.cn/blog_migrate/9adb34d8e3f807d021d36cf05d68ce68.png