码迷,mamicode.com
首页 >  
搜索关键字:python return    ( 192001个结果
android模块
网络模块1、URL--------openStream() return InputStream--------openConnection() return URLConnection2、URLConnection--------getInputStream()用于获取URLConne...
分类:移动开发   时间:2014-07-22 23:14:54    阅读次数:388
【Python】入门 list有些不懂
#-*- coding: cp936 -*- #首行加这个 代码里就可以加注释raw_input("Press Enter Exit") #最后一行加这个,可以直接点击脚本运行脚本l[a:b] = [c] #即用右边的[c]完全替换a到b-1个元素http://www.cnblogs.com/zhe...
分类:编程语言   时间:2014-07-22 23:14:54    阅读次数:369
一个xss利用平台
这是一个project里面收到的cookies这是设置,支持keep session和用户自定义js自带测试代码部分使用python + django,部署0难度。代码在这里:https://github.com/virusdefender/xsser
分类:其他好文   时间:2014-07-22 23:14:53    阅读次数:379
virtualenv -- python虚拟环境
有人说:virtualenv、fabric 和 pip 是 pythoneer 的三大神器。不管认不认同,至少要先认识一下,pip现在倒是经常用到,virtualenv第一次听说,不过,总得尝试一下吧。一、安装pip install virtualenv因为我已经安装了pip,那么就直接用pip来安...
分类:编程语言   时间:2014-07-22 23:13:55    阅读次数:477
山东省第三届acm
#include #include using namespace std;int s[4],p[4];long long llmax(long long a,long long b){ return a>b?a:b;}int main(){ int t; cin>>t; int c=1; whil...
分类:其他好文   时间:2014-07-22 23:13:54    阅读次数:307
cmake 学习笔记(一) .
最大的Qt4程序群(KDE4)采用cmake作为构建系统Qt4的python绑定(pyside)采用了cmake作为构建系统开源的图像处理库 opencv 采用cmake 作为构建系统...看来不学习一下cmake是不行了,一点一点来吧,找个最简单的C程序,慢慢复杂化,试试看:例子一单个源文件 ma...
分类:其他好文   时间:2014-07-22 23:13:14    阅读次数:423
[HDU 1166 敌兵布阵] 线段树 或 树状数组
1 #include 2 #include 3 #include 4 using namespace std; 5 int n,C[50005]; 6 //-------------------------- 7 int lowbit(int x){ 8 return x&-x; 9 }1...
分类:其他好文   时间:2014-07-22 23:12:33    阅读次数:311
[leetcode]Insertion Sort List @ Python
原题地址:http://oj.leetcode.com/problems/insertion-sort-list/题意:对链表进行插入排序。解题思路:首先来对插入排序有一个直观的认识,来自维基百科。 代码循环部分图示:代码:class Solution:# @p...
分类:编程语言   时间:2014-07-22 23:11:32    阅读次数:411
python函数式编程
python函数式编程
分类:编程语言   时间:2014-07-22 23:11:32    阅读次数:428
20140429
1、单链表循环体用while(p->next!=NULL)而不用while(p!=NULL)的原因 node *Find_MidNode(node *head){ if(head->next==NULL||head->next->next==NULL) return head->next; node...
分类:其他好文   时间:2014-07-22 23:11:15    阅读次数:374
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!