Commit 1fbc3935 by BellCodeEditor

save project

parent f14db233
Showing with 10 additions and 11 deletions
...@@ -3,17 +3,16 @@ class student(): ...@@ -3,17 +3,16 @@ class student():
self.name=a self.name=a
self.hieght=b self.hieght=b
self.weight=c self.weight=c
asd=student("经济","看看"250) asd=student("经济","看看",250)
qwe=student("零零","哈哈"49) qwe=student("零零","哈哈",49)
zxc=student("刚刚","方法"1000000000000) zxc=student("刚刚","方法",1000000000000)
print("经济的名字"asd.name) print("经济的名字"asd.name)
print("零零的身高",qwe,hieght) print("零零的身高",qwe,hieght)
print("刚刚的体重",zxc,weight) print("刚刚的体重",zxc,weight)
def upgrade(): def upgrade()
print("经济的名字"asd.name+1) yase.level+=1
print("零零的身高",qwe,hieght+50) yase.hp+=40
print("刚刚的体重",zxc,weight+4) yase.attack+=30
print(upgrade) yase=hero(1,500,40)
upgrade()
print(yase.hp)
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