上一页 1 2 3 4 5 6 7 8 9 10 ··· 34 下一页

2020年8月16日

Linux下#!/usr/bin/env bash和#!/usr/bin/bash、#!/bin/bash的比较

摘要: 出处:https://www.cnblogs.com/easonjim/p/8308476.html 阅读全文

posted @ 2020-08-16 22:56 cag2050 阅读(441) 评论(0) 推荐(0)

2020年8月13日

重要:1. hive查询时,先看表格元数据是怎样分区的,然后在where里写分区条件,否则会查询出错;2. 在Where条件中使用变量时,Hive查询会非常慢

摘要: 重要: hive查询时,先看表格元数据是怎样分区的,然后在where里写分区条件,否则会查询出错; 在Where条件中使用变量时,Hive查询会非常慢( https://stackoverflow.com/questions/33369488/hive-query-runs-very-slowly- 阅读全文

posted @ 2020-08-13 08:39 cag2050 阅读(484) 评论(0) 推荐(0)

2020年8月8日

【环境篇】go mod--让人又爱又恨的包管理工具

摘要: 出处:https://www.jianshu.com/p/dea208bceb7e 阅读全文

posted @ 2020-08-08 12:57 cag2050 阅读(197) 评论(0) 推荐(0)

2020年8月7日

go get命令在go mod目录下与正常目录执行的区别

摘要: 出处:https://www.jianshu.com/p/0a2ebb07da54 阅读全文

posted @ 2020-08-07 20:01 cag2050 阅读(303) 评论(0) 推荐(0)

GORM 知识点

摘要: 资料 网址 GORM官方文档 http://gorm.io/zh_CN/docs/index.html 看到:https://gorm.io/zh_CN/docs/advanced_query.html 生成的 SQL 语句会排除没有值或值为 零值 的字段。 注意 所有字段的零值, 比如 0, '' 阅读全文

posted @ 2020-08-07 00:03 cag2050 阅读(385) 评论(0) 推荐(0)

2020年8月6日

Mac上MYSQL重置密码

摘要: https://www.jianshu.com/p/d0a053b0fd41 阅读全文

posted @ 2020-08-06 16:30 cag2050 阅读(132) 评论(0) 推荐(0)

MySQL JSON 类型数据操作

摘要: 出处:https://www.cnblogs.com/muscleape/p/10064031.html 阅读全文

posted @ 2020-08-06 10:25 cag2050 阅读(151) 评论(0) 推荐(0)

2020年8月5日

mysql 行转列 列转行

摘要: 资料 网址 mysql 行转列 列转行 https://www.cnblogs.com/xiaoxi/p/7151433.html 阅读全文

posted @ 2020-08-05 14:28 cag2050 阅读(147) 评论(0) 推荐(0)

2020年8月4日

Go自动生成sql语句,知识点

摘要: 资料 网址 Go 优雅的 SQL 语句拼接库:sqrl( https://github.com/elgris/sqrl ) https://www.5-wow.com/article/detail/77 go-sqlbuilder https://github.com/huandu/go-sqlbu 阅读全文

posted @ 2020-08-04 16:40 cag2050 阅读(1556) 评论(0) 推荐(0)

2020年8月2日

pip安装使用豆瓣源

摘要: https://www.cnblogs.com/lijinze-tsinghua/p/8666558.html 阅读全文

posted @ 2020-08-02 16:00 cag2050 阅读(570) 评论(0) 推荐(0)

2020年7月29日

python中defaultdict用法详解

摘要: 出处:https://www.jianshu.com/p/bbd258f99fd3 阅读全文

posted @ 2020-07-29 20:34 cag2050 阅读(198) 评论(0) 推荐(0)

2020年7月9日

如何在element-UI 组件的change事件中传递自定义参数

摘要: 出处:https://www.cnblogs.com/mmzuo-798/p/10438071.html 阅读全文

posted @ 2020-07-09 16:33 cag2050 阅读(532) 评论(0) 推荐(0)

2020年7月8日

Go 相关库

摘要: Go 库 网址 UUID 的生成与解析 https://github.com/satori/go.uuid 阅读全文

posted @ 2020-07-08 21:29 cag2050 阅读(120) 评论(0) 推荐(0)

2020年7月5日

Gin 知识点

摘要: 资料 网址 官方中文文档 https://gin-gonic.com/zh-cn/docs/ 阅读全文

posted @ 2020-07-05 23:12 cag2050 阅读(194) 评论(0) 推荐(0)

go mod(go模块),知识点

摘要: 报错及解决 运行:$ go mod vendor,报错:dial tcp 34.64.4.113:443: i/o timeout 解决:$ export GOPROXY=https://goproxy.io,设置GOPROXY环境变量,改一下代理。 xxx 资料 网址 go语言开启go-modul 阅读全文

posted @ 2020-07-05 12:00 cag2050 阅读(249) 评论(0) 推荐(0)

2020年7月4日

Go 模块解惑:到处都是 GO111MODULE ,这到底什么?

摘要: https://learnku.com/go/t/39086#449e69 阅读全文

posted @ 2020-07-04 11:34 cag2050 阅读(406) 评论(0) 推荐(0)

Go 命令行工具,知识点

摘要: Go 命令 | 含义 | go tool compile -help | go tool link -help | go build | 如果是普通包,就像我们在第1.2节中编写的mymath包那样,当你执行go build之后,它不会产生任何文件。如果你需要在$GOPATH/pkg 下生成相应的文 阅读全文

posted @ 2020-07-04 10:42 cag2050 阅读(207) 评论(0) 推荐(0)

2020年7月2日

Go proxy:direct、off 的含义(待补充)

摘要: Go proxy:direct、off 的含义(待补充) 阅读全文

posted @ 2020-07-02 23:13 cag2050 阅读(695) 评论(0) 推荐(0)

查询 extend_info 里没有 content_id 的记录,sql语句

摘要: select * from table_name where dt between '2020-03-29' and '2020-03-30' and coalesce(extend_info['content_id'],get_json_object(extend_info['query'],'$ 阅读全文

posted @ 2020-07-02 21:23 cag2050 阅读(341) 评论(0) 推荐(0)

2020年6月27日

itsdangerous 知识点

摘要: 资料 网址 中文文档 https://juejin.im/entry/56b30250df0eea0054375e1d 官方文档 https://itsdangerous.palletsprojects.com/en/1.1.x/ 阅读全文

posted @ 2020-06-27 01:01 cag2050 阅读(115) 评论(0) 推荐(0)

2020年6月23日

报错:peewee.OperationalError: Connection already opened,用过的解决方案:1. 将数据库插入语句放在视图函数里;2. 使用模板改为使用接口;

摘要: 相关资料 网址 Connection Management http://docs.peewee-orm.com/en/latest/peewee/database.html?highlight=Connection%20already%20opened#connection-management 阅读全文

posted @ 2020-06-23 01:33 cag2050 阅读(823) 评论(0) 推荐(0)

2020年6月18日

el-table 的计算高度变小问题(加样式,解决表格隐层列时高度计算问题)

摘要: 资料 网址 element-ui的table,切换路由后高度变小 https://segmentfault.com/q/1010000020355390 阅读全文

posted @ 2020-06-18 11:03 cag2050 阅读(1095) 评论(0) 推荐(0)

2020年6月14日

Flask-Principal 知识点

摘要: Flask-Principal 资料 网址 官方中文文档 https://flask-principal-cn.readthedocs.io/zh_CN/latest/ 官方英文文档 https://pythonhosted.org/Flask-Principal/ github https://g 阅读全文

posted @ 2020-06-14 11:19 cag2050 阅读(565) 评论(0) 推荐(0)

2020年6月13日

Python PyPI 中的包名称不区分大小写

摘要: Python PyPI 中的包名称不区分大小写。 阅读全文

posted @ 2020-06-13 23:34 cag2050 阅读(742) 评论(0) 推荐(0)

2020年6月2日

flask-cors 知识点

摘要: 资料 网址 官方文档 https://flask-cors.corydolphin.com/en/latest/index.html 阅读全文

posted @ 2020-06-02 21:43 cag2050 阅读(186) 评论(0) 推荐(0)

Flask 常用的扩展

摘要: Flask 常用的扩展 官方网址 中文翻译 flask-restplus https://flask-restplus.readthedocs.io/en/stable/ https://github.com/hanerx/flask-restplus-cn-doc peewee http://do 阅读全文

posted @ 2020-06-02 10:17 cag2050 阅读(275) 评论(0) 推荐(0)

2020年5月28日

flask-restplus 知识点

摘要: Request parsing:https://flask-restplus.readthedocs.io/en/stable/api.html?highlight=store_missing#module-flask_restplus.reqparse 资料 网址 官方搜索页(搜索比较方便) ht 阅读全文

posted @ 2020-05-28 21:10 cag2050 阅读(537) 评论(0) 推荐(0)

Python 内置的装饰器

摘要: Python 内置的装饰器 作用 @property 把一个方法变成属性调用 @classmethod 装饰的函数不需要实例化,不需要 self 参数,但第一个参数需要是表示自身类的 cls 参数,可以来调用类的属性,类的方法,实例化对象等。 阅读全文

posted @ 2020-05-28 17:58 cag2050 阅读(144) 评论(0) 推荐(0)

2020年5月26日

使用 virtualenv/venv 和 pip 管理虚拟环境

摘要: 使用 virtualenv/venv 和 pip 管理虚拟环境: 进入项目的根目录,创建虚拟环境:virtualenv --python=python3 venv或python3 -m venv ./venv(venv不用安装,不过需要python3.3以上) 进入虚拟环境:source venv/ 阅读全文

posted @ 2020-05-26 23:38 cag2050 阅读(434) 评论(0) 推荐(0)

Python:virtualenv 和 venv 的区别

摘要: 出处:https://www.cnblogs.com/colin220/p/10703300.html 阅读全文

posted @ 2020-05-26 23:27 cag2050 阅读(1185) 评论(0) 推荐(0)

Python | Get unique values from a list

摘要: 出处:https://www.geeksforgeeks.org/python-get-unique-values-list/ 阅读全文

posted @ 2020-05-26 21:36 cag2050 阅读(338) 评论(0) 推荐(0)

Peewee(Python ORM 框架)知识点

摘要: 资料 网址 字段类型表 https://www.osgeo.cn/peewee/peewee/models.html#field-types-table , http://docs.peewee-orm.com/en/latest/peewee/models.html#field-types-tab 阅读全文

posted @ 2020-05-26 21:03 cag2050 阅读(294) 评论(0) 推荐(0)

python之配置日志的几种方式

摘要: 出处:https://www.cnblogs.com/yyds/p/6885182.html 阅读全文

posted @ 2020-05-26 20:52 cag2050 阅读(185) 评论(0) 推荐(0)

python 中的 None,知识点

摘要: None是python中的一个特殊的常量,表示一个空的对象。空值是Python中的一个特殊值,数据为空并不代表是空对象,例如[],'',(),等都不是None。 None 是 NoneType 数据类型的唯一值(其他编程语言可能称这个值为 null、nil 或 undefined),也就是说,我们不 阅读全文

posted @ 2020-05-26 11:40 cag2050 阅读(2053) 评论(0) 推荐(0)

Gunicorn 知识点

摘要: 命令 说明 gunicorn --help 阅读全文

posted @ 2020-05-26 10:52 cag2050 阅读(152) 评论(0) 推荐(0)

2020年5月25日

gunicorn部署flask的log处理

摘要: 出处:https://zhuanlan.zhihu.com/p/36909560 阅读全文

posted @ 2020-05-25 20:19 cag2050 阅读(1018) 评论(0) 推荐(0)

Python 逻辑运算符(and、or、not)、成员运算符(in、not in)、身份运算符(is、is not)

摘要: Python逻辑运算符 Python语言支持逻辑运算符,以下假设变量 a 为 10, b为 20: 运算符 | 逻辑表达式 | 描述 | 实例 | | | and | x and y | 布尔"与" 如果 x 为 False,x and y 返回 False,否则它返回 y 的计算值。 | (a a 阅读全文

posted @ 2020-05-25 16:18 cag2050 阅读(2040) 评论(0) 推荐(0)

Python 中没有 null,用 None 表示

摘要: Python 中没有 null,用 None 表示 阅读全文

posted @ 2020-05-25 16:10 cag2050 阅读(439) 评论(0) 推荐(0)

在Python中,None、False、空字符串""、0、空列表[]、空字典{}、空元组()都相当于False

摘要: 在Python中,None、False、空字符串""、0、空列表[]、空字典{}、空元组()都相当于False 阅读全文

posted @ 2020-05-25 15:20 cag2050 阅读(2031) 评论(0) 推荐(0)

2020年5月24日

深入理解 Python package

摘要: 出处:https://sanyuesha.com/2017/09/14/deep understand python package/ 阅读全文

posted @ 2020-05-24 13:01 cag2050 阅读(363) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 10 ··· 34 下一页

导航