python3基础之类和对象

一.python的类和对象python 对象,继承和多态和c++中的相似c++ 样例:shell class Turtle: color='green' weight=10 legs=4 shell=True mouth='大喊' def climb(self): print('我正在很努力的向前爬') def run(s
相关文章
相关标签/搜索