Commit 93cb6339 by BellCodeEditor

save project

parent aa58559a
Showing with 8 additions and 2 deletions
...@@ -5,4 +5,10 @@ class Haro: ...@@ -5,4 +5,10 @@ class Haro:
self.level=1 self.level=1
pipy=Haro pipy=Haro
print("pipy的血量值为:",yase.hp) print("pipy的血量值为:",yase.hp)
print("pipy的攻击力为:",yase.attack) print("pipy的攻击力为:",yase.attack)
\ No newline at end of file def up():
self.hp=300+50
self.attack=20+4
self.level=1+1
up()
up()
\ 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