Commit 1cc6026a by BellCodeEditor

save project

parent 2f16a9e2
Showing with 12 additions and 13 deletions
class H: class H:
def __init__(self,n,h,l): def __init__(self,p,h,l):
self.p=1 self.p=p
self.n=n
self.h=h self.h=h
self.l=l self.l=l
def up(self):
self.h=self.h+1
self.p=self.p+1
self.l=self.l+40
yase=H('压缩',10000000,500) yase=H(1,10000000,500)
houyi=H('弘扬',1,300)
houyi=H(1,1,300)
print(yase.h) print(yase.h)
def p(): houyi.up()
yase.h=yase.h*3
yase.n="亚索"
yase.l=yase.l*3
p()
print(yase.h) print(yase.h)
print(yase.n) print(yase.p)
print(yase.l) print(houyi.l)
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