我开始使用PyCharm,但好像无法在命令行中以同样的方式运行程序:
我通常会这样运行程序:
python parse_file.py < test.txt
当parse_file.py可以简单如下:
import sys
for line in sys.stdin:
print line
我无法在配置中找到在哪里进行设置,我尝试在脚本参数中输入类似于<test.txt
的内容,但没有成功。
我查看了https://www.jetbrains.com/pycharm/help/run-debug-configuration-python.html,但那里也没有成功。
谢谢。