会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Le1543
首页
新随笔
管理
10 2019 档案
Py2.7实例化过程
摘要:子类调用父类tyep父类执行__init__父类执行__call__父级__call__创建子类__new__父级__init__创建之类__init__new先于init执行但子级call要retrun init值才能调用父类这样才能实例化
阅读全文
posted @
2019-10-25 14:48
Le1543
阅读(106)
评论(0)
推荐(0)
calc
摘要:import re def AP(formula): formula = formula.replace('+-','-') formula = formula.replace('-+','-') formula = formula.replace('--','+') return formula
阅读全文
posted @
2019-10-23 09:15
Le1543
阅读(139)
评论(0)
推荐(0)
公告