_()内部和外部变量之间的差异
class WithClass (): def __init__(self): self.value = "Bob" def my_func(self): print(self.value)class WithoutClass (): value = "Bob" def my_func(self): print(self.value)
__init__value?
DIEA
梵蒂冈之花
慕容3067478
一只斗牛犬
随时随地看视频慕课网APP
相关分类