Commit 843974dc by BellCodeEditor

save project

parent 2af6dc58
Showing with 16 additions and 0 deletions
class Student:
def __init__(self,name,grade,chinese,math,english):
self.name=name
self.grade=grade
self.chinese=chinese
self.math=math
self.english=english
def abc(self):
d=self.chinese+self.math+self.english
return d
def a(self):
people=Student("刘柏圣",5,95,96,97)
print(people.name,people.grade,people.chinese,people.math,people.english)
bc()
print(sum)sum=people.a
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