Commit afcb86df by BellCodeEditor

save project

parent 056dc382
Showing with 12 additions and 0 deletions
class student():
def __init__(self,a,b,c):
self.name=a
self.height=b
self.weight=c
zhanganqing=student("章安慶","十公分",250)
luoyihan=student("罗翌翰","十五公分",513)
fangyuhan=student("方禹涵","五公分"372)
print("章安慶的名字:",zhanganqing.name)
print("罗翌翰的身高:",luoyihan.height)
print("方禹涵的体重:",fangyuhan.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