判断python程序外部传参个数

import sys

#sys.arge是一个包含外部传入参数的列表
len(sys.argv)

posted on 2020-10-23 11:11  苦海舟  阅读(1908)  评论(0)    收藏  举报

导航