-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmain.py
27 lines (21 loc) · 845 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import sys
from jd_spider_requests import MT_PanicBuy
if __name__ == '__main__':
a = """
-------------------TM-JD------------------------------
请选择功能列表:
1.预约商品
2.秒杀抢购商品
"""
print(a)
jd_seckill = MT_PanicBuy()
choice_function = input('请选择:')
if choice_function == '1':
jd_seckill.reserve()
elif choice_function == '2':
jd_seckill.seckill()
elif choice_function == '3':
jd_seckill.seckill_by_proc_pool()
else:
print('没有此功能')
sys.exit(1)