Commit a37588af by BellCodeEditor

auto save

parent 86ac5c43
Showing with 10 additions and 10 deletions
class student():
def __init__(self):
self.name="sb"
self.hieght=250
self.wieght=250
wanghanling=student()
luohaoen=student()
liyanqing=student()
print(wanghanling.name)
print(luohaoen.hieght)
print(liyanqing.wieght)
def __init__(self,a,b,c):
self.name=a
self.height=b
self.weight=c
wanghanling=student("王翰凌","一米三",250)
luohaoen=student("罗浩恩","十公分",49)
liyanqing=student("李衍庆","十米",100000)
print("王翰林的名字:",wanghanling.name)
print("罗浩恩的身高:",luohaoen.height)
print("李衍庆的体重是:",liyanqing.weight)
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