Commit 92d74c94 by BellCodeEditor

save project

parent e7db028b
Showing with 7 additions and 2 deletions
...@@ -4,7 +4,11 @@ class Hero: ...@@ -4,7 +4,11 @@ class Hero:
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
self.height=height self.height=height
yase=Hero("亚瑟",9999,9999,1980) yase=Hero("亚瑟",1,300,1980)
nuoyi=Hero("诺依",140,140,12) nuoyi=Hero("诺依",1,140,12)
print("诺以的身高是",nuoyi.height,"毫米") print("诺以的身高是",nuoyi.height,"毫米")
def upgrade()
yase.attack=yase.attack+20
yase.hp=yase.hp+1
#所有身高以毫米做单位 #所有身高以毫米做单位
\ 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