if else 格式 {% if 条件 %} <标签>语句</标签> {%else%} <标签>语句</标签> {%endif} 标签都可以添加样式 {% for stu in students %} {% if forloop.first %} <li style="color: chartreu ...
分类:
其他好文 时间:
2020-05-14 13:11:20
阅读次数:
63
分组与嵌套div,p,span { /*逗号表示并列关系*/ color: yellow; }#d1,.c1,span { color: orange; }伪类选择器 Title 小轩在不在?点我有你好看哦伪元素选择器p:first-letter { font-size: 4... ...
分类:
Web程序 时间:
2020-05-14 01:37:35
阅读次数:
88
有一系列产品的版本,如果其中一个版本错了,则在它之后的都错了。调用API函数 isBadVersion( )找到错误开始的源头,要求尽量少的调用API。Given n = 5, and version = 4 is the first bad version. call isBadVersion(3 ...
分类:
其他好文 时间:
2020-05-14 01:20:55
阅读次数:
66
0x00 学到的知识点 mysql查询语句除了select之外,还可以使用handler来一行一行查看表中数据. 参考文章:https://blog.csdn.net/JesseYoung/article/details/40785137 基本使用方法: 也可以通过索引查看表中信息(FIRST,NE ...
分类:
其他好文 时间:
2020-05-13 17:17:42
阅读次数:
72
转自:http://www.chanpin100.com/article/104292 第一性原理是元认知,就像数学中的公理,物理学中的从头计算。合理利用这个原理,可以帮助我们提高效率。 第一性原理出自古希腊哲学家亚里士多德,维基百科对第一性原理的描述为: A first principle is ...
分类:
其他好文 时间:
2020-05-13 17:07:46
阅读次数:
66
PostgreSQL使用select into target时有无STRICT关键字的区别 如果没有在INTO指定STRICT,那么target将被设为查询返回结果的第一行或者 NULL(查询返回零行), 请注意,除非用ORDER BY进行排序,否则"the first row"是不明确的。 第一行 ...
分类:
数据库 时间:
2020-05-13 16:45:23
阅读次数:
284
```#include#include#include#include#include#includeusing namespace std;#define x first#define y secondtypedef pairpii;const int N=5050;const int INF=1... ...
分类:
其他好文 时间:
2020-05-13 15:19:02
阅读次数:
66
1. 本地新增项目 touch README.md git init git add README.md git commit -m "first commit" git remote add origin https://XXX.git 仓库地址 git push -u origin master ...
分类:
其他好文 时间:
2020-05-13 12:26:12
阅读次数:
52
查询: 一.查看所有信息select * from 表名;select * from stu; 二.显示指定字段select 字段名1, 字段名2 ... from 表名select first_name, age from stu;SELECT DISTINCT id, last_name FRO ...
分类:
数据库 时间:
2020-05-13 12:19:32
阅读次数:
65
List接口 List接口:元素有序,可重复,集合中每个元素都有其对应的索引。 常用实现类有:ArrayList、LinkedList、Vector。 ArrayList源码 JDK 1.7情况下: 使用空参构造器创建集合,底层创建了长度为10的Object类型数组elementData。 扩容机制 ...
分类:
其他好文 时间:
2020-05-12 20:42:59
阅读次数:
71