会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
sixinshuier
博客园
首页
新随笔
订阅
管理
2021年5月22日
Python __str__() 方法
摘要: 转自:https://www.runoob.com/note/41154 class Cat: """定义一个猫类""" def __init__(self, new_name, new_age): """在创建完对象之后 会自动调用, 它完成对象的初始化的功能""" # self.name = "
阅读全文
posted @ 2021-05-22 11:02 sixinshuier
阅读(125)
评论(0)
推荐(0)
编辑
公告