看文字太。。。枯燥了
找了个视频看 虽然是生肉..
坚持python一小时√
——
python命令行参数
$ python test.py arg1 arg2 arg3#!/usr/bin/python # -*- coding: UTF-8 -*- import sys print ‘参数个数为:‘, len(sys.argv), ‘个参数。‘ print ‘参数列表:‘, str(sys.argv)
看文字太。。。枯燥了
找了个视频看 虽然是生肉..
坚持python一小时√
——
python命令行参数
$ python test.py arg1 arg2 arg3#!/usr/bin/python # -*- coding: UTF-8 -*- import sys print ‘参数个数为:‘, len(sys.argv), ‘个参数。‘ print ‘参数列表:‘, str(sys.argv)
原文:https://www.cnblogs.com/rookieDanny/p/8536664.html