if __name__ == '__main__':
    begin = time.time()
    for i in read_data():
        course_url, root_path = i
        sp = Spider(course_url, root_path)
        sp.run()
    end = time.time()
    temp = end-begin
    hours = temp//3600
    temp = temp - 3600*hours
    minutes = temp//60
    seconds = temp - 60*minutes
    print('共计耗时:%d:%d:%d' %(hours,minutes,seconds))

 

posted on 2021-12-27 17:07  math98  阅读(232)  评论(0)    收藏  举报