1.打开pycharm的file点击Settings 2.展开Tools点击Terminal,把Shell path改为cmd.exe 点击OK 3.找个文件,右键然后滑到Open In 点击Terminal 4.这样cmd就配置进来啦