标签:py
#!/usr/bin/env python #encoding=utf-8 import sys def systest(): first = sys.argv[1] print first def judgeargv(): total = len(sys.argv) if total != 2: print "参数个数不等于1 退出程序" sys.exit(0) if __name__ == "__main__": judgeargv() systest()
本文出自 “砖家博客” 博客,请务必保留此出处http://wsxxsl.blog.51cto.com/9085838/1956042
标签:py
原文地址:http://wsxxsl.blog.51cto.com/9085838/1956042