public synchronized StringBuffer append(String str) { super.append(str); return this; } // 同步方法public AbstractStringBuilder append(String str) { if (s...
分类:
移动开发 时间:
2014-09-21 09:08:40
阅读次数:
225
任何Python程序都可以作为模块导入;在导入自己的模块时,需要添加路径:
import sys
sys.path.append('absolute-path');
(__pycache__是执行main.py时创建的)
hello.py内容:
def sayHello():
print('hello,world')
main.py...
分类:
编程语言 时间:
2014-09-20 21:26:49
阅读次数:
243
java.lang.StringBuffer可变的字符串String之间的连接是通过开辟一块新的内存 让后将它们拷贝进来StringBuffer则可以直接在后面追加方法: append(charc) delete(intstart, intend) insert(intoffset...
分类:
其他好文 时间:
2014-09-20 17:03:29
阅读次数:
174
1、StringBuffer中append方法有错误原因分析:是project默认的JRE系统库和配置的jre不匹配。解决方法:项目属性->Add Libray->JRE System Library->Alternate JRE(选择Sun JDK 1.6.0_13)2、文件上传问题mySmart...
分类:
Web程序 时间:
2014-09-20 13:57:07
阅读次数:
169
js:$(function(){ $("ul.sub").parent().append(""); $("ul.sub ul").parent().append(""); $('#nav ul').closest('li').hover(function(){ $(this).find("span....
分类:
Web程序 时间:
2014-09-19 15:11:55
阅读次数:
314
需求是几百个文件,命名规则类系下面的文件名:dailydata_20140320.txt通过newLISP合并,首先是自动生成这些文件名,然后用read-file读取内容,再用append-file写入到一个文件中。注意删除上次运行的结果,也要注意有文件不存在的话需要出error.log日志。代码如下:#!/usr/bin/newlisp
(set 'start-date "20140101 0...
分类:
其他好文 时间:
2014-09-18 16:33:34
阅读次数:
202
一、获取DOM节点//找祖宗parent()parents()closest() //找后代children();find();//找兄弟next()/nextAll()prev()/prevAll()siblings()二、元素节点操作$(html) //创建DOMappend()/append....
分类:
Web程序 时间:
2014-09-18 02:00:03
阅读次数:
173
使用OpenXml给word文档添加文字,每个模块都有自己对于的属性以及内容,要设置样式就先声明属性对象,将样式Append到属性里面,再将属性append到模块里面,那么模块里面的内容就具备该样式了。此方法默认是在文件后面追加内容Code:using System;using System.Col...
分类:
其他好文 时间:
2014-09-17 23:15:12
阅读次数:
274
传送门官方文件地址list.append(x):将x加入列表尾部,等价于a[len(a):] = [x] 例:>>> list1=[1,2,3,4]>>> list1.append(5)>>> list1[1, 2, 3, 4, 5]list.extend(L)将列表L中的元素加入list中,等价于...
分类:
编程语言 时间:
2014-09-17 16:48:32
阅读次数:
299
今天测试了$.ajax()方法: $("a").click(function(){ $.ajax({ url:"MyJsp.jsp", type:"GET", success:function(msg){ $("body").append(msg); }参数url是目标地址源,type:是请求提交类...
分类:
其他好文 时间:
2014-09-16 23:30:51
阅读次数:
214