码迷,mamicode.com
首页 >  
搜索关键字:python 好用法    ( 135044个结果
python functools模块
functools.partial作用:functools.partial 通过包装手法,允许我们 "重新定义" 函数签名用一些默认参数包装一个可调用对象,返回结果是可调用对象,并且可以像原始对象一样对待冻结部分函数位置函数或关键字参数,简化函数,更少更灵活的函数参数调用#args/keywords...
分类:编程语言   时间:2014-06-13 13:15:42    阅读次数:252
[leetcode]Count and Say @ Python
原题地址:https://oj.leetcode.com/problems/count-and-say/题意:The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 11...
分类:编程语言   时间:2014-06-13 06:23:26    阅读次数:366
第十一届GPCT杯大学生程序设计大赛完美闭幕
刚刚过去的周六(6月7号)是今年高考的第一天,同时也是GPCT杯大学生程序设计大赛颁奖的日子,下面我们用图文再回顾一下本次大赛颁奖的过程.从获奖结果统计看,在大学生群体中C++、Java、C#、Python分别以38%、32%、12%排列前3,而传统大学编程语言大户C语言占比仅为6%,也说明面向对象...
分类:其他好文   时间:2014-06-13 00:55:53    阅读次数:244
[leetcode]Trapping Rain Water @ Python
原题地址:https://oj.leetcode.com/problems/trapping-rain-water/题意:Givennnon-negative integers representing an elevation map where the width of each bar is ...
分类:移动开发   时间:2014-06-12 23:35:22    阅读次数:409
python version 2.7 required,which was not found in the registry
原地址:http://www.cnblogs.com/thinksasa/archive/2013/08/26/3283695.html安装PIL-1.1.7.win32-py2.7的时候,不能再注册表中识别出来python2.7方法:新建一个register.py 文件,把一下代码贴进去,保存##...
分类:编程语言   时间:2014-06-12 23:25:53    阅读次数:309
[leetcode]Multiply Strings @ Python
原题地址:https://oj.leetcode.com/problems/multiply-strings/题意:Given two numbers represented as strings, return multiplication of the numbers as a string.N...
分类:编程语言   时间:2014-06-12 21:43:03    阅读次数:344
[leetcode]Jump Game @ Python
原题地址:https://oj.leetcode.com/problems/jump-game/题意:Given an array of non-negative integers, you are initially positioned at the first index of the arr...
分类:编程语言   时间:2014-06-12 18:04:54    阅读次数:540
windows7 32位安装easy_intall
前提条件安装完python(我安装的是2.7版本)安装完python后,把目录加入到环境变量setPATH=%PATH%;C:\Python27https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py打开这个页面后复制全部内容到本地目录,保存为easy_instll.py文件进行easy_install模块的安装安装..
分类:Windows程序   时间:2014-06-10 23:54:37    阅读次数:436
python 之初学者的代码示例(短小精悍)(一)
学习Python也有个把月了,最近整理自己初学的代码示例,一个是为了增加自己对细节的把握,一个是让像我一样的初学者能够熟练地使用基础,基础的重要性就不说了,我希望自己能够把这些精巧的小而短的示例分享给大家,共同进步#help(execfile)Helponbuilt-infunctionexecfileinmo..
分类:编程语言   时间:2014-06-10 23:27:51    阅读次数:383
Python学习之使用Python操作Redis数据库
最近在写一个检查一台服务器上所有游戏区服配置文件中redis某个key值大小的脚本,本打算使用shell+awk+sed的方式去解决这个问题,但是由于redis的配置信息是php数组形式.shell脚本一时没有写出来,就请教他人帮忙写了个python脚本,但是自己python不是很精通,于是按照脚本中涉及到..
分类:数据库   时间:2014-06-10 22:50:12    阅读次数:360
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!