Commit 9a251302 by BellCodeEditor

save project

parent 640e03e4
Showing with 3 additions and 3 deletions
...@@ -5,5 +5,5 @@ class hero: ...@@ -5,5 +5,5 @@ class hero:
self.attack=100#攻击 self.attack=100#攻击
sunce=hero() sunce=hero()
print("孙策血量值为:"sunce.hp) print("孙策血量值为:",sunce.hp)
print("孙策攻击力为:"sunce.attack) print("孙策攻击力为:",sunce.attack)
\ 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