getopt例子

(本例基於win7 + python3.4) import getopt, sys ''' getopt 模塊專門用來處理命令行參數 函數 getopt(args, shortopts, longopts = []) 參數 args 一般是sys.argv[1:] shortopts 短格式 (-) longopts 長格式(--) 如: opt
相關文章
相關標籤/搜索