Commit 83e0eca0 by BellCodeEditor

save project

parent 1b9c16bb
Showing with 16 additions and 0 deletions
class Hero:
def__init__(self,mz,sm,gj):
self.dj=80
self.mz=mz
self.sm=sm
self.gj=gj
def one():
yase.dj=yase.dj+1
yase.sm=yase.sm+1
yase.gj=yase.gj+1
yase = Hero("亚瑟",300,20)
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