1. 内容回顾 1. django有关的所有命令 1. django的安装 pip install django==1.11.11 pip install -i yuan django==1.11.11 2. 创建项目 django-admin startproject 项目名 通过manage.p ...
分类:
其他好文 时间:
2020-07-02 09:25:21
阅读次数:
38
用两个栈实现一个队列。队列的声明如下,请实现它的两个函数 appendTail 和 deleteHead ,分别完成在队列尾部插入整数和在队列头部删除整数的功能。(若队列中没有元素,deleteHead 操作返回 -1 ) 示例: 输入: ["CQueue","appendTail","delete ...
分类:
其他好文 时间:
2020-07-01 22:17:02
阅读次数:
57
1.set(WeakSet 只接收对象) 个人理解:set数据结构我认为最主要的用途就是去重了,它接收一个数组,它的增/删/查 分别是:add/delete/has 它有一个size属性,类似数组的length,可以通过Array.from()转换为数组 2.Symbol 个人理解:Symbol前端 ...
分类:
其他好文 时间:
2020-07-01 17:34:53
阅读次数:
72
DELETE FROM Persons WHERE Id NOT IN (SELECT MIN(Id)AS id FROM Persons GROUP BY Email) ; You can't specify target table 'Person' for update in FROM cla ...
分类:
其他好文 时间:
2020-07-01 15:52:46
阅读次数:
61
public interface Collection<E> extends Iterable<E> The root interface in the collection hierarchy. A collection represents a group of objects, known a ...
分类:
编程语言 时间:
2020-07-01 09:41:31
阅读次数:
55
在python的类语法中,可以出现三种方法,具体如下: (1)实例方法 1)第一个参数必须是实例本身,一般使用【self】表示。 2)在实例方法中,可以通过【self】来操作实例属性,【类名】来操作类属性。 3)实例方法只能通过实例对象去调用,尽管也可以通过类名间接调用【类名.方法名(self, . ...
分类:
编程语言 时间:
2020-06-30 22:18:46
阅读次数:
67
名称: 中介者模式(Mediator Pattern) 问题: The Mediator pattern simplifies communication among objects in a system by introducing a single object that manages me ...
分类:
其他好文 时间:
2020-06-30 19:04:07
阅读次数:
53
操作数据库 语句分类 DDL 定义库、表 create 、drop、alter DML 更新数据 insert 、update、delete DQL 查询 select DCL 控制 grant、deny、revoke TCL 事务 commit、rollback DDL示例 创建数据库 : cre ...
分类:
数据库 时间:
2020-06-30 19:02:24
阅读次数:
106
#include <iostream> #include <fstream> #include<vector> using namespace std; /** * @brief 读取二进制文件中的数据 * @param data_fname 二进制文件名 * @param rows * @para ...
分类:
编程语言 时间:
2020-06-30 13:05:07
阅读次数:
72
DML:数据操作语言 增删改查数据的语言。 INSERT DELETE SELECT UPDATE DDL:数据定义语言 定义、删除、修改RDB对象的sql语言 CREATE DROP ALTER DCL:数据控制语言 定义数据库中用户访问权限的sql语言 GRANT REVOKE RDB对象: 库 ...
分类:
数据库 时间:
2020-06-30 12:51:27
阅读次数:
68