Commit c4225930 by BellCodeEditor

save project

parent e19154f0
Showing with 9 additions and 3 deletions
class a:
def __init__(self,name,hp,attack):
def __init__(delf,name,hp,attack):
delf.level=1
delf.name=name
delf.hp=hp
delf.attack=attack
a=("尼玛"1000000000000000000000000000000000000000000000000000000009999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)
\ No newline at end of file
def up(delf):
delf.level=delf.level+1
delf.hp=delf.hp+50
delf.attack=delf.attack+4
q=a("jj",30,20)
q.up()
print("jrjk",q.level)
\ 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