# -*- coding: utf-8 -*- ## Copyright: 2016 C O S M O S project. ## ## License: GPL-2.0+ ## Homepage : http://cosmosproject2015.tistory.com import sys # sys 모듈 로드 # 문자열로서 명령 필드1 을 변수로써 인식한다. insert = str(sys.argv[1]) # 명령행 필드1에 1을 입력했을 경우 지정 if insert == '1': print('Good!') else: # 만일 1이 아닐경우 입력한 그대로를 출력한다. print('Sorry you insert '+sys.argv[1])