- 博客(1)
- 收藏
- 关注
原创 第三讲 垃圾回收及性能测试
第三讲 垃圾回收及性能测试通过实例方法名字的字符串调用方法垃圾回收 通过实例方法名字的字符串调用方法 书写GetArea类 from math import pi class GetArea: def __init__(self): pass def triangle(self, a, b, c): p = (a + b + c) / 2 return (p * (p - a) * (p - b) * (p - c)) ** 0.5 def rectangle(self, w, h):
2020-06-22 20:01:47
442
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人