上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: http://hi.baidu.com/zjw199/blog/item/66df72014f4ae1d1267fb5ea.html对 HTTP 304 的理解(转)2008-12-16 11:34对 HTTP 304 的理解最近和同事一起看Web的Cache问题,又进一步理解了 HTTP 中的 304 又有了一些了解。 304 的标准解释是:Not Modified 客户端有缓冲的文档并发出了一个条件性的请求(一般是提供If-Modified-Since头表示客户只想比指定日期更新的文档)。服务器告诉客户,原来缓冲的文档还可以继续使用。如 果客户端在请求一个文件的时候,发现自己缓存的文件有 阅读全文
posted @ 2011-08-31 20:37 bettermanlu 阅读(253) 评论(0) 推荐(0) 编辑
摘要: http://www.cnpythoner.com/post/89.htmlpython 当前时间© laowang/ 2010-7-19 / 22:41 /python教程我有的时候写程序要用到当前时间,我就想用python去取当前的时间,虽然不是很难,但是老是忘记,用一次丢一次,为了能够更好的记住,我今天特意写下python 当前时间这篇文章,如果你觉的对你有用的话,可以收藏下。取得时间相关的信息的话,要用到python time模块,python time模块里面有很多非常好用的功能,你可以去官方文档了解下,要取的当前时间的话,要取得当前时间的时间戳,时间戳好像是1970年到现 阅读全文
posted @ 2011-08-23 13:53 bettermanlu 阅读(486) 评论(0) 推荐(0) 编辑
摘要: http://www.jansipke.nl/python-soap-client-with-sudshe librarysudsallows Python to make SOAP calls (that is, Python is the web service client).We start by installing the suds library on an Ubuntu machine. The Python setuptools are needed to install suds.sudo apt-get install python-setuptoolsThen we d 阅读全文
posted @ 2011-08-05 19:47 bettermanlu 阅读(2238) 评论(2) 推荐(0) 编辑
摘要: http://www.21andy.com/blog/20060820/389.htmllinux解压 tar命令tar命令tar [-cxtzjvfpPN] 文件与目录 ....参数:-c :建立一个压缩文件的参数指令(create 的意思);-x :解开一个压缩文件的参数指令!-t :查看 tarfile 里面的文件!特别注意,在参数的下达中, c/x/t 仅能存在一个!不可同时存在!因为不可能同时压缩与解压缩。-z :是否同时具有 gzip 的属性?亦即是否需要用 gzip 压缩?-j :是否同时具有 bzip2 的属性?亦即是否需要用 bzip2 压缩?-v :压缩的过程中显示文件!这 阅读全文
posted @ 2011-08-05 08:17 bettermanlu 阅读(1948) 评论(0) 推荐(0) 编辑
摘要: http://www.joelverhagen.com/blog/2011/02/md5-hash-of-file-in-python/MD5 Hash of File in PythonFrom time to time, I am hacking around and I need to find the checksum of a file. Reasons for this could be that you need to check if a file has changes, or if two files if two files with the same filename 阅读全文
posted @ 2011-08-04 10:13 bettermanlu 阅读(662) 评论(0) 推荐(0) 编辑
摘要: http://hi.baidu.com/thinkinginlamp/blog/item/8905564e1f771c0eb3de05ec.html如何在Python中调用父类的同名方法2009年02月05日 星期四 下午 03:38作者:老王Python中对象方法的定义很怪异,第一个参数一般都命名为self(相当于其它语言的this),用于传递对象本身,而在调用的时候则不必显式传递,系统会自动传递。举一个很常见的例子:>>> class Foo: def bar(self, message): print(message)>>> Foo().bar(&qu 阅读全文
posted @ 2011-07-27 15:08 bettermanlu 阅读(1208) 评论(0) 推荐(0) 编辑
摘要: http://hi.baidu.com/spare_h/blog/item/03b31635fbd3cbaed1a2d300.htmlAndroidManifest.xml android:name(应用中多个包问题)每一个Activity、Service等应用程序组件都会对应AndroidManifest.xml文件中的一 个<activity>、<service>标签。在这些标签中有一个必选的属性:android:name,该属性需要指定一 个类名,例如,net.blogjava.mobile.Main类。指定android:name属性值有如下3种方式:1.指定完 阅读全文
posted @ 2011-07-24 16:05 bettermanlu 阅读(329) 评论(0) 推荐(0) 编辑
摘要: http://www.tutorialspoint.com/python/python_modules.htmA module allows you to logically organize your Python code. Grouping related code into a module makes the code easier to understand and use.A module is a Python object with arbitrarily named attributes that you can bind and reference.Simply, a m 阅读全文
posted @ 2011-06-22 22:48 bettermanlu 阅读(314) 评论(0) 推荐(0) 编辑
摘要: http://www.readmespot.com/question/o/2724260/why-does-python-s-__import__-require-fromlist-In Python, if you want to programmatically import a module, you can do:module = __import__('module_name')If you want to import a submodule, you would think it would be a simple matter of:module = __imp 阅读全文
posted @ 2011-06-22 22:32 bettermanlu 阅读(518) 评论(0) 推荐(0) 编辑
摘要: http://www.4pang.com/2010/08/20/4%E8%83%96%E5%AD%A6python-%EF%BC%8D-__getattr__-%E5%92%8C-__getattribute__-%E6%96%B9%E6%B3%95%E7%9A%84%E5%8C%BA%E5%88%AB.htmlpython 再访问属性的方法上定义了__getattr__() 和 __getattribute__() 2种方法,其区别非常细微,但非常重要。如果某个类定义了__getattribute__()方法,在每次引用属性或方法名称时Python 都调用它(特殊方法名称除外,因为那样将会导 阅读全文
posted @ 2011-06-22 21:53 bettermanlu 阅读(8981) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页