Commit faf4d48b by BellCodeEditor

save project

parent 56ce862c
Showing with 10 additions and 7 deletions
class Hole:
def __init__(self):
self.sudu=6000
self.gongji=5
self.shenming=200
lanseyaoji=Hole()
print(lanseyaoji.sudu)
\ No newline at end of file
def __init__(self,name,sudu,gongji,shenming):
self.lkj=1
self.name=name
self.sudu=sudu
self.gongji=gongji
self.shenming=shenming
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