make_moons是函数用来生成数据集,在sklearn.datasets里,具体用法如下: Parameters: n_samples : int, optional (default=100) The total number of points generated. shuffle : bo ...
分类:
其他好文 时间:
2020-02-01 12:39:56
阅读次数:
529
接上一章, "Windows玩转Kubernetes系列1 VirtualBox安装Centos" ,我们开始学习如何在Centos中安装Docker 准备 关闭防火墙 防火墙一定要提前关闭,否则在后续安装K8S集群的时候,会有一些问题,执行下面语句: 关闭Swap 注掉swap 关闭SeLinux ...
"Link" 设$a_i$总共除过$b_i$次,那么我们要做的就是找到一组$b$使得$\sum\limits_{i=0}^na_ik^{ b_i}=1$。 显然存在合法的$b$就存在一组合法的合并方案,具体的求解可以dfs。 考虑状压dp,设$f_{s,x}$表示存在一组$b$使得$\sum\lim ...
分类:
其他好文 时间:
2020-01-31 22:43:28
阅读次数:
94
Remember the story of Little Match Girl? By now, you know exactly what matchsticks the little match girl has, please find out a way you can make one s ...
分类:
编程语言 时间:
2020-01-31 10:39:41
阅读次数:
122
1、题目 12. Integer to Roman Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. Symbol Value I 1 V 5 X 10 L 50 C 100 D 50 ...
分类:
其他好文 时间:
2020-01-30 22:48:37
阅读次数:
57
我们在使用Red Hat系列与CentOS系列的Linux系统时经常要配置yum源,本文档提出一个快速配置yum源的方法,就是用shell脚本来实现。 首先确保系统已挂载好镜像文件,然后执行vim rhel7.repo.sh命令,这个命令是创建一个脚本。 在打开的文件中添加以下内 [root@lin ...
分类:
系统相关 时间:
2020-01-30 20:59:56
阅读次数:
116
Coloring Contention AC_Code 1 #include <iostream> 2 #include <cstdio> 3 #include <ctime> 4 #include <algorithm> 5 #include <string> 6 #include <cstrin ...
分类:
其他好文 时间:
2020-01-30 19:04:44
阅读次数:
97
知乎:www.zhihu.com 简答题:http://www.jiandati.com/ 网易公开课:https://open.163.com/ted/ 网易云课堂:https://study.163.com/ 中国大学MOOC:www.icourse163.org 网易云课堂:study.163 ...
分类:
Web程序 时间:
2020-01-30 14:29:36
阅读次数:
407
configure 这一步一般用来生成Makefile,为下一步的编译做准备,你可以通过在configure后加上参数来对安装进行控制,比如代码:./configure prefix=/usr上面的意思是将谇软件安装在/usr下面,执行文件就会安装在/usr/bin,同时一些软件的配置文件你可以通过 ...
分类:
其他好文 时间:
2020-01-30 14:19:01
阅读次数:
68
前提:linux系统、系统安装有make工具、最好还会一点makefile语法 在刷POJ的时候,每次测试一遍都要从新输入样例,再查看输出是否正确。重复的输入数据很费时间,于是将输入数据直接写入一个input文本内, 运用重定向的方法 自动输入样本数据,大大节省时间。 下面是我的makefile文件 ...
分类:
其他好文 时间:
2020-01-30 12:49:55
阅读次数:
69