The count-and-say sequence is the sequence of integers beginning as follows:
1, 11, 21, 1211, 111221, ...
1 is read off as "one
1" or 11.
11 is read off as "two
1s" or 21.
21 is read off as ...
分类:
其他好文 时间:
2014-11-12 19:50:50
阅读次数:
164
今天在尝试使用protobuf在服务端和android进行数据转递和解析时遇到一个小问题,这里记录一下。大概的场景是pc与android使用socket通信,pc为服务端,android向服务端发送请求后,服务端将protobuf对象返回给and...
分类:
其他好文 时间:
2014-11-12 16:43:23
阅读次数:
323
1.用os.system(cmd) 不过取不了返回值2.用os.popen(cmd) 要得到命令的输出内容,只需再调用下read()或readlines()等 如a=os.popen(cmd).read()3.用commands模块。其实也是对popen的封装。此模块主要有如下方法commands....
分类:
编程语言 时间:
2014-11-11 22:39:06
阅读次数:
298
来自国外博客的一篇文章介绍了MySQL 的 read_buffer_size 参数是如何影响写缓冲和写性能。据说 read_buffer_size 参数只影响以下两种情况的写数据的性能:SELECT INTO … OUTFILE ‘fileName‘When writing to the OUTFI...
分类:
数据库 时间:
2014-11-11 21:05:02
阅读次数:
292
//测试存储二进制文件@Testpublic void test() throws IOException{InputStream in=new FileInputStream("E:\\test.txt");byte[] tblob=new byte[in.available()];in.read...
分类:
数据库 时间:
2014-11-11 20:53:20
阅读次数:
235
http://www.read.org.cn/html/39-miracle-super-speed-reading-a-book-focused-training-methods.html这几天看看了家里的书,发现各种的速读法中都有专门训练注意力的方法。今天介绍的是《奇迹的超级速读法》一下中训练....
分类:
其他好文 时间:
2014-11-11 18:54:26
阅读次数:
186
在用CoreBluetooth 做蓝牙数据传输时,把设备设为周边设备报此错误:Characteristics with cached values must be read-only经查询是因为在构造 Characteristic 时设置了 Value,根据官方说明,当Value 不是nil 时,只...
分类:
系统相关 时间:
2014-11-11 18:03:12
阅读次数:
158
1 int strcmp1(const char* s1,const char*s2) 2 { 3 int i=0; 4 cout 2 #include 3 using namespace std; 4 5 istream& read_w(istream&is,char*b,i...
分类:
编程语言 时间:
2014-11-11 00:34:20
阅读次数:
231
Problem DescriptionHow many problems did you AC?When you read this problem, don’t hasty and careless, this is also simple, haha, I didn’t cheat you.Th...
分类:
其他好文 时间:
2014-11-10 21:10:26
阅读次数:
168
1、基本读取read命令接收标准输入(键盘)的输入,或其他文件描述符的输入(后面在说)。得到输入后,read命令将数据放入一个标准变量中。下面是read命令的最简单形式::#!/bin/bashecho-n"Enteryourname:"//参数-n的作用是不换行,echo默认是换行readname//从键盘输入echo"hell..
分类:
系统相关 时间:
2014-11-10 15:45:12
阅读次数:
300