1.Django默认支持sqlite数据库 DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } 若要建立MySQL数据 ...
分类:
其他好文 时间:
2020-05-27 12:16:42
阅读次数:
79
以下包含有前后序的递归和非递归算法 #include<stdio.h> #include<stdlib.h> #define MAXSIZE 20 typedef struct node{ int data; struct node* right; struct node* left; }Node; ...
分类:
编程语言 时间:
2020-05-27 00:51:06
阅读次数:
72
块级元素 如 div 可以设置margin-top、margin-bottom 、margin-left、margin-right。 但是 margin的 auto值 设置水平方向的,可以直接水平居中;想要垂直居中需要子绝父相,给自己添加绝对定位后并且将top bottom right left赋值 ...
分类:
其他好文 时间:
2020-05-26 20:50:03
阅读次数:
77
cat cat -A显示控制字符 -s禁止输出多个空白行 -n给文本添加行号 cat > foo.txt The quick brown fox jumped over the lazy dog. cat -ns foo.txt 1 The quick brown fox 2 3 jumped ov ...
分类:
系统相关 时间:
2020-05-26 20:17:07
阅读次数:
72
多表关联关系 一对一关系 通过主键关联主键实现 通过外键关联主键可以实现 案例:游戏用户(user)和账号(game_num) 一对一实现 第一种方式,通过主键关联主键实现,建完表后添加外键 用户表user create table user( id int primary key auto_inc ...
分类:
其他好文 时间:
2020-05-26 20:08:12
阅读次数:
61
// path模块提供了一些用于处理文件与目录的路径的实用工具, 使用时需先加载模块 // 加载path模块 var path = require('path'); // path.join([...paths]) 方法使用平台特定的分隔符作为定界符将所有给定的 path 片段连接在一起,然后规范化 ...
分类:
Web程序 时间:
2020-05-26 18:13:16
阅读次数:
72
out_join out_join Table of Contents 1. 外连接说明 2. 示例 1 外连接说明 (1)左外连接 (左边的表不加限制), 使用关键词 left [outer] join 表示,查询结果为左侧表全量数据输出,右侧表进行匹配输出,未匹配到的数据为空。 (2)右外连接( ...
分类:
数据库 时间:
2020-05-26 15:01:59
阅读次数:
70
UPDATE `cloudscape.glib`.rsstationinfo t1 JOIN `cloudscape.hyc`.smokevehicle t2 ON t1.RSStationCode = t2.RSStationCodeSET t2.RSStationName = t1.RSStat ...
分类:
数据库 时间:
2020-05-26 12:18:14
阅读次数:
85
#include<bits/stdc++.h> using namespace std; int n,ans=0; int a[105],ls[105],rs[105],kkk[105];//a:lie,ls:left scope,rs:right scope(原谅我的工地英语),kkk是行(kkk ...
分类:
其他好文 时间:
2020-05-26 01:22:38
阅读次数:
93