数据库:放数据的“仓库” 萌芽阶段 放在内存里——瞬时:程序结束,上次的数据就没啦 放在文件里——持久:进步了!能一直保存了(比如放在.txt文件里),但还是存在问题 不安全 不方便在中间插入、删除数据 但也不是一无是处,可以应用于配置文件:.xml文件、.ini文件等等 数据库的产生 核心:CRU ...
分类:
数据库 时间:
2021-04-01 13:06:58
阅读次数:
0
将多条记录的某个字段合并成一条记录 group_concat : 将某字段多条记录合并,默认逗号分隔 select group_concat(c.invoice_no) from ibc_comm_invoice c where c.settle_nos like concat('%',m.sett ...
分类:
数据库 时间:
2021-03-31 12:35:16
阅读次数:
0
1.缓存工具 from django.core.cache import cache 存储缓存数据:cache.set('key', 内容, 有效期) 读取缓存数据:cache.get('key') 删除缓存数据:cache.delete('key') 注意:存储进去和读取出来的数据类型相同,所以读 ...
分类:
其他好文 时间:
2021-03-31 11:41:12
阅读次数:
0
学习lframe之前,我们需要先了解什么是iframe iframe:框架网页就是在同一个页面里有多个网页,那么如何定位iframe里面的元素呢,接下来我们先来尝试定位一下。执行以下代码来看一下结果,结果报错,说明我们元素定位是存在问题的 from selenium import webdriver ...
分类:
其他好文 时间:
2021-03-31 11:35:25
阅读次数:
0
SQL 构建器 原生 SQL 原生查询 SQL 和 Scan type Result struct { ID int Name string Age int } var result Result db.Raw("SELECT id, name, age FROM users WHERE id = ...
分类:
数据库 时间:
2021-03-30 13:50:41
阅读次数:
0
import React, {Component,lazy, Suspense} from 'react' const About = lazy(() => import(/*webpackChunkName: 'about'*/'./child.jsx')) class Layout extend ...
分类:
其他好文 时间:
2021-03-30 13:48:04
阅读次数:
0
import contextlib import pyhdfs class HdfsUtil(object): def __init__(self, hosts='namenode1:9870,namenode2:9870', user_name='hdfs'): self.hosts = host ...
分类:
编程语言 时间:
2021-03-30 13:29:22
阅读次数:
0
#include<stdlib.h> #include<stdio.h> void Move(char now, int a, char next) { printf("%d:%c->%c\n", a, now, next); } void Hanoi(int n, char x, char y, ...
分类:
其他好文 时间:
2021-03-30 13:06:36
阅读次数:
0
怎么发QQ邮件,网上的例子很多,就不介绍了,具体可参考:https://www.jianshu.com/p/0f8c5e4e7054 这里主要把自定义邮件内容写一下 # -*- coding: utf-8 -*- import smtplib from email.mime.text import ...
分类:
编程语言 时间:
2021-03-30 13:04:47
阅读次数:
0
Reconstruct Original Digits from English (M) 题目 Given a non-empty string containing an out-of-order English representation of digits 0-9, output the d ...
分类:
其他好文 时间:
2021-03-30 13:01:57
阅读次数:
0