Commit c9bb7de1 by BellCodeEditor

save project

parent ef39df1c
Showing with 16 additions and 5 deletions
class hero: class car:
def __init__(self): def __init__(self,color,speed,hige):
self.level=1 self.color=color
self.hp=300 self.speed=speed
self.attack=2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 self.hige=hige
def run(self):
self.speed-=50
def dbd(self):
self.color="black"
dxs=car('red',350,"3m")
print(dxs.speed)
dxs.dbd()
print(dxs.color)
dxs.dbd()
print(dxs.color)
\ 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