Exemplo n.º 1
0
 def GET(self):
     run_baidu()
     return 'Hello, ' + 'Video' + '!'
Exemplo n.º 2
0
 def GET(self):
     run_baidu()
     return 'Hello, ' + 'Video' + '!'
Exemplo n.º 3
0
# 批处理
def run_auto(indexs):
    try:
        indexs = indexs.replace(',', ',')
        indexs = indexs.split(',')
        for index in indexs:
            index = index.strip()
            if index.isdigit():
                run(index)
    except Exception, e:
        print encode_wrap('请输入正确的序号')


if __name__ == "__main__":
    # print "arg len:", len(sys.argv)
    # for arg in sys.argv:
    #     print arg, type(arg)
    # if len(sys.argv) == 2:
    #     type = sys.argv[1]

    if len(sys.argv) == 2:
        run_each()
    elif len(sys.argv) == 3:
        index = sys.argv[2]
        run_auto(index)
    elif len(sys.argv) == 4:
        run_quchong()
    elif len(sys.argv) == 5:
        run_baidu()
    else:
        run_all()
Exemplo n.º 4
0
def run_auto(indexs):
    try:
        indexs = indexs.replace(",", ",")
        indexs = indexs.split(",")
        for index in indexs:
            index = index.strip()
            if index.isdigit():
                run(index)
    except Exception, e:
        print encode_wrap("请输入正确的序号")


if __name__ == "__main__":
    # print "arg len:", len(sys.argv)
    # for arg in sys.argv:
    #     print arg, type(arg)
    # if len(sys.argv) == 2:
    #     type = sys.argv[1]

    if len(sys.argv) == 2:
        run_each()
    elif len(sys.argv) == 3:
        index = sys.argv[2]
        run_auto(index)
    elif len(sys.argv) == 4:
        run_quchong()
    elif len(sys.argv) == 5:
        run_baidu()
    else:
        run_all()