会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
罗非鱼
博客园
首页
新随笔
联系
管理
订阅
2019年4月17日
类和正则表达式
摘要: class vecter3: def __init__(self,x=0,y=0,z=0): self.x = x self.y = y self.z = z def __add__(self,n): # + __add__意味着+号,系统自动识别 return vecter3(self.x+n.x
阅读全文
posted @ 2019-04-17 22:34 罗非鱼plus
阅读(125)
评论(0)
推荐(0)
公告