lnlidawei

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

2024年2月7日

摘要: [python3]: python --【class】类变量(类属性) 一、说明: 1、类变量:类变量,定义在【类内】且【函数外】。 1 class object: 2 3 # class_variable 4 icount = 0 5 6 7 def __init__(self): 8 # usi 阅读全文
posted @ 2024-02-07 15:02 lnlidawei 阅读(16) 评论(0) 推荐(0) 编辑