Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select_ticket_info.select().main(),求助 #18

Open
raydied4 opened this issue Jan 18, 2021 · 1 comment
Open

select_ticket_info.select().main(),求助 #18

raydied4 opened this issue Jan 18, 2021 · 1 comment

Comments

@raydied4
Copy link

报错信息,求助
Traceback (most recent call last):
File "run.py", line 22, in
select_ticket_info.select().main()
File "C:\Users\Administrator\Downloads\Compressed\12306-master\init\select_ticket_info.py", line 115, in main
l.reqLiftTicketInit()
File "C:\Users\Administrator\Downloads\Compressed\12306-master\inter\LiftTicketInit.py", line 18, in reqLiftTicketInit
matchObj = re.search('var CLeftTicketUrl = '(.*)'', result, re.M|re.I);
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\re.py", line 183, in search
return _compile(pattern, flags).search(string)
TypeError: expected string or bytes-like object

@stockbsd
Copy link

re.search('var CLeftTicketUrl = '(.*)'', result, re.M|re.I)
把字符串 外层的单引号改为 双引号,去掉\。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants