Allianzcortex
Allianzcortex
@YangKian @josiahcarlson could you plz take a look at the changes ( - :
**在提交issue之前请回答以下问题,谢谢!** > 建议首先查看是否已经有类似的 Issues (提交时可删除该提示) ### 你使用的是哪个版本 ### 预期结果 按照截图运行 ### 实际结果 无法跑通 ### 重现结果的步骤 ### 其他相关信息 ① 关于使用版本: 在首页英文版的 README 中没有对版本的说明。 在中文版本的 README 中出现了 `不要 clone master分支,使用https://github.com/crossoverJie/SSM/releases/tag/2.1.0 或之前的 tag...
**init**.py 一般有三种作用,除了标记 module 外,还能: ① 留空 ② 在 **init**.py 中引入所有的模块。import all modules ③ 在 **init**.py 中引入 key function 到 package namespace。好处在于当你重构了整个代码之后仍然有办法使得 API 保持稳定。(在 reddit 里的一个讨论帖里所提到的) 实际上我最喜欢的是第②和第③种,可以简化引入的模块。 所以从这点来看的话,在 **init**.py 里: ①...
在issue里提出自己的问题感觉有点怪怪的^…… jekyll文档里是这么说的: > Pagination does not support tags or categories > Pagination pages through every post in the posts variable regardless of variables defined in the YAML Front Matter of...
use @decorators to simplify the structure of code 以 @decorators 装饰器为例,来简化操作。避免在每次调用函数前用 if 语句来判断是否执行 parse() 函数。 仅仅是一个 demo:-) 以 get_post_count() 作为例子。如果 @egrcc 觉得这种方式可以推广的话欢迎采纳~
实际上感觉这个好像更适合作为 issue 而非 PR 提出来,⊙﹏⊙b汗 原选择语句为:asks_num = int(soup.find_all("span", class_="num")[0].string) 更改后读取的是同一位置:ask_num = int(soup.find_all('a', href="/people/" + self.user_id + "/asks").find("span").string) 但可读性更加良好~ 对于下面的 get_answer_num 也可以考虑更改~,不通过相对位置来获取 string --- 最后一个 PR 了 好吧,通读了一早上的源码,自己写了个 fake-zhihu-python 的程序。只有说 orz……...
在得到图片的 url 和用户 id 之后,下载用户的头像。并创建新的文件夹来保存:-)
LZ写的挺好的
偶然见到LZ写的文章,非常漂亮。虽然和我的教程思路不一样^^ ,用的 cookie 方法也不一样 大概看了一下代码,没有测试。可以重写 增加 pipeline ,大概是这样,就可以直接在 ans.json 中 看到内容,并且也处理了 Unicode 到 utf-8 的转换 ' import json import codecs class doubanBookPipeline(object): ``` def __init__(self): self.file = codecs.open('ans.json', 'wb', encoding='utf-8')...
Awesome Job ! This project really helps me a lot ! But maybe there is a small issue about language auto-detect when translating from zh_CN to en. Based on the...
**Description :** When trying to deploy the project in Vercel with `Node.js V18`, there is the following error : ``` Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports"...