Commit a3899f7b by BellCodeEditor

save project

parent 250f0dd6
Showing with 7 additions and 0 deletions
......@@ -6,3 +6,9 @@ class Hero:
self.name=name
yase=Hero("yase",300,40)
print(yase.name)
def a():
yase.level=yase.level+1
yase.hp=yase.hp+20
yase.attack=yase.attack+5
a()
print(yase.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