Commit 9b473f85 by BellCodeEditor

save project

parent c4aa4833
Showing with 10 additions and 8 deletions
class i:
def __init__(self):
self.ab=1
self.cd=300
self.attack=20
yase=i()
print(yase.cd)
\ No newline at end of file
class juese:
def __init__(self,Name,hp,attack):
self.level=1
self.hp=hp
self.attack=attack
self.name=Name
yase=juese("yase",300,20)
houyi=juese("houyi",250,23)
print(houyi.hp)
\ 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