Commit 347c908a by BellCodeEditor

save project

parent e254099f
Showing with 2 additions and 4 deletions
......@@ -3,19 +3,17 @@ class yingxiong:
self.gongjili=999999
self.HP=999999
yase=yingxiong()
print(salf.HP)
print(yase.HP)
class Person:
def __init__(self,name,HP,A):
self.level=9
self.xue=HP
self.lan=MP
self.gong=A
yase=Person("yase",99999,12,345)
yase=Person("yase",9999,12)
print(yase.xue)
def up():
yase.level=yase.level+1
yase.xue=yase.xue+50
yase.lan=yase.lan+766
yase.gong=yase.gong+47
up()
print(yase.xue)
......
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