Commit 4b0daf79 by BellCodeEditor

save project

parent 93750f2a
Showing with 19 additions and 2 deletions
class class hero:
\ No newline at end of file def __init__(a,sg,tz,fx):
a.sg=sg
a.tz=tz
a.fx=fx
def jianfei(a):
a.tz=a.tz+1
a.sg=a.sg-0
csh=hero(250,250,"短发")
lck=hero(250,250,"长发")
print(csh.sg)
print(lck.sg)
csh.jianfei()
csh.jianfei()
print(lck,tz)
\ 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