会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
jihite
不害怕 不着急 不要脸
博客园
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
69
下一页
2020年2月1日
Golang 命令
摘要: go build 编译文件,输出可执行文件 (参考) go clean 删除编译生成的可执行文件 go run 编译源码,并执行main()函数 go build 编译源码,生成可执行文件,并将可执行文件移动到 \$GOPATH/pkg 或者\$GOPATH/bin go test 读取源码目录下面
阅读全文
posted @ 2020-02-01 17:52 jihite
阅读(231)
评论(0)
推荐(0)
2020年1月31日
Golang gin开源实例——接口
摘要: Github地址 https://github.com/EDDYCJY/go-gin-example 返回值 字段:code、msg、data 举例 # 失败 { "code": 10001, "msg": "已存在该标签名称", "data": null } #成功 { "code": 200,
阅读全文
posted @ 2020-01-31 23:57 jihite
阅读(1585)
评论(0)
推荐(0)
Golang gin框架学习
摘要: 今天开始学习gin框架,在Github上找的示例的go-gin-example, 进度 日期 进展 疑惑 进展 1.30 下拉代码,初步了解gin的介绍、搭建 .mod文件 module原理、使用方法 引入github上的依赖 1.31 环境搞好,引入github依赖,调试ok,接口梳理 db表与m
阅读全文
posted @ 2020-01-31 00:06 jihite
阅读(705)
评论(0)
推荐(0)
2020年1月30日
Golang 接口
摘要: 定义 把所有的具有共性的方法定义在一起,任何其他类型只要实现了这些方法就是实现了这个接口 举例 接口Phone, 有一个函数call type Phone interface { call() } 定义2个strct type NokiaPhone struct { } type Samsung s
阅读全文
posted @ 2020-01-30 00:31 jihite
阅读(252)
评论(0)
推荐(0)
2020年1月28日
Golang 切片
摘要: 1. 为什么需要切片,和数组区别? 数组是定长的,切片是变长的 底层是数组存储 声明 var identifier []type 区分数组是[]中没有数字 var arr = [3]int {1, 2, 3} fmt.Println(arr) var sl = []int {1, 2, 3} fmt
阅读全文
posted @ 2020-01-28 22:15 jihite
阅读(632)
评论(0)
推荐(0)
2020年1月27日
Golang 反射
摘要: 反射是 运行时获取、修改对象内部结构的能力 函数 reflect.TypeOf() reflect.ValueOf() 示例 package basicTest import ( "fmt" "reflect" ) func (u User) GetName() string { return u.
阅读全文
posted @ 2020-01-27 23:00 jihite
阅读(142)
评论(0)
推荐(0)
2020年1月6日
daemonic processes are not allowed to have children
摘要: export PYTHONOPTIMIZE=1
阅读全文
posted @ 2020-01-06 22:05 jihite
阅读(1711)
评论(0)
推荐(0)
2019年12月7日
python连接mysql
摘要: from __future__ import division import pymysql coon = pymysql.connect( host = '',user = 'r',passwd = 'bQ', port =,db = '',charset = '' ) f =file('ddd.txt') i = 0 p_id_dic = {} lists = []...
阅读全文
posted @ 2019-12-07 23:30 jihite
阅读(651)
评论(0)
推荐(0)
2019年11月26日
Python中model转dict
摘要: 问题 在query出来的行信息object中有一个dict变量,这个变量存储了字典信息 但是这个变量会多一个属性’_sa_instance_state’,所以还需要在转换字典之后把这个属性去掉 解提 参考 http://stackoverflow.com/questions/1958219/conv
阅读全文
posted @ 2019-11-26 09:39 jihite
阅读(2019)
评论(0)
推荐(0)
2019年11月7日
Pycharm Goland 疑难杂症
摘要: 1. Pycharm报错:AttributeError: 'NoneType' object has no attribute 'get'的解决办法 https://blog.csdn.net/frederick_bala/article/details/86605368 2.Goland调试遇到
阅读全文
posted @ 2019-11-07 09:42 jihite
阅读(523)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
69
下一页
公告