Browse Source

修复语法

sunhao 3 years ago
parent
commit
54d40228db
2 changed files with 2 additions and 2 deletions
  1. 1 1
      live_promotion_detail_v1_sale_scraper.py
  2. 1 1
      live_promotions_scraper.py

+ 1 - 1
live_promotion_detail_v1_sale_scraper.py

@@ -139,7 +139,7 @@ if __name__ == "__main__":
139 139
 
140 140
             sys.stdout.flush()
141 141
 
142
-            task = threading.Thread(target=scrape, args=(heat))
142
+            task = threading.Thread(target=scrape, args=(heat,))
143 143
             task.start()  # 准备就绪,等待cpu执行
144 144
 
145 145
         current_time = time.time()

+ 1 - 1
live_promotions_scraper.py

@@ -97,7 +97,7 @@ if __name__ == "__main__":
97 97
         if increment > 0:
98 98
 
99 99
             sys.stdout.flush()
100
-            task = threading.Thread(target=scrape, args=(heat))
100
+            task = threading.Thread(target=scrape, args=(heat,))
101 101
             task.start()  # 准备就绪,等待cpu执行
102 102
 
103 103
         current_time = time.time()