even

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2023年6月28日

摘要: 1、类的写法 class 类名(): 代码 ... 类的创建例子 class Test(): # 函数的构造方法 def __init__(self, name): self.__name=name # 这个是表示内部类的属性 def __innerMethod(self): print('this 阅读全文
posted @ 2023-06-28 13:05 even_blogs 阅读(4) 评论(0) 推荐(0) 编辑