1.编辑好.py文件后,右键标签 “修改运行配置”,→“执行”→勾选“使用python控制台运行”; 2.在终端页,输入 python 文件名.py ; 3.右键粘贴输入示例,按“Ctrl+Z” 结束输入,“Enter ”出结果。