Commit e735783b by BellCodeEditor

save project

parent 9d1abb5a
Showing with 14 additions and 2 deletions
...@@ -7,4 +7,16 @@ class Hero: ...@@ -7,4 +7,16 @@ class Hero:
yase=Hero("亚瑟",300,20) yase=Hero("亚瑟",300,20)
YTY=Hero("廷宇",100,1000) YTY=Hero("廷宇",100,1000)
print(yase.name) print(yase.name)
print(YTY.name) print(YTY.name)
\ No newline at end of file def a():
YTY.level=1+1
YTY.hp=hp+5
YTY.attack=attack+5
def b():
yase.level=1+1
yase.hp=hp+5
yase.attack=attack+5
a()
b()
print(yase.hp)
print(YTY.hp)
\ 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