码迷,mamicode.com
首页 >  
搜索关键字:split 分割文件大小    ( 6348个结果
Divideing Jewels
Divideing Jewels时间限制: 1 Sec内存限制: 128 MB提交: 63解决: 17[提交][状态]题目描述Mary and Rose own a collection of jewells. They want to split the collection among them...
分类:其他好文   时间:2015-05-06 14:56:09    阅读次数:130
js获取Cookie,获取url参数
function getCookie(name) { var strCookie = document.cookie; var arrCookie = strCookie.split("; "); for (var i = 0; i < arrCookie.length; i++)...
分类:Web程序   时间:2015-05-04 19:50:59    阅读次数:134
vim 多窗口编辑命令
简单实用不求多不求全 同时打开多个文件 vim file1 file2 file3 在同一个窗口中,不同文件间切换 :bn     -->  下一个文件 :bp     -->  上一个文件 将当前窗口水平分隔 :split 将当前窗口垂直分隔 :vsplit 不同窗口间光标切换 ctrl+w双击  (按住ctrl不动,再按w键两次) ...
分类:系统相关   时间:2015-05-04 18:17:52    阅读次数:182
C++之字符串分割函数
//c++之字符串分割:std::string str_buf = "hello/world";std::vector str_arr;split(str_buf, "/", str_arr);for(std::vector::iterator it=str_arr.begin(); it !...
分类:编程语言   时间:2015-05-04 11:25:54    阅读次数:143
Enormous Input Test Solved Problem code: INTEST
import sysimport psyco #一键优化库psyco.full()def main(): n, k = map(int, sys.stdin.readline().strip().split()) #两位数输入的复用 count = 0 for t in sys.s...
分类:其他好文   时间:2015-05-03 20:16:05    阅读次数:101
ip、数字互转-python实现
#ip==>数字 >>>ip2num=lambdax:sum([256**j*int(i)forj,iinenumerate(x.split(‘.‘)[::-1])]) >>>ip2num(‘192.168.0.1‘) 3232235521
分类:编程语言   时间:2015-05-03 19:08:24    阅读次数:124
保存两位小数,不四舍五入
//截断两位小数function mySplit(str) { var arr = str.split("."); if (arr.length == 2) { if (arr[1].length > 2) { return arr[0] + "." ...
分类:其他好文   时间:2015-05-03 18:44:26    阅读次数:87
php字符串
1.?mb_strlen(); 统计有多少个字1.strlen($s) 统计有多少字节 utf8中一个汉字为3个字节 $s='中国China'; echo strlen($s);//统计字节个数 2.str_split($ss,3)三个为一组,对中文支持不好3.trim($a); 清除左边或者右边的...
分类:Web程序   时间:2015-05-03 15:55:17    阅读次数:161
ip、数字的互转-python版
# ip ==> 数字 >>> ip2num = lambda x:sum([256**j*int(i) for j,i in enumerate(x.split('.')[::-1])]) >>> ip2num('192.168.0.1') 3232235521 # 数字 ==> ip # 数字...
分类:编程语言   时间:2015-05-03 15:48:16    阅读次数:120
ATM Solved Problem code: HS08TES
1 # ATM2 import sys3 4 withdraw, balance = map(float, sys.stdin.readline().strip().split()) # strip()用法去除结尾的\n符号5 6 if int(withdraw) % 5 != 0 or bala....
分类:其他好文   时间:2015-05-03 11:49:39    阅读次数:105
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!