Create a class that was running at the time
class Clas:
print("I love Chian")
Nesting a function in the class, and perform this function, class functions are required to carry self parameter and must be the first
class Clas:
def p(self):
print("我爱中国")
Clas().p()
The print return into an argument and prints
class Clas:
def p(self):
return "i love chian"
print(Clas().p())