Commit e254099f by BellCodeEditor

save project

parent 5e9ec618
Showing with 22 additions and 0 deletions
...@@ -12,4 +12,26 @@ class Person: ...@@ -12,4 +12,26 @@ class Person:
self.gong=A self.gong=A
yase=Person("yase",99999,12,345) yase=Person("yase",99999,12,345)
print(yase.xue) 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)
print(yase.gong)
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