Commit 6ea08fe2 by BellCodeEditor

auto save

parent 0eaca350
Showing with 11 additions and 0 deletions
class Student:
def __init__(self,name,age,score):
self.level=1
self.name=name
self.age=age
self.score=score
wukong=Student("悟空",11,89)
nuoyi=Student("诺依",12,100)
print("悟空的成绩是:",wukong.score)
print("诺依的成绩是:",nuoyi.score)
\ 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