namespace No._1{ class Program { static void Main(string[] args) { Console.WriteLine("请输入一个数"); int n, i, j=0; n = int.Parse(Console.ReadLine()); if ( ...
分类:
其他好文 时间:
2017-09-19 11:49:40
阅读次数:
151
在MySQL中如何给普通用户授予查看所有用户线程/连接的权限,当然,默认情况下show processlist是可以查看当前用户的线程/连接的。 mysql> grant process on MyDB.* to test; ERROR 1221 (HY000): Incorrect usage o ...
分类:
数据库 时间:
2017-09-19 00:19:29
阅读次数:
277
Urllib基础 urllib.request.urlretrieve(url,filenname) 直接将网页下载到本地 清理下载网页时的缓存 urllib.request.urlcleanup() info getcode() 返回状态吗 202 成功 403 禁止访问 geturl() 查询当 ...
分类:
编程语言 时间:
2017-09-18 22:23:30
阅读次数:
188
通过这个错误提示信息我们可以知道,Makefile的修改时间点是Linux当前的一个未来时间点。可以通过修改Linux的当前时间来解决这个问题: $sudo date -s 'hh:mm:ss yyyy-mm-dd' 比如我想讲我的Linux系统的时间修改为2017-09-18 18:45:00 可 ...
分类:
其他好文 时间:
2017-09-18 20:30:49
阅读次数:
176
class Solution { public boolean validPalindrome(String s) { int start = 0, end = s.length() - 1; boolean found = false; while (start < end) { if (s.ch... ...
分类:
其他好文 时间:
2017-09-18 14:46:38
阅读次数:
131
1.1 Introduction to related functions 1.Imread() function Mat imread( const String& filename, int flags = IMREAD_COLOR ); filename:Name of file to be ...
分类:
其他好文 时间:
2017-09-18 14:45:45
阅读次数:
222
1 #include 2 using namespace std; 3 int n,m,cnt,prime[10000010],noprime[10000010]; 4 5 int main(){ 6 scanf("%d%d",&n,&m); 7 prime[1]=2; 8 noprime[1]=1... ...
分类:
其他好文 时间:
2017-09-18 13:28:45
阅读次数:
129
全排列 (permutation.cpp/c/pas)Description从 n 个不同元素中任取 m(m≤n)个元素,按照一定的顺序排列起来,叫做从 n个不同元素中取出 m 个元素的一个排列。当 m=n 时所有的排列情况叫全排列。你觉得 xxy 会问你全排列的个数吗?Xxy:这个问题能淹死你,我 ...
分类:
其他好文 时间:
2017-09-18 12:24:55
阅读次数:
227
实例:输出12个星座符号,以反斜线分隔。 for i in range(12): print(chr(9800+i),end='\\') 实例:恺撒密码的编码 plaincode = input('明文:') print('密文:',end='') for i in plaincode: print... ...
分类:
其他好文 时间:
2017-09-18 12:20:27
阅读次数:
155
Spark的一大好处就是可以通过增加机器数量并使用集群模式运行,来扩展计算能力。Spark可以在各种各样的集群管理器(Hadoop YARN , Apache Mesos , 还有Spark自带的独立集群管理器)上运行,所以Spark应用既能够适应专用集群,又能用于共享的云计算环境。 Spark运行 ...
分类:
其他好文 时间:
2017-09-18 10:53:22
阅读次数:
151