Why doesn't command redirection operator work in PyCharm?

不问归期 提交于 2021-02-17 05:46:21

问题


I want to run a python script in PyCharm and redirect the stdin out put to a file. Therefore, I opened Run/Debug configurations and typed:

>> output.txt

in script parameters field. When I run the script, I get the error:

error: unrecognized arguments: >> output.txt

Do you know how to use redirection operator in PyCharm environment?


回答1:


It is available in Run -->EditConfigurations.

On the right side you will have Logs tab which says Save console output to file.

You may use that option.



来源:https://stackoverflow.com/questions/37659916/why-doesnt-command-redirection-operator-work-in-pycharm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!