码迷,mamicode.com
首页 >  
搜索关键字:reference count    ( 23530个结果
python字符串内建函数总结
python的字符串常用内建函数方法描述string.capitalize()将字符串的第一个字母大写string.center(width)返回一个原字符串居中,并使用空格填充至长度width的新字符串string.count(str,beg=0,end=len(string))返回str在string里面出现的次数,如果beg或者end指定则返回指定范围内..
分类:编程语言   时间:2014-08-14 21:05:30    阅读次数:233
mongo db 学习笔记 之一: mongodb 初认识
官网文章,对比SQL和mongodbhttp://docs.mongodb.org/manual/reference/sql-comparison/db--显示当前使用的库showdbs--显示所有库usedbshowcollections--显示当前数据库的所有表db.testData.find()--选择要操作的数据库之后,db代表当前数据库对象,testData代表数据表,在mong..
分类:数据库   时间:2014-08-14 20:59:09    阅读次数:312
winform导出datagridview数据到excle
if (dgvResult.Rows.Count == 0) { MessageBox.Show("列表为空"); } //创建Excel对象 Microsoft.Office.I...
分类:Windows程序   时间:2014-08-14 20:25:29    阅读次数:242
oc之指针
1、基础* : 简接寻址运算符& : 地址运算符int count = 10; //定义变量count,赋初始值10;int *intPtr; //*定义变量inPtr是int的指针类型intPtr = &count; //表达式&count表示变量count的指针,将它赋值给指针变量intP...
分类:其他好文   时间:2014-08-14 19:51:09    阅读次数:161
获取checkbox 组成字符串
1234$str_tag="";$s=$_POST['goods_server_name'];for($i=0;$i<count($s);$i++){ if($i==0){ $str_tag = $s[$i]; }else{ $str_tag = $str_tag .",".$s[$...
分类:其他好文   时间:2014-08-14 16:35:48    阅读次数:166
非结构体线段树版 ZJU 1610 Count the Colors (线段树区间更新)
Painting some colored segments on a line, some previously painted segments may be covered by some the subsequent ones. Your task is counting the segments of different colors you can see at last. ...
分类:其他好文   时间:2014-08-14 10:47:38    阅读次数:222
mysql中判断记录是否存在方法比较【转】
把数据写入到数据库的时,常常会碰到先要检测要插入的记录是否存在,然后决定是否要写入。我这里总结了判断记录是否存在的常用方法:sql语句:select count(*) from tablename;然后读取count(*)的值判断记录是否存在。对于这种方法性能上有些浪费,我们只是想判断记录记录是否存...
分类:数据库   时间:2014-08-14 01:15:07    阅读次数:259
push() 和 pop()
数组 push() 方法可以接收任意数量的参数,把它们逐个添加到数组末尾,并返回修改后数组的长度。而 pop() 方法则从数组末尾移除最后一项,减少数组的 length 值,然后返回移除的项。如下:var colors = []; //创建一个数组var count = colors.pu...
分类:其他好文   时间:2014-08-14 01:04:57    阅读次数:170
UVA - 12046 Great Numbers
Description Problem G - Great Numbers In this problem you have to count the number of great numbers of length n. Here a great number must have the following property: the number must be divis...
分类:其他好文   时间:2014-08-13 22:35:27    阅读次数:219
POJ 2777 Count Color (线段树区间更新加查询)
Description Chosen Problem Solving and Program design as an optional course, you are required to solve all kinds of problems. Here, we get a new problem. There is a very long board with length L...
分类:其他好文   时间:2014-08-13 22:28:57    阅读次数:401
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!