Commit e735783b by BellCodeEditor

save project

parent 9d1abb5a
Showing with 13 additions and 0 deletions
......@@ -8,3 +8,15 @@ yase=Hero("亚瑟",300,20)
YTY=Hero("廷宇",100,1000)
print(yase.name)
print(YTY.name)
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