码迷,mamicode.com
首页 >  
搜索关键字:python 效率    ( 164453个结果)
[leetcode]Search Insert Position @ Python
原题地址:https://oj.leetcode.com/problems/search-insert-position/题意:Given a sorted array and a target value, return the index if the target is found. If n...
分类:编程语言   时间:2014-06-11 11:28:40    阅读次数:349
[leetcode]Plus One @ Python
原题地址:https://oj.leetcode.com/problems/plus-one/题意:Given a non-negative number represented as an array of digits, plus one to the number.The digits are...
分类:编程语言   时间:2014-06-11 11:25:27    阅读次数:304
python列表推导式
原来这么长时间没写了,今天阅读《集体智慧编程》的时候,发现了python的一个功能,列表推导式。留个存[ 表达式 for 变量 in 列表] 或者[表达式 for 变量 in 列表 if 条件]例如:ll=[1,2,3,4,5,6,7,8,9,0]print (v*10 for v in ll if...
分类:编程语言   时间:2014-06-11 11:23:16    阅读次数:330
nodejs addon用c++
1, 安装nodejs安装python。2,安装node-gyp:sudo npm install -g node-gyp3,写代码:新建一个目录,创建hello.cc文件,然后创建binding.gyp文件:hello.cc#include#includeusingnamespace v8;Han...
分类:编程语言   时间:2014-06-11 11:10:24    阅读次数:380
[转载]Jenkins中执行batch和Python
Jenkins的job->build 支持Ant,maven,windows batch和Shell, 但是我们知道python,perl,ruby等脚本其实也是shell脚本,所以这里的Shell可以扩展为python,perl,ruby等。例如: 下面执行windows batch 和pytho...
分类:编程语言   时间:2014-06-11 10:03:49    阅读次数:296
企业知识管理系统
概述 4U知识管理系统基于全新的理念设计,是为了摆脱传统知识生产过程中的种种不便和束缚,宗旨在于最大化的提高知识生产和运用效率,通过内容与形态的分离,实现"把时间留给创作而不是过程",一方面能最大化的提高知识创作者的知识生产效率,另一方面能迅速的提升企业的专业化、规范化知识交付能力;另外,通过特有的...
分类:其他好文   时间:2014-06-11 09:46:39    阅读次数:391
[leetcode]Rotate Image @ Python
原题地址:https://oj.leetcode.com/problems/rotate-image/题意:You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Fo...
分类:编程语言   时间:2014-06-11 09:43:59    阅读次数:1264
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!