mirror of https://github.com/testerSunshine/12306
setDaemon
parent
cf2e8f8ef6
commit
dda809d92e
|
@ -156,6 +156,7 @@ class select:
|
||||||
print(u"开启cdn查询")
|
print(u"开启cdn查询")
|
||||||
print(u"本次待筛选cdn总数为{}, 筛选时间大约为5-10min".format(len(all_cdn)))
|
print(u"本次待筛选cdn总数为{}, 筛选时间大约为5-10min".format(len(all_cdn)))
|
||||||
t = threading.Thread(target=self.cdn_req, args=(all_cdn,))
|
t = threading.Thread(target=self.cdn_req, args=(all_cdn,))
|
||||||
|
t.setDaemon(True)
|
||||||
# t2 = threading.Thread(target=self.set_cdn, args=())
|
# t2 = threading.Thread(target=self.set_cdn, args=())
|
||||||
t.start()
|
t.start()
|
||||||
# t2.start()
|
# t2.start()
|
||||||
|
|
|
@ -81,6 +81,7 @@ class query:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
t1 = threading.Thread(target=self.set_cdn, args=())
|
t1 = threading.Thread(target=self.set_cdn, args=())
|
||||||
|
t1.setDaemon(True)
|
||||||
t1.start()
|
t1.start()
|
||||||
for station_date in self.station_dates:
|
for station_date in self.station_dates:
|
||||||
select_url = copy.copy(self.urls["select_url"])
|
select_url = copy.copy(self.urls["select_url"])
|
||||||
|
|
Loading…
Reference in New Issue