Commit ccf11a4d by BellCodeEditor

save project

parent 571f6b0f
Showing with 2 additions and 2 deletions
...@@ -5,4 +5,5 @@ class Hero: ...@@ -5,4 +5,5 @@ class Hero:
self.attack=attack self.attack=attack
self.name=name self.name=name
rao=Hero("rao",0.1,0.1) rao=Hero("rao",0.1,0.1)
print(rao.hp,rao.attack) print(rao.hp,rao.attack)
\ No newline at end of file rao.level=rao.level+1
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