python发送短信
class Sond():
def __sond(self):#私有方法
print("-----正在发短信--------")
def sond(self,money):#公有方法
if money>0:
self.__sond()
else:
print("你的余额不足,请充值")
em=Sond()
em.sond(-10)
class Sond():
def __sond(self):#私有方法
print("-----正在发短信--------")
def sond(self,money):#公有方法
if money>0:
self.__sond()
else:
print("你的余额不足,请充值")
em=Sond()
em.sond(-10)