Commit 347c908a by BellCodeEditor

save project

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