![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
xiaodage
这个作者很懒,什么都没留下…
展开
-
AttributeError: module ‘chatterbot.storage‘ has no attribute ‘JsonFileStorag报错
JsonFileStorageAdapter该类在几个版本之前已从ChatterBot中删除。 使用SQLStorageAdapter。 AttributeError: module 'time' has no attribute 'clock'报错 python3.3后弃用 time_func = time.perf_counter() 或 time.process_time()原创 2021-07-16 09:41:30 · 582 阅读 · 0 评论 -
python 两个列表组成字典
dataInfo = ssh_link.ssh_linking(cmd_3).split() if len(dataInfo) == 0: dataInfo = [i, "no os"] detail = "not os" if hostInfo.objects.filter(hostIp=i).values(): exit() else: hostCreate = hostInfo(hostIp=i, detail=detail) .原创 2021-01-13 10:48:48 · 193 阅读 · 0 评论 -
python 使用ORM框架(SQLAlchemy)
python orm mysql orm英文全称object relational mapping,就是对象映射关系程序,简单来说我们类似python这种面向对象的程序来说一切皆对象,但是我们使用的数据库却都是关系型的,为了保证一致的使用习惯,通过orm将编程语言的对象模型和数据库的关系模型建立映射关系,这样我们在使用编程语言对数据库进行操作的时候可以直接使用编程语言的对象模型进行操作就可以了,...原创 2020-04-10 17:29:41 · 567 阅读 · 0 评论