bob-zebedy / bob-zebedy.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

有点意思的 Python 系列二 内置类型增加额外方法 | Undefined

bob-zebedy opened this issue · comments

commented

https://blog.zebedy.com/post/5f8a6fc4.html

我们知道,如果想给一个自定义类型增加对应的方法,可以直接修改这个类就可以了,但是如果我们这个时候想给内置的类型增加一些自定义方法呢?