摘要:
from bs4 import BeautifulSoup html_doc = """ The Dormouse's story asdf The Dormouse's story总共 f Once upon a time there were three little sisters; and their names were ... 阅读全文
摘要:
方法 参数 响应 阅读全文
摘要:
爬虫的三个步骤: 1 下载源码 2 解析源码 3 保存数据 请求头: user-agent referer host cookie 特殊请起头 (查看上一次请求获取特殊请求头的值。) 请求体: - 原始数据 - 原始数据 + token - 密文 - 找算法 - 直接使用密文 阅读全文
摘要:
1 使用one2many, 另一张表必须要有一个many2one的字段, 反向关联只是为了方便取值 2 many2many会新增一个表 3 传统继承支持多重继承, 用列表表示: inhert = ['mail.thread', 'resource.mixin'] 4 进入odoo shell (用i 阅读全文
摘要:
参考: https://hub.packtpub.com/handle-odoo-application-data-with-orm-api-tutorial/ 一、特殊装饰器 二、特殊方法 查 增改删 在某些情况下, 我们需要扩展这些方法以添加一些业务逻辑, 以便在执行这些操作时触发 Python 阅读全文