![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
zz60708320
这个作者很懒,什么都没留下…
展开
-
Python使用装饰器捕获异常
Python中使用装饰器捕获异常1.装饰器的编写 # 捕获异常装饰器def catch_except(func): def wrapper(*args, **kwargs): try: return func(*args, **kwargs) except Exception: serror_info =...原创 2020-03-06 17:04:01 · 2041 阅读 · 2 评论 -
ChatterBot
ChatterBotChatterBot是一个基于机器学习的聊天机器人引擎,构建在python上,也是python的一个库chatterbot的聊天逻辑和输入输出以及存储,是由各种adapter来限定的构建ChatBot并指定Adapter创建ChatBot对象来构建一个ChatBotbot = ChatBot(name,若干Adapter...)如:bot = ChatBot(“ne...原创 2019-01-01 20:09:19 · 1090 阅读 · 0 评论