Commit 09e19e8a by BellCodeEditor

save project

parent 0a49e36a
Showing with 3 additions and 3 deletions
class yingxiong:#创建类 class yingxiong:#创建类
def __init__(self):#创建 def __init__(self):#创建方法
self.pugong = 1 self.pugong = 1#创建属性
self.e = 5 self.e = 5
self.q = 10 self.q = 10
xiao = yingxiong() xiao = yingxiong()#实例化对象
print(xiao.q) print(xiao.q)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment