class Student():
def SetInfo(self,age,sex,major):
self.age=age
self.sex=sex
self.major=major
def ShowInfo(self):
print(self.name,self.age,self.sex,self.major)
x=input('please input the name of student')
a=input('please input the age of student')
s=input('please input the sex of student')
m=input('please input the major of student')
Stu1=Student(x)
Stu1.SetInfo(a,s,m)
Stu1.ShowInfo()

class Student():
def __init__(self,name):
self.name = name
def SetInfo(self, age, sex, major):
self.age = age
self.sex = sex
self.major = major
def ShowInfo(self):
print(self.name, self.age, self.sex, self.major)
x = input('please input the name of student')
a = input('please input the age of student')
s = input('please input the sex of student')
m = input('please input the major of student')
Stu1 = Student(x)
Stu1.SetInfo(a, s, m)
Stu1.ShowInfo()