#include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <queue> using namespace std; const int maxn = 110; struct Node{ int data; int ...
分类:
其他好文 时间:
2020-01-29 16:18:25
阅读次数:
84
Given the array restaurants where restaurants[i] = [idi, ratingi, veganFriendlyi, pricei, distancei]. You have to filter the restaurants using three f ...
分类:
其他好文 时间:
2020-01-29 16:19:06
阅读次数:
94
网络状态查看工具 1为老版本命令,2为新版本命令 ifconfig 普通用户 /sbin/ifconfig 修改为eth0模式 通过vim /etc/default/grub 打开进行编辑: 通过grub2-mkconfig转化为系统可以读取的配置: 重启;reboot 单独网卡查看 查看物理网线链 ...
分类:
系统相关 时间:
2020-01-29 16:20:06
阅读次数:
136
1. 例如执行yum update,经常报错“Cound not resolve host: xxxxx”,一般都是yum源是使用的国外镜像,国内访问很不好。这时可以将源手动替换为国内的清华大学源,或者阿里云源之类的。 详细使用方法可以参考https://mirrors.tuna.tsinghua. ...
分类:
其他好文 时间:
2020-01-29 16:20:23
阅读次数:
98
...
分类:
Web程序 时间:
2020-01-29 16:20:37
阅读次数:
82
delphi webbrowser 常用方法示例 var Form : IHTMLFormElement ; D:IHTMLDocument2 ; begin with WebBrowser1 do begin D := Document as IHTMLDocument2; Form := D.F ...
# 本程序为爬虫学习代码,成功爬取了漫微网站上的全部图片内容 import re import os import requests def getHTMLText(url): try: r=requests.get(url) r.raise_for_status() r.encoding=r.ap ...
分类:
编程语言 时间:
2020-01-29 16:22:10
阅读次数:
107
认识哈希函数和哈希表的实现 MD5 表达16^16范围的值 SHal 表达16^32范围的值 输入相同,即输出相同,不随机 不同的输出,输出相同 均匀性,离散性 设计RandomPool结构 设计一种结构,在该结构中有如下三个功能: insert (key):将某个key加入到该结构,做到不重复加入 ...
分类:
编程语言 时间:
2020-01-29 16:22:58
阅读次数:
116
mysql -uroot -p use mysql; update user set host = '%' where user = 'root'; flush privileges; ...
分类:
数据库 时间:
2020-01-29 16:23:30
阅读次数:
96
[TOC] 汇编语言 日期 19.07.19 软件安装 1.DOSBox 1. 无脑下一步 2. 修改配置文件 添加以下命令 2.Vim 1. 安装完后打开其文件位置 2. 修改配置文件 在开头写入简单的配置文件 编译和链接 将源代码 生成最终 的 exe 文件 然后执行 这一部分刚开始跟上做就好了 ...
分类:
编程语言 时间:
2020-01-29 16:23:46
阅读次数:
102
1. 用ZIP处理列表 假设要合并相同长度的列表并打印结果。同样有一种更通用的方式,即用zip()函数获得想要的结果,代码如下: countries= ['France', 'Germany', 'Canada'] capitals = ['Paris', 'Berlin', 'Ottawa'] f ...
分类:
编程语言 时间:
2020-01-29 16:24:22
阅读次数:
84
#include <cstdio> #include <cstring> #include <iostream> #include <algorithm> using namespace std; typedef long long ll; const int N=510,M=10010; int ...
分类:
其他好文 时间:
2020-01-29 16:24:35
阅读次数:
79
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> using namespace std; const int N=110; int p[N],n,m,ans,num; struct node { in ...
分类:
其他好文 时间:
2020-01-29 16:25:13
阅读次数:
95
1. 综合练习 1. 简单功能 1. 列表查询 2. 登录 3. 添加 4. 删除 5. 修改 2. 复杂功能 1. 删除选中 2. 分页查询 * 好处: 1. 减轻服务器内存的开销 2. 提升用户体验 3. 复杂条件查询 分析: 添加联系人功能分析: 删除功能分析: 修改功能分析: 删除选中功能分 ...
分类:
其他好文 时间:
2020-01-29 16:25:25
阅读次数:
105
数据结构与算法(哈希表) 哈希函数 :在记录的关键字与记录的存储地址之间建立的一 种对应关系叫哈希函数。 哈希函数是一种映象,是从关键字空间到存储地址空间的一 种映象。可写成:addressi=H(keyi) ,其中i是表中某 个元素。 哈希表 :应用哈希函数,由记录的关键字确定记录在表中的 地址, ...
分类:
编程语言 时间:
2020-01-29 16:25:57
阅读次数:
95
Project Structure -> Artifacts ...
分类:
Web程序 时间:
2020-01-29 16:26:11
阅读次数:
117
本文测试当主库无法连接时,从库的复制状态。 1.设置主库 在从库上, 将主库设置为 或一个无法连接的主库: 或 设置复制: 2.查看复制状态 IO线程状态 主库无法连接,连接错误如下所示: 可以看到,IO线程正在尝试连接主库。 日志位点信息 由于主库无法连接,日志位点相关的信息如下。 从库已经接收的 ...
分类:
其他好文 时间:
2020-01-29 16:26:42
阅读次数:
136
常用标准库函数之数学函数 \ include using namespace std; |函数名|功能 |: :|: : |exp(x)|ex |pow(x,y)|xy |sqrt(x)|x的平方根,x =0 |fabs(x)|\|x\| |log(x)|lnx,x 0 |log10(x)|lgx, ...
分类:
编程语言 时间:
2020-01-29 16:26:57
阅读次数:
98
https://blog.csdn.net/weixin_30379911/article/details/95065387 方法一:通过Request.Form [HttpPost] public ActionResult Test() { string id=Request.Form["id"] ...
分类:
Web程序 时间:
2020-01-29 16:27:15
阅读次数:
77
函数嵌套 一、函数的嵌套定义 函数内部定义的函数,无法在函数外部使用内部定义的函数。 现在有一个需求,通过给一个函数传参即可求得某个圆的面积或者圆的周长。也就是说把一堆工具丢进工具箱内,之后想要获得某个工具,直接从工具箱中获取就行了。 circle(10): 314.1592653589793 ci ...
分类:
其他好文 时间:
2020-01-29 16:27:28
阅读次数:
86