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

2020年7月2日

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

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

posted @ 2020-07-02 23:13 cag2050 阅读(667) 评论(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 阅读(305) 评论(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 阅读(105) 评论(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 阅读(707) 评论(0) 推荐(0) 编辑

2020年6月18日

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

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

posted @ 2020-06-18 11:03 cag2050 阅读(1057) 评论(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 阅读(474) 评论(0) 推荐(0) 编辑

2020年6月13日

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

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

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

2020年6月2日

flask-cors 知识点

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

posted @ 2020-06-02 21:43 cag2050 阅读(161) 评论(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 阅读(261) 评论(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 阅读(528) 评论(0) 推荐(0) 编辑

Python 内置的装饰器

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

posted @ 2020-05-28 17:58 cag2050 阅读(133) 评论(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 阅读(417) 评论(0) 推荐(0) 编辑

Python:virtualenv 和 venv 的区别

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

posted @ 2020-05-26 23:27 cag2050 阅读(1163) 评论(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 阅读(326) 评论(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 阅读(262) 评论(0) 推荐(0) 编辑

python之配置日志的几种方式

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

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

python 中的 None,知识点

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

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

Gunicorn 知识点

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

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

2020年5月25日

gunicorn部署flask的log处理

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

posted @ 2020-05-25 20:19 cag2050 阅读(987) 评论(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 阅读(1669) 评论(0) 推荐(0) 编辑

Python 中没有 null,用 None 表示

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

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

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

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

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

2020年5月24日

深入理解 Python package

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

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

2020年5月19日

Python 包管理工具:pip

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

posted @ 2020-05-19 16:14 cag2050 阅读(152) 评论(0) 推荐(0) 编辑

2020年5月17日

书籍《Flask Web开发实战:入门、进阶与原理解析》,相关资料网址

摘要: 相关资料 | 网址 | 除书中第二部分以外的示例程序 | https://github.com/greyli/helloflask 关于本书的网站 | http://helloflask.com/ Python 的 .gitignore | https://github.com/github/git 阅读全文

posted @ 2020-05-17 10:24 cag2050 阅读(417) 评论(0) 推荐(0) 编辑

flask 命令行

摘要: ```$ flask --helpUsage: flask [OPTIONS] COMMAND [ARGS]... A general utility script for Flask applications. Provides commands from Flask, extensions, and the application. Loads the application defin... 阅读全文

posted @ 2020-05-17 10:11 cag2050 阅读(576) 评论(0) 推荐(0) 编辑

2020年4月28日

大数据 相关组件

摘要: 组件 | 含义 | 英文 | | Sqoop | 关系型数据的收集 | Flume | 非关系型数据的收集 | YARN | 资源管理系统 | Yet Another Resource Negotiator Mesos(Twitter) | 资源管理系统 | 阅读全文

posted @ 2020-04-28 11:28 cag2050 阅读(549) 评论(0) 推荐(0) 编辑

2020年4月24日

安装node-sass报错Python环境

摘要: 出处:https://blog.csdn.net/cathei/article/details/103195400 阅读全文

posted @ 2020-04-24 15:18 cag2050 阅读(5140) 评论(0) 推荐(0) 编辑

synchronized、volatile,是如何解决共享变量内存可见性问题的?

摘要: 关键字 | 如何解决共享变量内存可见性问题的? | synchronized | 进入synchronized块的内存语义是把在synchronized块内使用到的变量从线程的工作内存中清除,这样在synchronized块内使用到该变量时就不会从线程的工作内存中获取,而是直接从主内存中获取。退出s 阅读全文

posted @ 2020-04-24 12:08 cag2050 阅读(367) 评论(0) 推荐(0) 编辑

2020年4月23日

Thread 类中,@sun.misc.Contended("tlr") 里值 tlr 的含义

摘要: @sun.misc.Contended 的value,含义是一个组 猜测 tlr 意思是:ThreadLocalRandom。 出处:https://stackoverflow.com/questions/34529036/what is sun misc contended annotations 阅读全文

posted @ 2020-04-23 18:12 cag2050 阅读(582) 评论(0) 推荐(1) 编辑

并发包 J.U.C 中常用的类

摘要: 并发包 J.U.C 中常用的类 | 含义 | ThreadLocalRandom | 是JDK 7在JUC包下新增的随机数生成器,它弥补了Random类在多线程下的缺陷。 AtomicInteger、AtomicLong、AtomicBoolean 等 | 原子性操作类 阅读全文

posted @ 2020-04-23 16:27 cag2050 阅读(378) 评论(0) 推荐(0) 编辑

2020年4月22日

并发编程线程基础:wait、notify、notifyAll、join、sleep、yield、interrupt、ThreadLocal

摘要: 知识点 | 是否静态方法 | 用法 | 说明 | | | wait | 否 | obj.wait(); | 当一个线程调用一个共享变量的wait()方法时,该调用线程会被阻塞挂起;需要注意的是,如果调用wait()方法的线程没有事先获取该对象的监视器锁,则调用wait()方法时调用线程会抛出Ille 阅读全文

posted @ 2020-04-22 10:29 cag2050 阅读(172) 评论(0) 推荐(0) 编辑

2020年4月20日

页面的index.js中需要加上:Page({}),否则页面不能正常显示,而且提示:Page "pages/xxx/index" has not been registered yet

摘要: 页面的index.js中需要加上:Page({}),否则页面不能正常显示,而且提示:Page "pages/xxx/index" has not been registered yet 阅读全文

posted @ 2020-04-20 11:01 cag2050 阅读(2194) 评论(0) 推荐(0) 编辑

2020年4月16日

protobuf 学习资料

摘要: protobuf 学习资料 | 网址 | 阅读全文

posted @ 2020-04-16 16:35 cag2050 阅读(320) 评论(0) 推荐(0) 编辑

2020年4月14日

Golang 框架

摘要: Golang 框架 | 作用 | 网址 | | gin | web框架 | https://github.com/gin gonic/gin xorm | ORM库 | http://gobook.io/read/gitea.com/xorm/manual zh CN/ 阅读全文

posted @ 2020-04-14 14:14 cag2050 阅读(668) 评论(0) 推荐(0) 编辑

2020年4月3日

css换行

摘要: 资料 | 网址 | 彻底搞懂word break、word wrap、white space | https://juejin.im/post/5b8905456fb9a01a105966b4 word break 属性(菜鸟教程) | https://www.runoob.com/cssref/c 阅读全文

posted @ 2020-04-03 19:41 cag2050 阅读(178) 评论(0) 推荐(0) 编辑

2020年4月1日

小程序兼容 iPhone,相关资料

摘要: 相关资料 | 网址 | 网页适配iPhoneX,就是这么简单「凹凸实验室」 | https://aotu.io/notes/2017/11/27/iphonex/index.html 小程序利用safe area inset 兼容iPhoneX | https://developers.weixin 阅读全文

posted @ 2020-04-01 16:57 cag2050 阅读(191) 评论(0) 推荐(0) 编辑

微信小程序自定义tarbra的坑,动态适配iphoneX iphone11 带安全区域的手机

摘要: 资料 | 网址 | 微信小程序自定义tarbra的坑,动态适配iphoneX iphone11 带安全区域的手机 | https://developers.weixin.qq.com/community/develop/article/doc/000a00482040d8df111a9f511518 阅读全文

posted @ 2020-04-01 16:52 cag2050 阅读(846) 评论(0) 推荐(0) 编辑

count(*) 与 count(col_name) 的区别

摘要: 在 SQL 中,COUNT(*) 和 COUNT(col_name) 都用于计算表中行的数量,但它们之间存在一些区别。 COUNT(*): 计算整个表中的行数,包括所有行,不管是否包含 NULL 值。 返回表的总行数。 例如: SELECT COUNT(*) FROM table_name; COU 阅读全文

posted @ 2020-04-01 10:59 cag2050 阅读(178) 评论(0) 推荐(0) 编辑

2020年3月31日

微信小程序气泡组件

摘要: 资料 | 网址 | 微信小程序气泡组件 | https://github.com/byk04712/weapp popover 阅读全文

posted @ 2020-03-31 15:52 cag2050 阅读(2787) 评论(0) 推荐(0) 编辑

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

导航