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

刚刚试了下,发现main.py 69行有问题 #14

Open
LouisRuan opened this issue May 24, 2019 · 4 comments
Open

刚刚试了下,发现main.py 69行有问题 #14

LouisRuan opened this issue May 24, 2019 · 4 comments

Comments

@LouisRuan
Copy link

xpath里面多了个f,没用过selenium,去掉后可以运行,还有config.ini修改后不能把买的那一天和特征码传进去,不知道作者可不可以紧急修复一下

@yejialin
Copy link

f是python3.6的特性,你可以换种字符串format方式

@oilime
Copy link

oilime commented May 24, 2019

f是format填入你要抢的轮数,改config.ini应该是你编辑器的问题,换用其他编辑器保存为不带bom的utf-8就行

@yejialin
Copy link

改成这样应该就可以
self.driver.find_element_by_xpath('//div[@class="select_right_list"]/div[{}]/span[2]'.format(self.round)).click()
你是python3.6以下没有f""

@LouisRuan
Copy link
Author

恩,我是3.5,去掉f可以运行

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

3 participants