sys.argv是你接收的参数的列表 []
比如你这段代码名字叫做test.py
运行python test.py 192.168.0.1 test.txt
sys.argv[0] ----test.py
sys.argv[1] ----192.168.0.1
sys.argv[2] ----test.txt
sys.argv是你接收的参数的列表 []
比如你这段代码名字叫做test.py
运行python test.py 192.168.0.1 test.txt
sys.argv[0] ----test.py
sys.argv[1] ----192.168.0.1
sys.argv[2] ----test.txt