最近了解了下EXTJS,想记录下来自己的成果,希望对刚入门EXT的同学有点帮助,首先来做个简单的实例。一、去官网下载EXTJS包extjs5,这里采用的是5.0版本,下面就正式开启吧!二、解压extjs包,找到 ext-all.js基础包(\ext-5.0.0\build); ext-all-d.....
分类:
Web程序 时间:
2014-07-22 00:23:35
阅读次数:
235
import queue,threading l=threading.Lock()class MyThread(threading.Thread): def __init__(self): threading.Thread.__init__(self) global...
分类:
编程语言 时间:
2014-07-22 00:20:34
阅读次数:
189
Python中以sys.open()方法打开文件1 import sys2 3 file = open("D:\\file.txt")其中可在第二个参数的位置指定打开文件的模式1 import sys2 3 file = open("D:\\file.txt", "r")参数共有以下几种:rU或Ua...
分类:
编程语言 时间:
2014-07-22 00:19:34
阅读次数:
184
1.将字符串的时间转换为时间戳方法:a = "2013-10-10 23:40:00"将其转换为时间数组import timetimeArray = time.strptime(a, "%Y-%m-%d %H:%M:%S")转换为时间戳:timeStamp = int(time.mktime(tim...
分类:
编程语言 时间:
2014-07-22 00:19:34
阅读次数:
246
Python一切皆对象,但同时,Python还是一个多范式语言(multi-paradigm),你不仅可以使用面向对象的方式来编写程序,还可以用面向过程的方式来编写相同功能的程序(还有函数式、声明式等,我们暂不深入)。Python的多范式依赖于Python对象中的特殊方法(special metho...
分类:
编程语言 时间:
2014-07-22 00:18:37
阅读次数:
255
转自http://www.voidspace.org.uk/python/articles/authentication.shtml先转来,由于是python2的版本之后会翻译文章以及移植到python3IntroductionThis tutorial aims to explain and il...
分类:
编程语言 时间:
2014-07-22 00:18:35
阅读次数:
588
上下文管理器(context manager)主要用于规定某个对象的使用范围。一旦进入或者离开该使用范围,会有特殊操作被调用 (比如为对象分配或者释放内存)。它的语法形式是with...as...关闭文件上下文管理器有个特别好的优点:可以在不使用文件的时候,自动关闭文件,节省了f.close()的步...
分类:
编程语言 时间:
2014-07-22 00:16:37
阅读次数:
225
Scissor Lift tables are not just required for lifting the objects but also for the proper positioning of the material while working to prevent work re...
分类:
其他好文 时间:
2014-07-22 00:16:33
阅读次数:
269
#!/usr/bin/python#-*-encoding=utf-8-*-####################################fromSimpleXMLRPCServerimportSimpleXMLRPCServerfromSocketServerimportThreadingMixInimportsubprocess,os.path,os,statimportre,getopt,sysERR_INSECURE=‘[INSECURE_NAME]‘ERR_NO_SCRIPT=‘[NO_S..
分类:
编程语言 时间:
2014-07-21 15:26:17
阅读次数:
300
1、标准的序列操作:索引、分片、乘法、判断成员资格、求长度、取最大值和最小值2、python之删除命令的区别:>>>x[‘or‘,‘not‘,‘to‘,‘be‘,‘or‘,‘be‘]del:删除指定索引的值>>>delx[0]>>>x[‘not‘,‘to‘,‘be‘,‘or‘,‘be‘]pop:默认删除最后一个值>>..
分类:
编程语言 时间:
2014-07-21 15:14:17
阅读次数:
429