Commit 6ff968f6 by BellCodeEditor

save project

parent 9daf9e4a
Showing with 9 additions and 7 deletions
class A(): class A():
def __init__(self): def __init__(self,age,height,weight):
self.age=123 self.age=age
self.height=1234 self.height=height
self.weight=12345 self.weight=weight
B=A() B=A(12,123,1234)
print(B.height) C=A(34,456,4567)
\ No newline at end of file print(B.height)
print(C.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