摘要:
静态属性:把函数封装成数据属性的形式 类方法: 静态方法:既不跟类绑定,也不跟实例绑定,不能使用类变量和实例变量,是类的工具包 阅读全文
posted @ 2019-03-21 18:57
wind_y
阅读(147)
评论(0)
推荐(0)
摘要:
不完善:1.如果公式里没() 2.算到中间部,可能有*-, +- ,-- ,这样的情况 阅读全文
posted @ 2019-03-21 15:58
wind_y
阅读(2943)
评论(0)
推荐(0)
摘要:
class Chinese: country='China' def __init__(self,name): self.name=name def play_ball(self,ball): print('%s 正在打 %s' %(self.name,ball)) p1=Chinese('alex') print(p1.country)... 阅读全文
posted @ 2019-03-21 11:57
wind_y
阅读(244)
评论(0)
推荐(0)

浙公网安备 33010602011771号