class Calc:						#定义类
	def plus(self,a,b):
		print(a+b)
	def minus(self,a,b):
		print(a-b)
	def multi(self,a,b):
		print(a*b)
	def div(self,a,b):
		print(a/b)
c = Calc()							#申明对象
c.plus(1,2)						#调用对象内的函数