摘要: Python面向对象 __ init __( )构造方法 在类实例化时会自动调用 class Complex: def __init__(self, realpart, imagpart): self.r = relapart slef.i = imagpart x = Complex(3.0, - 阅读全文
posted @ 2021-01-08 16:25 Zhang·Q·S~blog 阅读(103) 评论(0) 推荐(0)