Commit faf4d48b by BellCodeEditor

save project

parent 56ce862c
Showing with 10 additions and 7 deletions
class Hole: class Hole:
def __init__(self): def __init__(self,name,sudu,gongji,shenming):
self.sudu=6000 self.lkj=1
self.gongji=5 self.name=name
self.shenming=200 self.sudu=sudu
lanseyaoji=Hole() self.gongji=gongji
print(lanseyaoji.sudu) self.shenming=shenming
\ No newline at end of file lanseyaoji=Hole("蓝色妖姬",6000,150,200)
hongsefenbao=Hole("红色风暴",200,400,500)
print("蓝色妖姬的速度:",lanseyaoji.sudu)
\ No newline at end of file
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