强化 sql 的查询练习, 真的是感觉, 太重要了, 这是必须要过的坎. ...
分类:
数据库 时间:
2020-03-21 23:25:43
阅读次数:
99
第一步:填写配置信息: spring: aop: proxy-target-class: true auto: true datasource: druid: # 数据库 1 db1: url: jdbc:mysql://localhost:3306/db1?useUnicode=true&char ...
分类:
编程语言 时间:
2020-03-21 20:51:53
阅读次数:
90
原题链接在这里:https://leetcode.com/problems/flower-planting-with-no-adjacent/ 题目: You have N gardens, labelled 1 to N. In each garden, you want to plant one ...
分类:
其他好文 时间:
2020-03-21 14:40:05
阅读次数:
51
2.1 vector<类型> v 声明了一个容器; 2.2 尾插 v.push_back(); 2.3 起始迭代器 v.begin() 指向容器中第一个元素; 2.4 结束迭代器 v.end() 指向容器中最后一个元素的下一个位置; 2.5 三种方式去遍历vector迭代器:其中注意使用 for_e ...
分类:
编程语言 时间:
2020-03-21 13:09:26
阅读次数:
65
三 触发器 对某个表进行某种操作欠货(如:增删改查),希望触发某个动作,可以使用触发器。 1.创建触发器 create trigger trigger1_before_insert_tb1 before insert on tb1 for each row begin ... endbefore可以 ...
分类:
数据库 时间:
2020-03-21 09:31:06
阅读次数:
88
You have N integers, A1, A2, ... , AN. You need to deal with two kinds of operations. One type of operation is to add some given number to each number ...
分类:
其他好文 时间:
2020-03-20 18:39:27
阅读次数:
72
let arr=[1,2,3,4,5]; arr.b='100'; for for(let i=0;i<arr.length;i++){ console.log(arr[i]); } for是编程式 forEach arr.forEach(function(i){ console.log(item) ...
分类:
其他好文 时间:
2020-03-20 17:01:45
阅读次数:
82
import requests from bs4 import BeautifulSoup import time import os import urllib #需要爬取的目标网页 link='https://www.zhihu.com/hot' #对网页进行解析 soup=BeautifulS ...
分类:
其他好文 时间:
2020-03-20 11:10:29
阅读次数:
75
mongoose 中可使用 $push 向子文档数组末尾添加数据,但如果想在数组头部添加数据,好像没有$unshift 方法。但可以利用$each、$postition把数据插入到指定的数组位置。 下面的代码片段是把 comment 插入到 comments 的头部,而不是默认的末尾,即指定 pos ...
分类:
编程语言 时间:
2020-03-18 14:07:14
阅读次数:
102
//示例三维数组 $bom = Array ( [0] => Array ( [0] => Array ( [carrier] => 2 ) [1] => Array ( [name] => B1(硝酸) ) [2] => Array ( [material_id] => 6 ) [3] => Ar ...
分类:
编程语言 时间:
2020-03-18 13:40:41
阅读次数:
83