搜索到与相关的文章
各行各业

云存储开源项目

陈老师领导的开源项目:http://code.google.com/p/cloudxy/linux、openstack开源项目:http://github.org/云计算开源项目:http://www.openstack.org/阿帕奇软件基金会:http://www.apache.org/开源人工大脑项目:http://www.oschina.net/p/nengoC++网络工具包:http://pocoproject.org/云存储开源项目

系统 2019-08-12 09:27:00 2259

各行各业

Understanding Open Closed Principle and Depe

IntroductionInthefollowingthreearticlesI'mgoingtodiscussSOLID.ThisisthePartOneoftheseries.I'lltrytoexplainOpenColsedPricipleandDependencyInversion.NowwhatdoesSOLIDmean?SOLIDistheOOD(Object-OrientDesign)Principle,whereeachletterhas

系统 2019-08-12 09:26:57 2259

数据库相关

用ILMerge.exe合并dll

F:\ILMerge>ILMerge/targetplatform:v4,"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319"/lib:"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\WPF"/lib:"C:\ProgramFiles\MicrosoftVisualStudio10.0\Common7\IDE\PublicAssemblies"/out:Contact.

系统 2019-08-12 01:54:14 2259

数据库相关

update和saveOrUpdate详解

update和saveOrUpdate详解先来点概念:在Hibernate中,最核心的概念就是对PO的状态管理。一个PO有三种状态:1、未被持久化的VO此时就是一个内存对象VO,由JVM管理生命周期2、已被持久化的PO,并且在Session生命周期内此时映射数据库数据,由数据库管理生命周期3、曾被持久化过,但现在和Session已经detached了,以VO的身份在运行这种和Session已经detached的PO还能够进入另一个Session,继续进行P

系统 2019-08-12 01:51:40 2259

数据库相关

存储过程的设计规则

存储过程的设计规则存储过程的设计规则包括以下内容:CREATEPROCEDURE定义自身可以包括任意数量和类型的SQL语句,但以下语句除外。不能在存储过程的任何位置使用这些语句。CREATEAGGREGATECREATERULECREATEDEFAULTCREATESCHEMACREATE或ALTERFUNCTIONCREATE或ALTERTRIGGERCREATE或ALTERPROCEDURECREATE或ALTERVIEWSETPARSEONLYSET

系统 2019-08-12 01:34:03 2259

数据库相关

Count the Trees[HDU1131]

CounttheTreesTimeLimit:2000/1000MS(Java/Others)MemoryLimit:65536/32768K(Java/Others)TotalSubmission(s):1248AcceptedSubmission(s):812ProblemDescriptionAnothercommonsocialinabilityisknownasACM(AbnormallyCompulsiveMeditation).Thispsy

系统 2019-08-12 01:33:48 2259

Python

python requests指定出口ip的例子

爬虫需要,一个机器多个口,一个口多个ip,为轮询这些ipdemo#coding=utf-8importrequests,sys,socketfromrequests_toolbelt.adaptersimportsourcereload(sys)sys.setdefaultencoding('utf-8')s=requests.Session()new_source=source.SourceAddressAdapter('192.168.4.2')s.m

系统 2019-09-27 17:56:57 2258

Python

Python-1-Day

C=float(input("EnteradegreeinCelsius:"))F=(9/5)*C+32print("{0}Celsiusis{1}Fahrenheit".format(C,F))EnteradegreeinCelsius:4343.0Celsiusis109.4FahrenheitimportmathR,H=eval(input("Entertheradiusandlengthofacylinder:"))area=R*R*math.pi

系统 2019-09-27 17:53:26 2258

Python

python4:九九乘法表,菱形,斐波那契数列,指定项

打印九九乘法表:外层控制行数,内层控制列数。foriinrange(1,10):j=1whilej<=i:print(i,'*',j,'=',(i*j),'',end='')j+=1print('\n')打印菱形思路:分成两层从中间,这个想法很low。i=9m=i//2t=mwhilet!=0:print(t*'','*'*(i-2*t),t*'')t-=1t=1whilet!=m:t+=1print(t*'','*'*(i-2*t),t*'')方法二:对

系统 2019-09-27 17:52:57 2258

Python

python 判断字符串中是否含有汉字或非汉字的实例

model中compile值可以根据需要更改,满足不同的检测需求#判断一段文本中是否包含简体中文importrezhmodel=re.compile(u'[\u4e00-\u9fa5]')#检查中文#zhmodel=re.compile(u'[^\u4e00-\u9fa5]')#检查非中文contents=u'(2014)深南法民二初字第280号'match=zhmodel.search(contents)ifmatch:print(contents)el

系统 2019-09-27 17:52:32 2258