码迷,mamicode.com
首页 >  
搜索关键字:python function    ( 188437个结果)
python 学习心得-3
学习了元祖,写了小程序。#encoding = utf-8 a = ("success","false","what")print "first"print a #print all stringprint "\n"print "second"print a[:] #pirnt all string...
分类:编程语言   时间:2014-06-11 09:07:45    阅读次数:322
[leetcode]Pow(x, n) @ Python
原题地址:https://oj.leetcode.com/problems/powx-n/题意:Implement pow(x,n).解题思路:求幂函数的实现。使用递归,类似于二分的思路,解法来自Mark Allen Weiss的《数据结构与算法分析》。代码:class Solution: #...
分类:编程语言   时间:2014-06-11 08:59:33    阅读次数:317
[leetcode]Edit Distance @ Python
原题地址:https://oj.leetcode.com/problems/edit-distance/题意:Given two wordsword1andword2, find the minimum number of steps required to convertword1toword2....
分类:编程语言   时间:2014-06-11 08:58:49    阅读次数:293
js一些经典知识总结
function factorial(num){ if(num<=1){ return 1; }else{ return num * arguments.callee(num-1); //指向一个正在执行函数的指针,可以实现对函数的递归...
分类:Web程序   时间:2014-06-11 08:56:56    阅读次数:244
js方法的命名不能使用表单元素的名称或ID
今天在写页面的时候,遇到一个关于js方法的命名问题,先看下代码:表单元素如下:js方法如下:function isCulture(obj) { alert(123);}但是当页面执行onchange事件时,Firebug控制台报出异常:TypeError: isCulture is not a...
分类:Web程序   时间:2014-06-11 08:49:31    阅读次数:264
poj2406 周期
脑残wa了一次 1 var s:ansistring; 2 ans,i,k,m:longint; 3 pre:array[0..1010000] of longint; 4 function max(x,y:longint):longint; 5 begin 6 if x>...
分类:其他好文   时间:2014-06-11 08:30:14    阅读次数:179
eclipse-python
2008 年 11 月 27 日PyDev for Eclipse 是一个功能强大且易用的 Eclipse Python IDE 插件。本文将向读者介绍 PyDev 开源项目及其安装配置方法,并在此基础上详细介绍如何利用 PyDev 插件把 Eclipse 变为功能强大且易用的 Python IDE...
分类:编程语言   时间:2014-06-11 08:12:49    阅读次数:435
【javascript基础】8、闭包
原文:【javascript基础】8、闭包前言函数和作用域啥的我们前面已经了解了,现在就要学习闭包了,这是一个挺晦涩的知识点,初学者可能会感觉不好理解,但是高手都不不以为然了,高手就给我提点意见吧,我和新手一起来学习什么是闭包。例子先不说定义,先看一个题,看看大家能得出正确的结果不,function...
分类:编程语言   时间:2014-06-11 08:08:53    阅读次数:318
Python學習筆記 第一課 Basic Information of Python
因學校習作需要而研究Python使用教材:Python3.4.1 Official Documentation - The Python Standard LibraryChapter 1Basic Information of Python1) Nature of Python: a high-l...
分类:编程语言   时间:2014-06-11 07:58:49    阅读次数:218
python操作mysql
一、安装第三方模块:MYSQLdb 1、地址:http://sourceforge.net/projects/mysql-python/ 新的可用地址:https://pypi.python.org/pypi/MySQL-python/1.2.4 2、安装 安装前:(si...
分类:数据库   时间:2014-06-10 00:23:28    阅读次数:372
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!