zhihu-py3
latest
安装和测试
用法示例
登录方法综述:
知乎相关类文档
ZhihuClient 知乎客户端类
Activity and ActType 用户动态类
Answer 答案类
Author 用户类
Collection 收藏夹类
Columu 专栏类
Comment 评论类
Me 用户操作类
Post 专栏文章类
Question 问题类
Topic 话题类
zhihu-py3
Docs
»
知乎相关类文档
»
Comment 评论类
Edit on GitHub
Comment 评论类
¶
class
zhihu.comment.
Comment
(
cid
,
answer
,
author
,
upvote_num
,
content
,
time
,
group_id=None
)
[源代码]
¶
评论类,一般不直接使用,而是作为``Answer.comments``迭代器的返回类型.
__init__
(
cid
,
answer
,
author
,
upvote_num
,
content
,
time
,
group_id=None
)
[源代码]
¶
创建评论类实例.
参数:
cid
(
int
) – 评论ID
group_id
(
int
) – 评论所在的组ID
answer
(
Answer
) – 评论所在的答案对象
author
(
Author
) – 评论的作者对象
upvote_num
(
int
) – 评论赞同数量
content
(
str
) – 评论内容
creation_time
(
datetime.datetime
) – 评论发表时间
返回:
评论对象
返回类型:
Comment
Read the Docs
v: latest
Versions
latest
stable
dev
Downloads
htmlzip
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.