cd instance-path/ds6/bin
#注意黄色参数修改为跟实际环境一致-c,--accept-cert Does not ask for confirmation before accepting
non-trusted server certifica...
分类:
其他好文 时间:
2014-05-16 18:06:42
阅读次数:
766
1、背景图合并和CSS Spirit
2、PS基本快捷键
3、hack技术基本书写,为什么不用?
4、内核前缀
5、伪类afterbefore
1、背景图合并和CSS Spirit
背景图合并在使用时有两种方法:
①一种就是你会PS,可以自己PS实现背景图合并成一张图片,再用background-position实现背景图的定位。
②如果你不会PS,那可...
分类:
其他好文 时间:
2014-05-15 06:00:07
阅读次数:
579
为Python添加默认模块搜索路径
方法一:函数添加
1) import sys
2) 查看sys.path
3) 添加sys.path.append("c:\\")
方法二:修改环境变量
windows用户可以修改系统环境变量PYTHONPATH
方法三:增加.pth文件,推荐!
在site-packages添加一个路径文件,如mypkpath.pth,必须以...
分类:
编程语言 时间:
2014-05-14 21:21:27
阅读次数:
419
MotivationWe can not talk about Object Oriented
Programming without considering the state of the objects. After all object
oriented programming is abo...
分类:
其他好文 时间:
2014-05-14 10:51:18
阅读次数:
354
public class BubbleSort{ public static void
main(String[] args){ int[] sortArray = new int[]{5,7,4,2,9,8,3,6};
System.out.println("before sorting ,t.....
分类:
编程语言 时间:
2014-05-13 19:45:04
阅读次数:
366
1729 is the natural number following 1728 and preceding 1730. It is also known as the Hardy-Ramanujan number after a famous anecdote of the British mathematician G. H. Hardy regarding
a hospital vis...
分类:
其他好文 时间:
2014-05-13 14:52:34
阅读次数:
314
#!/usr/bin/envpython#coding:utf8#此脚本为查找递归目录下所有文件匹配的内容importos,sys,tabdefpaths(path):list_path=os.walk(path)all_file=[]forp,d,flinlist_path:forfinfl:pfile=os.path.join(p,f)ifos.path.isdir(pfile):paths(pfile)all_file.append(pfile)returnall..
分类:
编程语言 时间:
2014-05-13 03:49:34
阅读次数:
426
#!/usr/bin/envpython#coding:utf8importos,sys,glob,time,MySQLdb,reDIRNAME=os.path.dirname(__file__)OPSTOOLS_DIR=os.path.abspath(os.path.join(DIRNAME,‘..‘))sys.path.append(OPSTOOLS_DIR)fromlibrary.mysqlconfigimportMySQLDConfig,getMyVariablesfromoptparseimport..
分类:
数据库 时间:
2014-05-13 02:46:59
阅读次数:
809
1、list.append(obj) 向列表中添加一个对象obj
list = ['apple', 'pear', 'orange']
>>> list.append('apple')
>>> list
['apple', 'pear', 'orange', 'apple']
2、list.count(obj) 返回一个...
分类:
编程语言 时间:
2014-05-12 14:17:41
阅读次数:
418
Windows界面编程第一篇 位图背景与位图画刷
可以通过WM_CTLCOLORDLG消息来设置对话框的背景,MSDN上对这个消息的说明如下:TheWM_CTLCOLORDLGmessage is sent
to a dialog box before the system draws the di...
分类:
Windows程序 时间:
2014-05-12 00:56:39
阅读次数:
1748