Commit a8903bc5 by BellCodeEditor

save project

parent 97c8ba6c
Showing with 3 additions and 3 deletions
...@@ -3,7 +3,7 @@ class Hero: ...@@ -3,7 +3,7 @@ class Hero:
self.level = 1 self.level = 1
self.name = name self.name = name
self.hp=hp self.hp=hp
self.attach=attach self.attack=attack
yase=Hero("亚瑟",300,20) yase=Hero("亚瑟",300,20)
print("亚瑟的血量为:"yase.hp) print("亚瑟的血量为:",yase.hp)
\ No newline at end of file \ 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