Commit 9e797f8b by BellCodeEditor

save project

parent fadc9f99
Showing with 10 additions and 2 deletions
...@@ -7,4 +7,12 @@ class ying: ...@@ -7,4 +7,12 @@ class ying:
ys=ying("yase",3000,260) ys=ying("yase",3000,260)
hy=ying("houyi",2300,330) hy=ying("houyi",2300,330)
print(ys.hp) print(ys.hp)
print(hy.kill) print(hy.kill)
\ No newline at end of file def upgrade():
ys.ex=ys.ex + 1
ys.hp=ys.hp + 500
ys.kill=ys.kill + 50
upgrade()
print(ys.hp)
print(ys.kill)
\ 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