Commit 21a7124b by BellCodeEditor

save project

parent 40979b6f
Showing with 1 additions and 1 deletions
...@@ -4,7 +4,7 @@ class xinxiong: ...@@ -4,7 +4,7 @@ class xinxiong:
self.hp=hp self.hp=hp
self.attack=10 self.attack=10
self.name=name self.name=name
gongben = xinxiong("宫本"1000,20) gongben = xinxiong("宫本",1000,20)
libai = xinxiong("李白",700,20) libai = xinxiong("李白",700,20)
print("宫血:",gongben,hp) print("宫血:",gongben,hp)
print("李血:",libaihp) print("李血:",libaihp)
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