Commit b15f93fe by BellCodeEditor

save project

parent 39861e18
Showing with 14 additions and 5 deletions
class Hero:
class Hero:
......@@ -4,6 +4,16 @@ class Hero:
self.hp=300
self.attack=20
yase= Hero()
print(yase.hp)
print(yase.attack)
\ No newline at end of file
class Hero:
der_init_(self):
self.level=1
self.hp=250
self.attack=23
h=Hero(240,23)
print(h.hp)
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