A -DividingTime Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uDescriptionMarsha and Bill own a collection of marbles. They want to spli...
分类:
其他好文 时间:
2014-07-31 12:51:46
阅读次数:
192
主要应用HttpPostedFile类的InputStream属性、Stream类的read方法和Byte数据类型。首先获取上传数据文件的名称、大小和类型,建立一个访问客户端上传文件的对象HttpPostedFile和一个数据流对象Stream,然后使用数据流Stream对象将上传文件以二进制形式的...
分类:
数据库 时间:
2014-07-31 12:24:46
阅读次数:
413
1到4的随机数Random Random1 = new Random(); int i = Random1.Next(1,4); Console.WriteLine(i); Console.ReadKey();
分类:
其他好文 时间:
2014-07-31 09:41:45
阅读次数:
209
输出:Console.Write("hello");换行输出:Console.WriteLine("hello");获取输入的值:Console.ReadLine()控制台不关闭:Console.ReadKey();占位符:Console.WriteLine("Sum:{1} Minus:{0} R...
分类:
其他好文 时间:
2014-07-31 09:35:45
阅读次数:
217
#!/bin/envpython
#-*-coding:utf-8-*-
fromConfigParserimportConfigParser
importjson
defgetConfigObject(filename):
"""获得配置文件对象
"""
_config_=ConfigParser()
_config_.read(filename)
return_config_
defgetConfigJson(filename,sections):
"""返回对应sections..
分类:
其他好文 时间:
2014-07-31 03:07:56
阅读次数:
267
将整数一个字符一个字符地读入,再转成整数,比直接作为整数读入快。在读入大规模的整数数据时比较有效。代码如下:inline void read_int(int &num){ char c; while (c = getchar(), c '9'); num = c - '0'; whil...
分类:
其他好文 时间:
2014-07-30 23:20:45
阅读次数:
507
1.查看当前会话隔离级别select @@tx_isolation;2.查看系统当前隔离级别select @@global.tx_isolation;3.设置当前会话隔离级别set session transaction isolatin level repeatable read;4.设置系统当前...
分类:
数据库 时间:
2014-07-30 23:17:25
阅读次数:
298
MySQL事务隔离级别为"REPEATABLE-READ"下的"幻读"现象 关于mysql命令行中事务控制的语句见该文章:http://my.oschina.net/xinxingegeya/blog/296459 本片参考文章:http://blog.csdn.net/jiao_fuyou/article/det...
分类:
数据库 时间:
2014-07-30 17:58:24
阅读次数:
397
Providingastaticmethodinsteadofapublicconstructorhasbothadvantagesanddisadvantages.Oneadvantageofstaticfactorymethodsisthat,unlikeconstructors,theyhavenames.ASecondadvantageofstaticfactorymethodsisthat,unlikeconstructors,theyarenotrequiretocreateanewobjecte..
分类:
编程语言 时间:
2014-07-30 17:54:24
阅读次数:
215
程在/proc下都有一个以进程号命名的目录. 在该目录下有exe文件,该文件是一个链接文件,它指向的路径就是该进程的全路径. 用readlink读exe文件返回该进程的全路径pit_t mypid = getpid(); sprintf(strsrc, "/proc/%d/exe", mypid);...
分类:
其他好文 时间:
2014-07-30 17:17:53
阅读次数:
173