函数的定义:
def funname(参数1...): 函数内容 return a
类的定义:
class cls1: def __init__(self,spots): self.spots=spots def fun1(a,b): return a+b