PyCharm使用参数调试运行

选择菜单: Run -> Edit configurations
选中需要添加参数的python脚本: program.py
在Configuration中的parameters添加需要的参数,如: -t input1 -t1 input2
后续无论是通过PyCharm运行还是调试程序都会使用输入的参数。

猜你喜欢

转载自blog.csdn.net/wanyahai/article/details/88815302
今日推荐