Blake Hayes

Results 18 comments of Blake Hayes

for result in results: #print('{0} {1} {2} {3} {4}'.format(result.index, result.title, result.abstract, result.show_url, result.url)) # 此处应有格式化输出 print('{0}'.format(result.abstract)) # 此处应有格式化输出 count=count+1 if(count == 2): 这个代码在hero.py 这里做了限制只显示两条。 你可以增加到4条 break

百度搜索这里我做了限制,只显示两条,你可以去掉显示一页的搜索结果。 显示的时候再过滤广告 #print('{0} {1} {2} {3} {4}'.format(result.index, result.title, result.abstract, result.show_url, result.url)) # 此处应有格式化输出 print('{0}'.format(result.abstract)) # 此处应有格式化输出 count=count+1 if(count == 2): #只显示两条 break

我有个思路,你可以试试。 就是把问题的选项答案也给识别出来,然后把百度搜出来的答案匹配选项答案,如果有直接一个模拟点击 发自网易邮箱大师 在2018年01月08日 23:54,Bob 写道: 我在你的基础上了重写了一版本,感觉得自动化才行能不能自动答题 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

我这边没问题 你看是不是汉王识别的次数用完了。你可以用自己的

我也出现这问题,应该是要识别的图片不对,没有文字就报这个错误 Traceback (most recent call last): File "hero.py", line 56, in results = baiduSearch.search(keyword) File "C:\Users\Administrator\Pictures\baiduSearch\search.py", line 8, in search results = process.page(page) File "C:\Users\Administrator\Pictures\baiduSearch\process.py", line 46, in page result_set...

还没解决吗?你可以试试运行下面的代码,看看搜索出来没 `import baiduSearch keyword = '标志是雪山和雄狮的好莱坞电影公司分别是?' convey = 'n' if convey == 'y' or convey == 'Y': results = baiduSearch.search(keyword, convey=True) elif convey == 'n' or convey == 'N' or...

我新建了一个开发分支,就不合并到主分支了,你可以merge到开发分支 https://github.com/wuditken/MillionHeroes/tree/develop

我看了一下github有一个通过文本关联相似度分析来匹配答案的,你可以看看 https://github.com/smileboywtu/MillionHeroAssistant