这似乎是git bash中的一个限制。使用建议 winpty python.exe Python not working in the command line of git bash 了解更多信息。
winpty python.exe