1.缓存工具 from django.core.cache import cache 存储缓存数据:cache.set('key', 内容, 有效期) 读取缓存数据:cache.get('key') 删除缓存数据:cache.delete('key') 注意:存储进去和读取出来的数据类型相同,所以读 ...
分类:
其他好文 时间:
2021-03-31 11:41:12
阅读次数:
0
1.logging模块输出日志 import logging as logger import time import datetime print(time.localtime(),datetime.datetime.now()) print(datetime.datetime.now().str ...
分类:
编程语言 时间:
2021-03-29 12:49:43
阅读次数:
0
github项目地址 https://github.com/aa310958153/easy-canal 使用效果 //[数据库名字].[表名] @Table(name = "canal.act_activity") @Component public class ActivityCanalList ...
分类:
其他好文 时间:
2021-03-29 11:34:32
阅读次数:
0
1. 为什么要引入Yarn和Spark。 从开源角度看,YARN的提出,从一定程度上弱化了多计算框架的优劣之争。YARN是在Hadoop MapReduce基础上演化而来的,在MapReduce时代,很多人批评MapReduce不适合迭代计算和流失计算,于是出现了Spark和Storm等计算框架,而 ...
分类:
其他好文 时间:
2021-03-15 11:29:44
阅读次数:
0
IDEA无法创建二级包的问题 点击齿轮 取消勾选 Compact Middle Package ...
分类:
其他好文 时间:
2021-03-15 10:58:13
阅读次数:
0
-- 查看表结构desc 表名; -- 查看表中字段的结构信息select table_name,column_name,column_comment from information_schema.columns where table_schema ='表所在的库' and table_name ...
分类:
数据库 时间:
2021-03-10 12:59:11
阅读次数:
0
CSS3新增选择器 :first-child 表示第一个子元素是... :last-child :nth-child(numberloddleven/倍数) :first-of-type 表示第一个子元素 :last-of-type :nth-of-type (numberloddleven/倍数) ...
分类:
Web程序 时间:
2021-03-09 13:18:32
阅读次数:
0
配置文件 flume-taildir-logger.conf: # Name the components on this agent a1.sources = r1 a1.sinks = k1 a1.channels = c1 # Describe/configure the source a1. ...
分类:
其他好文 时间:
2021-03-08 13:38:15
阅读次数:
0
<style> div{ width: 200px; height: 20px; background-color: red; } ul{ display: none; margin: 0; padding: 0; width: 200px; background-color: #ccc; } </ ...
分类:
Web程序 时间:
2021-03-01 14:07:32
阅读次数:
0
思路 迁移也是运行数据库DDL语句,那么只要在Laravel迁移的语句后面添加自定义DDL语句设置自动递增初始值就好了。 引用DB use Illuminate\Support\Facades\DB; MySQL 以修改users表为例,设置自动递增初始值为例1000 DB::statement(' ...
分类:
其他好文 时间:
2021-03-01 13:16:11
阅读次数:
0