#!/usr/bin/python # This Python file uses the following encoding: utf-8 from sys import argv import sys, random, re if len(argv) < 2 or not re.match(r"^\d+$", sys.argv[1]): sys.stderr.write("Usage: python %s n\n" % sys.argv[0]) exit(1) #code start data = [[u"청기", u"백기", u"둘다"], [u"올", u"내"], [u"려",u"려",u"리지마"]] for i in range(int(sys.argv[1])): print "".join([random.choice(d) for d in data])