新装的centos 6.9虚拟机 修改yum 服务器源 cd /etc/yum.repos.d/ rename repo repo.bak_$(date +%F) * 阿里的yum库 https://opsx.alibaba.com/mirror 打开点帮助 curl -o /etc/yum.rep ...
分类:
数据库 时间:
2018-06-12 12:14:56
阅读次数:
175
软件: pip install pyzmq 代码: ==server.py # # Hello World server in Python # Binds REP socket to tcp://*:5555 # Expects "Hello" from client, replies with ...
分类:
编程语言 时间:
2018-06-12 00:48:11
阅读次数:
186
一、ubuntu安装svn 1、apt-get安装 命令:sudo apt-get install subversion 2、查看svn是否安装成功 命令:svn 3、创建SVN目录(/home/sxk) 命令:sudo mkdir svn sudo mkdir repository 4、更改rep ...
分类:
其他好文 时间:
2018-06-04 11:51:12
阅读次数:
210
function formatJson(msg) { var rep = "~"; var jsonStr = JSON.stringify(msg, null, rep) var str = ""; for (var i = 0; i 1) { var text = jsonStr.charAt.... ...
分类:
Web程序 时间:
2018-05-25 19:27:43
阅读次数:
175
SGU 404 题意:。。 收获:取模 #include<bits/stdc++.h> #define de(x) cout<<#x<<"="<<x<<endl; #define dd(x) cout<<#x<<"="<<x<<" "; #define rep(i,a,b) for(int i=a; ...
分类:
其他好文 时间:
2018-05-20 13:01:16
阅读次数:
203
题目大意: 给定n个长度为ai的木棍 求,任选三个使其能够组成三角形的概率 分析: ai <= 1e5,先统计c[i]代表长度为i的木棍有多少个 对c做卷积,即使用FFT求出 rep(i,0,1e5) rep(j,0,1e5) d[i+j]+=c[i]*c[j] 的d数组 d[i]即代表选出两个木棍 ...
分类:
其他好文 时间:
2018-05-18 13:51:18
阅读次数:
130
题目 http://codeforces.com/contest/706/problem/D 题解 Trie 模板 cpp include using namespace std; define rep(i, n) for (int i = 0; i = 0; j) { trie[u][0] = n ...
分类:
其他好文 时间:
2018-05-16 19:40:44
阅读次数:
141
用来确定字符串A是否包含字符串B,ES6有提供了三种新方法: 需要注意的是,这三个方法都接受第二个参数-一个数字n。前两个均表示从第n个开始查询,而,endsEith()是指针对前n个字符。 repeat() 将原字符串重复n次。 字符串对象,一共有四个方法可以使用正则表达式:match()、rep ...
分类:
其他好文 时间:
2018-05-11 20:33:41
阅读次数:
162
SGU 100 题意: 普通的a+b #include<bits/stdc++.h> #define de(x) cout<<#x<<"="<<x<<endl; #define dd(x) cout<<#x<<"="<<x<<" "; #define rep(i,a,b) for(int i=a;i ...
分类:
其他好文 时间:
2018-05-01 23:42:46
阅读次数:
195
rep_word = 'The piece is gone, left the puzzle undone' # \ 换行,跟shell一样 with open('nothing', 'r', encoding='utf-8') as f, \ open('nothing1', 'w', encod... ...
分类:
其他好文 时间:
2018-04-28 11:43:06
阅读次数:
212