Commit a37588af by BellCodeEditor

auto save

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