上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: 一 简介 1.1. 介绍 Gin是一个golang的微框架,封装比较优雅,API友好,源码注释比较明确,具有快速灵活,容错方便等特点 对于golang而言,web框架的依赖要远比Python,Java之类的要小。自身的net/http足够简单,性能也非常不错 借助框架开发,不仅可以省去很多常用的封装 阅读全文
posted @ 2021-12-01 09:06 Henry121 阅读(99) 评论(0) 推荐(0) 编辑
摘要: 一 基本路由 gin 框架中采用的路由库是基于httprouter做的 地址为:https://github.com/julienschmidt/httprouter package main import ( "github.com/gin-gonic/gin" "net/http" ) func 阅读全文
posted @ 2021-12-01 09:06 Henry121 阅读(60) 评论(0) 推荐(0) 编辑
摘要: ##需要安装前置补丁 clearcompressionflag.exe、KB2919442、KB2919355、KB2932046、KB2959977、KB2937592、KB2938439、KB2934018。 使用odoo14官网安装包 地址:https://www.odoo.com/zh_CN 阅读全文
posted @ 2021-11-03 10:52 Henry121 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 管理员身份运行命令窗 关闭hypervisorlaunchtype 以运行VMware bcdedit /set hypervisorlaunchtype off 开启hypervisorlaunchtype 以运行docker bcdedit /set hypervisorlaunchtype A 阅读全文
posted @ 2021-11-03 10:19 Henry121 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 时间相关 函数名 作用 备注 get_month 返回对应的月份日期范围 get_quarter_number 获取当前季度 get_quarter 返回对应的季度日期范围 get_fiscal_year 返回对应财年范围 start_of 返回对应日期的起始时间 获取指定日期的,年/月/季度/星期 阅读全文
posted @ 2021-11-03 10:00 Henry121 阅读(54) 评论(0) 推荐(0) 编辑
摘要: Numpy import numpy as np #类型转换 arr = np.array([3.7,-1.2,-2.6,0.5,12.9,10.1]) arr.astype(np.int32) # 转置 arr.T # 三元表达式的矢量运算 np.where(条件,值1,值2) # 排序 sort 阅读全文
posted @ 2021-11-03 09:58 Henry121 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 引言 什么是Json Schema? 以一个例子来说明 假设有一个web api,接受一个json请求,返回某个用户在某个城市关系最近的若干个好友。一个请求的例子如下: "city" : "chicago", "number": 20, "user" : { "name":"Alex", "age" 阅读全文
posted @ 2021-10-30 11:32 Henry121 阅读(1810) 评论(1) 推荐(1) 编辑
摘要: Odoo中登录接口返回的session_id失效 odoo 版本: 12.0 社区版 登录接口 /web/session/authenticate 将返回结果中的session_id用作其他请求中的身份验证,发现session_id已失效 然后神奇的发现返回的session_id和cookie中存的 阅读全文
posted @ 2021-09-04 14:05 Henry121 阅读(521) 评论(1) 推荐(0) 编辑
摘要: 自动创建的模块中的__ manifest __.py 复制代码 { # 模块名称 'name': "cmd_test", # 关键词 'summary': """ 你好odoo,hello odoo""", # 模块说明 'description': """ Long description of 阅读全文
posted @ 2020-10-15 17:17 Henry121 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 一、 __repr__ class Name: def __init__(self,name): self.name = name 123 上面打印类对象并不是很友好,显示的是对象的内存地址 此时我们重构 __repr__ class Name: def __init__(self,name): s 阅读全文
posted @ 2020-08-27 20:35 Henry121 阅读(123) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页