Python 获取Facebook特定用户的粉丝数...
分类:
编程语言 时间:
2014-08-09 09:08:47
阅读次数:
486
Python 获取Facebook特定用户的feed和link...
分类:
编程语言 时间:
2014-08-09 09:08:27
阅读次数:
848
在这个例子的Python源码里,把从动态连接库获取到的函数地址赋值给变量MessageBox,然后通过MessageBox就可以调用动态连接库里的函数了。windll.user32是实现了加载动态连接库user32.dll,而windll.user32.MessageBoxW是实现了从动态连接库user32.dll获取到函数MessageBoxW的地址。如果获取一个在动态连接库里不存在的函数时,c...
分类:
其他好文 时间:
2014-08-09 09:07:37
阅读次数:
234
Class:def scope_test(): def do_local(): spam = "local spam" def do_nonlocal(): nonlocal spam spam = "nonlocal spam" def ...
分类:
编程语言 时间:
2014-08-09 09:02:47
阅读次数:
254
Here I share with you a demo for python map, reduce and filter functional programming that
owned by me(Xiaoqiang).
I assume there are two DB tables, that `file_logs` and `expanded_attrs` which re...
分类:
编程语言 时间:
2014-08-09 04:57:17
阅读次数:
525
之前一直在学php,没想到考察的是python。。恶补了一下,幸好上课的时候看了一些基本语法和系统编程、linux里面关于线程的描述,最后还是做出来了。第一题:Flag经base64编码后,再进行移位加密得到密文:IVUBNJmwAx5Wq29zXTekNyde。移位加密位移量未知。编写脚本得到flag。很..
分类:
其他好文 时间:
2014-08-09 02:46:18
阅读次数:
297
Python的由来及发展史Python是一种解释型、面向对象、动态数据类型的高级程序设计语言,详细说明1989年Guido开始写Python语言的编译/解释器,1991年,第一个Python编译器(同时也是解释器)诞生,详细说明Python安装及应用在Python官网的下载页有两个版本3.x和2.x,为什么会有两..
分类:
编程语言 时间:
2014-08-09 02:42:08
阅读次数:
350
安装django-jfu请参考:https://pypi.python.org/pypi/django-jfu利用django-jfu上传文件,如果遇到相同文件名称会自动加"_"1.jpg后缀,如2d7f977e6b36ec616b4e31a33d988c13_1.jpg,下面我们把这个功能去掉,让它直接覆盖原文件。文件:views.pydefupload(request):instance.save(..
分类:
其他好文 时间:
2014-08-09 02:41:28
阅读次数:
1176
Django 中的 model 继承和 Python 中的类继承非常相似,只不过你要选择具体的实现方式:让父 model 拥有独立的数据库;还是让父 model 只包含基本的公共信息,而这些信息只能由子 model 呈现。Django中有三种继承关系:1.通常,你只是想用父 model 来保存那些你...
分类:
其他好文 时间:
2014-08-09 02:28:57
阅读次数:
341
using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Xml;namesp...
分类:
其他好文 时间:
2014-08-09 02:25:47
阅读次数:
203