会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小小程序员ol
博客园
首页
新随笔
联系
订阅
管理
2021年11月23日
python中的定义类方法有三种形式
摘要: 普通方法 类方法(@classmethod) 静态方法(@staticmethod) 普通方法 创建普通的方法的方式有两种(class A() & class B()). class A(): def __init__(self, name, age): self.name = name self.
阅读全文
posted @ 2021-11-23 16:02 小小程序员ol
阅读(716)
评论(0)
推荐(0)
公告