why can you inherit private functions from class object in python

后端 未结 0 1995
情歌与酒
情歌与酒 2021-01-03 06:35
class Cat:
    a=4

cat = Cat()
cat.__str__()

How come class Cat inherits the private functions __str__() and __format__()

相关标签:
回答
  • 消灭零回复
提交回复
热议问题