weixin_54971682
2021-08-10 11:17
采纳率: 100%
浏览 101

python中print(.__doc__)和print(.__init__.__doc__)分别是什么?

python中print(.doc)和print(.init.doc)分别是什么?

print(print.__doc__)

Prints the values to a stream, or to sys.stdout by default.
Optional keyword arguments:
file:  a file-like object (stream); defaults to the current sys.stdout.
sep:   string inserted between values, default a space.
end:   string appended after the last value, default a newline.
flush: whether to forcibly flush the stream.



print(print.__init__.__doc__)

Initialize self.  See help(type(self)) for accurate signature.
  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

相关推荐 更多相似问题