码迷,mamicode.com
首页 >  
搜索关键字:python long string    ( 244880个结果)
写Java程序让Jvm崩溃
package jvm;public class HeapCrash { public static void main(String[] args) { //Object[] o = {“abc”};初始值赋值,不会有影响。 Object[] o ...
分类:编程语言   时间:2014-06-18 22:36:27    阅读次数:455
[LeetCode] Word Break
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.For e...
分类:其他好文   时间:2014-06-18 22:11:44    阅读次数:200
Httpclient httpdelete 参数
Httpclient 中常用的请求有2个,HttpPost 和 HttpGet,今天在对某个网站进行分析的时候,突然发现用到了 HttpDelete,并且传参 是 Json。1、一般 HttpPost 对传参 Json 的处理是:// 中文处理StringEntity se = new String...
分类:其他好文   时间:2014-06-18 22:05:55    阅读次数:419
quick cocos2dx 滚动条
--滚动条 labar local function valueChanged(strEventName,pSender) if nil == pSender then return end ...
分类:其他好文   时间:2014-06-18 22:00:01    阅读次数:332
《python源码剖析》笔记 python中的List对象
1.PyListObject对象 --> 变长可变对象,可看作vector typedef struct{ PyObject_VAR_HEAD //其中的ob_size表示实际被使用的内存的数量 PyObject **ob_item;//ob_item为指向元素列表的指针,实际上,Python中的list[0]就是ob_item[0] int allocated;//当前列表中可容纳的元素的总数 } PyList_Type 对象 --> PyListObject的类型对象 ty...
分类:编程语言   时间:2014-06-16 22:48:55    阅读次数:300
python常用基本函数
分类:编程语言   时间:2014-06-16 17:18:13    阅读次数:168
利用apache服务器搭建个人主页
一.Apache服务器的用途:Apache是一个开放源码的网页服务器,可以在大多数计算机操作系统中运行,由于其多平台和安全性被广泛使用,是最流行的Web服务器端软件之一。它快速、可靠并且可通过简单的API扩展,将Perl/Python等解释器编译到服务器中.Apacheweb服务器软件拥有以下特性..
分类:其他好文   时间:2014-06-16 17:06:51    阅读次数:321
mac安装python-ldap
升级了mac操作系统,安装python的python-ldap,报错Modules/LDAPObject.c:18:10:fatalerror:‘sasl.h‘filenotfound#include<sasl.h>^1errorgenerated.error:command‘cc‘failedwithexitstatus1----------------------------------------Cleaningup...Command/usr/bin/python..
分类:编程语言   时间:2014-06-16 16:21:35    阅读次数:758
父类提供业务逻辑,子类做具体实现
publicclassTest { publicstaticvoidmain(String[]args)throwsException{ Childrenc=newChildren(); c.show(); } } classParent { publicvoidshow(){ stepOne(); stepTwo(); } voidstepOne(){ System.out.println("parent.stepOne()"); } voidstepTwo(){ /..
分类:其他好文   时间:2014-06-16 15:12:59    阅读次数:178
Effective C++:条款20:宁以 pass-by-reference-to-const替换pass-by-value
(一) 调用函数的时候如果传递参数pass-by-value,那么函数参数都是以实际实参的副本为初值,调用端所获得的亦是函数返回值的一个复件。 看下面代码: class Person { public: Person(); virtual ~Person(); private: string name; string address; }; ...
分类:编程语言   时间:2014-06-16 14:57:30    阅读次数:184
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!