们自己写的字典只能保存输入的键值对,但是不能保存他们输入的顺序,这时候可以借助Python的标准库collections里的orderedDict类 from collections import OrderedDict my_ordered_diction = OrderedDict() my_o ...
分类:
其他好文 时间:
2020-07-22 15:37:51
阅读次数:
63
🔨MySQL 8 在 Windows 上由 zip 安装 参考文档: mysql-5.7.21-winx64.zip安装教程 SET PASSWORD Statement sqlyog连接mysql错误码2058 步骤 下载解压,并把 bin 文件夹添加到 Path 系统环境变量中 新建 my.i ...
分类:
数据库 时间:
2020-07-22 15:29:01
阅读次数:
73
哈密顿绕行世界问题(HDU-2181) 题解:一个规则的实心十二面体,它的 20个顶点标出世界著名的20个城市,你从一个城市出发经过每个城市刚好一次后回到出发的城市。 裸DFS; 代码: #include<bits/stdc++.h> using namespace std; const int m ...
分类:
其他好文 时间:
2020-07-22 02:01:11
阅读次数:
198
[Lyndon分解] HDU 6761 Minimum Index (2020多校训练) 题解 待补。 Code #include <iostream> #include <algorithm> #include <cstring> #include <string> #include <cstdi ...
分类:
其他好文 时间:
2020-07-22 01:46:30
阅读次数:
178
题意: ? 给定三个数字 \(n,c,k\) ,求以下式子 ? \(\sum_{i=0}^nF(ic)^k\%(10^9+9)\) ? 其中$F(x)$为斐波那契数列第$x$项。 ? $1\leq n,c\leq10^{18},1\leq k \leq10^5$ 分析: ? 在比赛的时候我搜索了一波 ...
分类:
其他好文 时间:
2020-07-22 01:44:09
阅读次数:
110
NLP——新闻文本处理:TASK1 赛题理解与nlp初识 1.数据读取 在竞赛主页下载好数据集利用pandas打开: #coding=utf-8 import pandas as pd #my_font = font_manager.FontProperties(fname="C:\Windows\ ...
分类:
其他好文 时间:
2020-07-21 23:13:12
阅读次数:
112
错误日志(Error log) # 错误日志默认是关闭的 # 默认路径是 $datadir/,默认的名字是'主机名.err' # 配置方式 [root@db02 ~]# vim /etc/my.cnf [mysqld] server_id=1 basedir=/usr/local/mysql dat ...
分类:
数据库 时间:
2020-07-21 23:12:39
阅读次数:
94
一、使用免密码登录 1.使用 #find / -name my.cfg 找到mysql配置文件 2.vim /etc/mysql/my.cfg (我的配置文件是这个路径,每个人的路径可能有所不同,用find查询后再编辑) 在[mysqld]设置下添加skip-grant-tables参数(跳过权限列 ...
分类:
数据库 时间:
2020-07-21 22:43:42
阅读次数:
91
一、Reading My girlfriend always complains. According to her, I should be more ambitious. I should work harder and earn more money. She also thinks I sh ...
分类:
其他好文 时间:
2020-07-21 22:40:49
阅读次数:
117
HDU - 2157 构造矩阵,用于转移走一步的情况。 若$i$能走到$j$,则$g[j][i]=1$,否则为$0$ 然后一开始只有$A$点累计有一种走法。 所以最后计算矩阵的$k$次方,输出$g[B][A]$即可。 #include<bits/stdc++.h> using namespace s ...
分类:
其他好文 时间:
2020-07-21 22:30:21
阅读次数:
61