Commit 4d159375 by BellCodeEditor

save project

parent f3f5635b
Showing with 8 additions and 2 deletions
......@@ -4,7 +4,13 @@ class Haa:
s.name=name
s.hp=hp
s.attenck=attenck
def up(s):
s.level=s.level*2
s.hp=s.hp*2
s.attenck=s.attenck*2
yase=Haa(1,"亚瑟",999999999999999999999999999999999999999999999999999,1)
houyi=Haa(1,"后羿",1,999999999999999999999999999999999999999999999999999)
print(yase.hp)
print(houyi.attenck)
\ No newline at end of file
print(houyi.attenck)
yase.up()
print(yase.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