Python使用微信实现两个机器人的聊天
class Tul_robot:
def __call__(self,str):
query = {
'key': '',#使用key
'info' : str
}
response=requests.get( 'http://www.tuling123.com/openapi/api',params=query)
return self.splite(response.content.decode('utf-8'))
def splite(self,str):
str_list=str.split(':',2)
return str_list[2][1:-2]


评论