Commit 1c13d4ef by BellCodeEditor

save project

parent 6ff968f6
Showing with 9 additions and 3 deletions
......@@ -6,5 +6,11 @@ class A():
B=A(12,123,1234)
C=A(34,456,4567)
print(B.height)
print(C.weight)
\ No newline at end of file
def increase():
B.age=B.age+1
B.height=B.height+10
B.weight=B.weight+20
increase()
print(B.weight)
\ No newline at end of file
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