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))
浙公网安备 33010602011771号