网站一般流行以下收藏代码function AddFavorite(title, url){ try{ //ie收藏 window.external.addFavorite(url, title); } catch(e){ try{ window.sidebar.ad...
分类:
Web程序 时间:
2014-10-16 19:43:42
阅读次数:
246
要学的 太多了.学到的 都是有用的 即便你不会在比赛中遇到这个类型的 但是开拓了你的思维这2题 都是LCIS-Longest Common Increase Subsequence我是在这边学习的 传送这篇写的很好.我觉得对于4512要好好理解下啊 我想了好久 太白痴了....注意下 数组的对称性1...
分类:
其他好文 时间:
2014-10-16 18:26:32
阅读次数:
338
在Python中一般情况我们应该使用ElementTree处理xml文件,ElementTree从Python
2.5开始成为标准模块。一般情况指的是: XML 文件大小适中,对性能要求并非非常严格。
下面讲解如何通过ElementTree来操作XML;
1.引入库
需要用到3个类,ElementTree,Element以及建立子类的包装类SubElement
try:
...
分类:
编程语言 时间:
2014-10-16 18:02:53
阅读次数:
233
项目中的一个方法,32位小写加密。 1 public static String encryptByMD5(String str) { 2 MessageDigest messageDigest = null; 3 4 try { 5 ...
分类:
其他好文 时间:
2014-10-16 16:14:22
阅读次数:
151
1.INSERT调用PL/SQL 去insert的时候,没有使用super(),此时应当自己创建callable statement;调用checkErrors()方法在执行 callable statement 处理异常后protected void insertRow() { try { ...
分类:
数据库 时间:
2014-10-16 12:37:22
阅读次数:
210
We were unable to copy your files. Please check your USB device and the selected ISO file and try again.Windows 7 USB/DVD Download Tool (WUDT) is unab...
//第一步 try ? wordapplication1.Connect; except ? wordapplication1.Disconnect; ? messagedlg(‘请安装Office中的Word软件!‘,mterror,[mbok],0); ? exit; end; // 不显示word wordapplication1.Visible:=...
begintry --SQL endtrybegincatch--sql (处理出错动作) endcatch我们将可能会出错的sql 写在begin try...endtry 之间,若出错,刚程序就跳到紧接着的begin try...endtry 的beign catch...endcatch中,执...
分类:
数据库 时间:
2014-10-15 18:47:01
阅读次数:
254
#!/usr/bin/envpython
#encoding:utf-8
importMySQLdb
tell_file=‘/home/test/liyiliang/study/tell.info‘
f=file(tell_file)
account_list=f.readlines()
f.close()
forninaccount_list:
h=n.strip().split()
name=h[0]
phone=h[1]
try:
conn=MySQLdb.connect(host=‘x.x.x.x‘,..
分类:
编程语言 时间:
2014-10-15 15:47:11
阅读次数:
204
9.1手机的存储区域手机的存储区域通常有两个地方:一:手机内部存储空间,理解成一块微硬盘/data/data/;二:外部存储空间SD卡9.2方法捕获异常的原则如果方法有返回值,则用try catch捕获,如果方法的返回值是Void类型,则使用throws抛出异常9.3上下文ContextContex...
分类:
移动开发 时间:
2014-10-15 02:43:19
阅读次数:
335