- 博客(15)
- 收藏
- 关注
转载 J2EE_地址栏URL中文乱码
参考1:Firefox很好地支持了中文的URL参数传递,而IE则的URL不是很好地支持中文传输。表单提交中的中文,如果是GET方法的话,提交的参数会自动 以urlencode的方式显示在URL上,如果不作任何处理的话,会导致Firefox下能够正确传递参数,而IE下无法传递中文参数。如果想让IE以Firefox同样的方式解析URL中的参数,则必须要将GET提交的参数先 urlencode,再u
2012-03-29 10:12:11 610
原创 Python_API_File and Directory Access_glob.glob
API文档:globThe glob module finds all the pathnames matching a specified pattern according to the rules used by the Unix shell. No tilde expansion is done, but*,?, and character ranges expressed
2012-03-28 22:29:06 364
原创 Python_API_File and Directory Access_os.path.split
API文档:os.path.split(path)Split the pathname path into a pair, (head, tail) where tail is the last pathname component andhead is everything leading up to that. Thetail part will never contain a s
2012-03-28 22:20:23 583
原创 Python_API_Generic Operating System Services_os.environ
os.environ是系统上定义的环境变量的字典例子:import osprint os.environ输出{'TMP': 'C:\\Users\\LYLE20~1\\AppData\\Local\\Temp', 'COMPUTERNAME': 'LENOVO-PC', '1830B7BD-F7A3-4C4D-989B-C004DE465EDE': '17a4:
2012-03-28 22:07:24 486
原创 Python_API_File and Directory Access_os.path.expanduser
API文档:On Unix and Windows, return the argument with an initial component of ~ or ~user replaced by that user‘s home directory.On Unix, an initial ~ is replaced by the environment variable HOME i
2012-03-28 21:57:56 505
原创 Python_API_Python Runtime Services_sys.modules
sys.modules是一个字典,他包含了从Python开始运行起,被导入的所有模块。键字就是模块名,键值就是模块队形。请注意除了你的程序导入的模块外还有其他模块。Python在启动时预先装入了一些模块,如果你在一个Python IDE环境下,sys.modules包含了你在IDE中运行的所有程序所导入的模块例子:import sysprint '\n'.join(
2012-03-28 21:38:41 464
原创 Python_API_File and Directory Access_os.path.splitext
API文档:os.path.splitext(path) Split the pathname path into a pair (root, ext) such that root + ext == path, and ext is empty or begins with a period and contains at most one period. Leading perio
2012-03-24 21:10:10 862
原创 Python_API_File and Directory Access_os.path.join
API文档:os.path.join(path1[, path2[, ...]]) Join one or more path components intelligently. If any component is an absolute path, all previous components (on Windows, including the previous drive
2012-03-24 20:47:21 642
原创 Python_API_File and Directory Access_os.path.normcase
API文档:os.path.normcase(path) Normalize the case of a pathname. On Unix and Mac OS X, this returns the path unchanged; on case-insensitive filesystems, it converts the path to lowercase. On Windo
2012-03-24 20:18:47 712
原创 Python_API_String Services_string.strip
API文档:Return a copy of the string with leading and trailing characters removed. If chars is omitted or None, whitespace characters are removed. If given and not None, chars must be a string; the cha
2012-03-24 19:58:22 365
原创 Python_API_Built-in Types_dict.update
update([other])Update the dictionary with the key/value pairs fromother, overwriting existing keys. ReturnNone.update() accepts either another dictionary object or an iterable of key/value pairs (
2012-03-24 10:31:44 732
原创 maven_打包到私服工程中无法下载
在pom.xml中加入入下代码: releases Internal Releases http://192.168.2.102:8081/nexus/content/repositories/releases/ true
2012-03-22 10:48:10 3289
转载 python IDE比较与推荐
转载:水木社区- Python版发信人: RunningOn (挥着翅膀的男孩), 信区: Python标 题: python IDE比较与推荐发信站: 水木社区 (Mon Jul 16 19:34:58 2007), 转信我先给一个初步的表格吧,大家如果有什么意见,或有补充,欢迎提出。有些我没有用过,先不写了。以下是我使用过的python IDE:(更新与201
2012-03-07 10:12:52 345
转载 javascript_按字节截取、计算中英文混合字符串字节数
function lenByte(tempvalue){if(tempvalue==null || tempvalue.length==0 || tempvalue=="") { return 0; }else{ var i,sum; sum=0; for(i=0;i{ if ((tempvalue.charCodeAt(i)
2012-03-05 19:21:04 540
转载 javascript_获取当前日期以毫秒为单位
在html页面里怎么才能获取像java里获取系统当前日期并以毫秒为单位呢?Java里用System.currentTimeMillis()获取。获取的这个值其实就是自1970年1月1日0时起与现在时间的毫秒数。在JavaScript里,Date对象虽然没有能直接获取的函数,但是通过一些技巧是可以获取到的 var date=new Date(); var yy=date.getYear(
2012-03-02 14:09:37 7410
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人