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

增加评论功能 #115

Merged
merged 3 commits into from
Dec 18, 2023
Merged

增加评论功能 #115

merged 3 commits into from
Dec 18, 2023

Conversation

KwdeTfpv
Copy link
Contributor

No description provided.

print("页数必须大于0")
return
if 0 <= article_index < len(api.article.oId):
article_id = api.article.oId[article_index - 1]
article = api.article.get_article(article_id)
article.get_content()
print(f"[*** 当前帖子:{article.get_tittle()} ***]\n")
self.oId = article.oId
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oId需要定义在__init__函数中,建议直接保存Article对象,除了可以获取oId还可以获取其他字段,方便拓展

@gakkiyomi gakkiyomi merged commit 3311c22 into FishPiOffical:develop Dec 18, 2023
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

Successfully merging this pull request may close these issues.

2 participants