今天接触了下pyUSB,事先没看对象内部成员资料,直接用python的dir函数看了看pyUSB的内部构成。突然间想到自己可不可以写个简单的脚本,利用dir或其他函数遍历某个对象内部的所有成员,并打印出来成树状图的形式?于是写了如下对象分析程序: 使用方法 : import matplotlib.p...
分类:
编程语言 时间:
2014-07-27 22:50:39
阅读次数:
386
## Sphinx configuration file sample## WARNING! While this sample file mentions all available options,# it contains (very) short helper descriptions on...
分类:
其他好文 时间:
2014-07-27 22:46:29
阅读次数:
476
ACM Computer FactoryTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 5244Accepted: 1796Special JudgeDescriptionAs you know, all the computers ...
分类:
其他好文 时间:
2014-07-27 22:45:01
阅读次数:
308
一,基本运算>>> a = array([1,2,3,4])>>> aarray([1, 2, 3, 4])>>> b=arange(4)>>> barray([0, 1, 2, 3])>>> a + barray([1, 3, 5, 7])>>> a - barray([1, 1, 1, 1])>...
分类:
编程语言 时间:
2014-07-27 22:41:20
阅读次数:
295
PyDev for Eclipse 是一个功能强大且易用的 Eclipse Python IDE 插件。本文将向读者介绍 PyDev 开源项目及其安装配置方法,并在此基础上详细介绍如何利用 PyDev 插件把 Eclipse 变为功能强大且易用的 Python IDE,如何利用其进行 Python ...
分类:
编程语言 时间:
2014-07-27 22:34:39
阅读次数:
344
基于时间的盲注(time-basedblind) 测试应用是否存在SQL注入漏洞时,经常发现某一潜在的漏洞难以确认。这可能源于多种原因,但主要是因为Web应用未显示任何错误,因而无法检索任何数据。 对于这种情况,要想识别漏洞,向数据库注入时间延迟并检查服务器响应是否也已经延迟会很有帮助。时间延迟.....
分类:
数据库 时间:
2014-07-27 22:34:29
阅读次数:
405
http://blog.csdn.net/e421083458/article/details/21529969常用的命令ps -ef|grep searchd如果你开了search服务后,你命令比如 indexer search 后面都需要带上 --rotate./indexer --all./s...
分类:
Web程序 时间:
2014-07-27 22:33:39
阅读次数:
222
【Rendering with Replaced Shaders】 It works like this: the camera renders the scene as it normally would. the objects still use their materials, but t....
分类:
其他好文 时间:
2014-07-27 22:26:09
阅读次数:
185
sudo apt-get install python-software-properties python g++ makesudo add-apt-repository ppa:chris-lea/node.jssudo apt-get updatesudo apt-get install no...
分类:
Web程序 时间:
2014-07-27 22:07:19
阅读次数:
219
Python中的字典类似于Java中的Map,数据以键值对的形式存储。 字典可以用以下的方式使用: >>> phonebook = {"alice":"6100","bruce":"6230","beth":"9120"} >>> phonebook.get("alice") '610...
分类:
编程语言 时间:
2014-07-27 22:07:09
阅读次数:
259