sys.path.append(path) sys.path.insert(order, path) # order表示搜索路径时的顺序,order=0 时表示最大优先级2. 获取命令行参数
sys.argv # 命令行中输入:python test.py arg1 arg2 arg3 # sys.argv返回一个列表:['test.py', 'arg1', 'arg2', 'arg3']

sys.path.append(path) sys.path.insert(order, path) # order表示搜索路径时的顺序,order=0 时表示最大优先级2. 获取命令行参数
sys.argv # 命令行中输入:python test.py arg1 arg2 arg3 # sys.argv返回一个列表:['test.py', 'arg1', 'arg2', 'arg3']