Given an integer n, return all distinct solutions to the n-queens puzzle. Each solution contains a distinct board configuration of the n-queens' place ...
分类:
其他好文 时间:
2020-02-23 09:44:19
阅读次数:
57
MySQL 8.0已经不支持下面这种命令写法 grant all privileges on *.* to root@"%" identified by "."; 正确的写法是 grant all privileges on *.* to 'root'@'%' ; ...
分类:
其他好文 时间:
2020-02-23 09:21:40
阅读次数:
1003
一、并查集的定义 1. 并查集是一种维护集合的数据结构,它的名字中“并”、“查”、“集”。分别取自Union(合并)、Find(查找)、Set(集合)。 合并:就是合并两个集合 查找:判断两个元素是否在一个集合 那么并查集是用什么实现的,就是一个数组, 对于同一个集合来说只存在一个根结点,且将其作为 ...
分类:
其他好文 时间:
2020-02-23 00:08:03
阅读次数:
94
一、Git常用命令 1.查看所有分支:git branch --all 查看远程分支:git branch -a 查看本地分支:git branch -l 2.创建本地分支:git branch <name> (事实证明,我被廖雪峰大佬的git教程误导了。。) 例如:git branch dev,这 ...
分类:
其他好文 时间:
2020-02-22 19:54:19
阅读次数:
72
1. Gradient Descent包含两种方法 a) Batch Gradient Descent replace the gradient with the sum of gradient for all sample and continue untill convergence conve ...
分类:
其他好文 时间:
2020-02-22 15:56:51
阅读次数:
84
今天有个小失误,一直在思考为什么发送post请求数据都进来了,但是返回404呢? 原来是少了一句@ResponseBody ,记一下,省的下次又失忆 参考地址: https://blog.csdn.net/q_all_is_well/article/details/82218737 ...
分类:
其他好文 时间:
2020-02-22 15:45:25
阅读次数:
212
今天在学习SwiftUI中遇到一个问题 // // ContentView.swift // FirstSwiftUI // // Created by 胡安华 on 2020/2/20. // Copyright © 2020 胡安华. All rights reserved. // import ...
分类:
编程语言 时间:
2020-02-22 15:41:34
阅读次数:
126
Less-20 登陆成功后,出现cookie,登陆失败会显示失败信息 登陆成功后,后台将usename放入cookie中,再次登陆时候只要是cookie没过期,就会去cookie里面取值,然后进行查询 可以使用chrom里面的cookie-editer,使用burpsuite抓包 方法一union联 ...
分类:
数据库 时间:
2020-02-22 12:07:09
阅读次数:
111
一、单表查询 (1) all(): 查询所有结果 # 返回的QuerySet类型 (2) filter(**kwargs): 它包含了与所给筛选条件相匹配的对象 #返回的QuerySet类型 (3) get(**kwargs): 返回与所给筛选条件相匹配的对象,返回结果有且只有一个, #返回的mod ...
分类:
其他好文 时间:
2020-02-22 10:13:12
阅读次数:
78
# 深度遍历打印一个文件夹def print_all_dir(dir): # 判断dir是文件夹 if os.path.isdir(dir): # 如果是文件夹,先打印该文件夹 print(dir) # 再遍历 for next_dir in os.listdir(dir): # 递归调用,针对该文 ...
分类:
编程语言 时间:
2020-02-22 09:43:14
阅读次数:
86