Commit b64915c2 by BellCodeEditor

save project

parent b5b2f627
Showing with 6 additions and 3 deletions
......@@ -4,5 +4,8 @@ class hero:
self.hp=hp
self.attack=8attack
亚瑟=Hero("亚瑟",300,40)
print(亚瑟.hp)
\ No newline at end of file
print(亚瑟.attack)
bef a():
亚瑟.level=亚瑟.level+1
亚瑟.hp=亚瑟.hp+20
亚瑟.attack=亚瑟.attack+5
\ 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