Python中sys模块sys.argv 2023-01-31 00:01:32 python sys 模块 #!usr/bin/env python # -*- coding: utf-8 -*- # Author:Sun Xiaolin import sys judgement = sys.argv[1] #[]内写的值表示取第几个 # print(judgement) if judgement == "1": print("一") elif judgement == "2": print("二") else:print("请正确输入") 相关文章