Commit 7556d7a7 by BellCodeEditor

save project

parent 532f14d3
Showing with 21 additions and 2 deletions
......@@ -15,4 +15,24 @@ hy=Hero('hy',250,23)
k=Hero('K',5600,199)
print(yase.attack)
print(hy.attack)
print(k.attack)
\ No newline at end of file
print(k.attack)
yase = Hero("垭瑟",300,20)
print("垭瑟的初始血量值为: ",yase.hp)
upgrade()
upgrade()
print("升级2次后,垭瑟的血量值为: ",yase.hp)
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