PyCharm命令行输入
写作原因
网上资料比较杂,版本较老,与现在的版本有区别,所以根据网上资料和自己亲手实验撰写此文。
设置方法
在菜单中按此路径设置: Run->Edit Configurations->Parameters,如下图所示。

示例代码
import sys print('The command varies are:') for i in sys.argv: print(i) print('The path is', sys.path, '\n')
实验结果

参考文献
kongzhidea
darkknightzh
转载于:https://www.cnblogs.com/jingshikongming/p/8982471.html
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/208947.html原文链接:https://javaforall.net
