首页 > 2015年11月06日 > 全部分享
Python基础(dict类)
四、字典(dict类)提示:以下所有方法都是类中的方法,第一个参数都是self,统一都没有写出。包含的方法有:1、clear() #清除字典的所有内容>>>d{1:‘a‘}>>>d.clear()>>>name{}2、fromkeys(k,v) #快速创建一个值相同的字典,k是key,值都是v>>..
分类:编程语言   时间:2015-11-06 07:13:58    收藏:0  评论:0  赞:0  阅读:167
python3.4使用PyMySQL来连接mysql
最近发现pip3installpython-mysql的时候ConfigParse没安装,因为在3里面改为了configparse,于是参考网上的做法,并记录下来 我的环境是: opensuse13.2mariadb python3.4和python2.7共存,虚拟环境 (liuliancao)liuliancao@linux-zxle:~/python/liuliancao/mysite>..
分类:数据库技术   时间:2015-11-06 07:13:08    收藏:0  评论:0  赞:0  阅读:484
Hibernate注解-实体类注解
@Entity@Table(name="EMP",schema="SCOTT")publicclassEmpimplementsjava.io.Serializable{//FieldsprivateShortempno;privateDeptdept;privateStringename;privateStringjob;privateShortmgr;privateDatehiredate;privateDoublesal;privateDoublecomm;//Constructors/**defaul..
分类:Web开发   时间:2015-11-06 07:12:38    收藏:0  评论:0  赞:0  阅读:305
实战:搭建CA认证中心,使用CA证书搭建HTTPS
CA认证中心服务端:xuegod63.cnIP:192.168.0.61客户端:xuegod64.cnIP:192.168.0.62CA:CertificateAuthority的缩写,通常翻译成认证权威或者认证中心,主要用途是为用户发放数字证书。认证中心(CA)的功能有:证书发放、证书更新、证书撤销和证书验证。CA证书作用:身份认..
分类:Web开发   时间:2015-11-06 07:12:28    收藏:0  评论:0  赞:0  阅读:696
Divide Two Integers 解答
QuestionDivide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.Solutiondividend = divisor * quo...
分类:其他   时间:2015-11-06 07:06:47    收藏:0  评论:0  赞:0  阅读:281
android82 文件下载框架xUtils
package com.itheima.xutils;import java.io.File;import com.lidroid.xutils.HttpUtils;import com.lidroid.xutils.exception.HttpException;import com.lidroi...
分类:移动平台   时间:2015-11-06 07:06:37    收藏:0  评论:0  赞:0  阅读:501
Q-3
最近几天已经没时间写博客了,感觉时间很紧张,每天都各种玩新的玩具,从viewport,media query 到after和before,再到zepto,以及刚才在用的juicer。sass和compass,git以及node。 小伙伴压力很大,但是,我却没有压力的感觉,不是进度的压力,是心态...
分类:其他   时间:2015-11-06 07:06:07    收藏:0  评论:0  赞:0  阅读:188
[Angular 2] Validation
Define a filed should has validation:export class DemoFormSku { myForm: ControlGroup; sku: AbstractControl; constructor(fb:FormBuilder) { ...
分类:其他   时间:2015-11-06 07:05:47    收藏:0  评论:0  赞:0  阅读:299
[hdu4416 Good Article Good sentence]后缀自动机SAM
题意:给出串A和串集合B={B1,B2,...,Bn},求串A的所有不同子串中不是B中任一串的子串的数目。思路:把A和B中所有字符串依次拼接在一起,然后构造后缀自动机,计算每个状态的R集合元素的最大值r,然后统计那些r≤length(A)的状态。hdu不卡时间卡空间,这是最郁闷的。。。导致下面的程序...
分类:其他   时间:2015-11-06 07:05:07    收藏:0  评论:0  赞:0  阅读:276
Game of Life
According to theWikipedia's article: "TheGame of Life, also known simply asLife, is a cellular automaton devised by the British mathematician John Hor...
分类:其他   时间:2015-11-06 07:04:07    收藏:0  评论:0  赞:0  阅读:254
c# 句柄数不断攀升的解决方案
句柄只是用来标识应用程序中的不同对象和同类中的不同的实例的一个数字,通常情况下,句柄值对普通用户毫无用处,但是句柄数量却可以间接反映出一个程序里产生的对象实例的多少。句柄数越多,代表程序里new 出来的对象越多。但是在c#里,经常会遇到句柄数莫名其妙的增加。 DateTime lastTime1 ....
分类:Windows开发   时间:2015-11-06 07:03:57    收藏:0  评论:0  赞:0  阅读:706
HashMap Java Doc
原文public class HashMapextends AbstractMapimplements Map, Cloneable, Serializable1.Hash table based implementation of theMapinterface. This implementat...
分类:编程语言   时间:2015-11-06 07:03:07    收藏:0  评论:0  赞:0  阅读:264
启动图
新建项目需要的配置: *最低兼容的系统SDK版本 *AppIcon: *不是所有的icon都是需要配置的,Spotilight是可以不用配置 *icon对应的格子放大多的图:xxpt的格子,@xx-->xx*3 *启动图: *"LaunchScreen.xib"只能支持iOS...
分类:其他   时间:2015-11-06 07:02:27    收藏:0  评论:0  赞:0  阅读:263
[hdu4436 str2int]后缀自动机SAM(或后缀数组SA)
题意:给n个数字串,求它们的所有不包含前导0的不同子串的值之和思路:把数字串拼接在一起,构造SAM,然后以每个状态的长度len作为特征值从小到大排序,从前往后处理每个状态,相当于按拓扑序在图上合并计算答案。#include using namespace std;#define X first#de...
分类:编程语言   时间:2015-11-06 07:01:57    收藏:0  评论:0  赞:0  阅读:276
What’s the difference between an interface and an abstract class in Java?
原文What’s the difference between an interface and an abstract class in Java?It’s best to start answering this question with a brief definition of abstr...
分类:编程语言   时间:2015-11-06 06:57:57    收藏:0  评论:0  赞:0  阅读:204
Struts(七)模型驱动及分层体系结构
1.分层体系架构例子:LoginServicepackage com.liule.service;public interface LoginService{ public boolean IsLogin(String username,String password);}LoginSeriv...
分类:其他   时间:2015-11-06 06:54:17    收藏:0  评论:0  赞:0  阅读:331
[Angular 2] ng-control & ng-control-group
Control:Controls encapsulate the field's value, a states such as if it is valid, dirty or has errors.var nameControl = new Control("Nate");var name = ...
分类:其他   时间:2015-11-06 06:52:37    收藏:0  评论:0  赞:0  阅读:243
字符串驻留池的另类用法
起因事情的起因是这样的基于某些无法避免的因素我有2个dll 暂且叫 a.dll 和 b.dll这2个类库中有一部分完全相同的代码(下文中称为代码C)——遍历当前应用程序下的所有类库文件,并注入插件(没错,就是IOC了)当开发人员仅引用a.dll或仅b.dll的时候,并没有任何问题但是如果一个项目需要...
分类:其他   时间:2015-11-06 06:52:07    收藏:0  评论:0  赞:0  阅读:180
[Angular 2] NgNonBindable
If you want to print someting like {{content}} on the html, using ng-non-bindable directive:
分类:其他   时间:2015-11-06 06:51:57    收藏:0  评论:0  赞:0  阅读:169
ISO/IEC 9899:2011 条款6.7.4——函数说明符
ISO/IEC 9899:2011 条款6.7.4——函数说明符
分类:其他   时间:2015-11-06 06:51:07    收藏:0  评论:0  赞:0  阅读:118
1505条   上一页 1 ... 63 64 65 66 67 ... 76 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!