python发送短信

class Sond():
def __sond(self):#私有方法
print("-----正在发短信--------")
def sond(self,money):#公有方法
if money>0:
self.__sond()
else:
print("你的余额不足,请充值")
em=Sond()
em.sond(-10)
posted @ 2020-05-24 09:31  名狐1993  阅读(204)  评论(0)    收藏  举报