Commit a51e8923 by BellCodeEditor

save project

parent d6c81a0f
Showing with 14 additions and 0 deletions
class Hero:
def __init__(self,mz,sm,gj):
self.mz= mz
self.sm=sm
self.gj=gj
def one():
yase.sm-yase.sm+100
yase.gj-yase.gj+120
yase=Hero('亚瑟',300,120)
print('亚瑟初始血量:',yase,sm)
one()
one()
print('升级两次后,亚瑟血量为:',yase,sm)
\ 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