10 2019 档案

摘要:子类调用父类tyep父类执行__init__父类执行__call__父级__call__创建子类__new__父级__init__创建之类__init__new先于init执行但子级call要retrun init值才能调用父类这样才能实例化 阅读全文
posted @ 2019-10-25 14:48 Le1543 阅读(106) 评论(0) 推荐(0)
摘要: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)