码迷,mamicode.com
首页 >  
搜索关键字:python function    ( 188437个结果)
python海明距离 - 5IVI4I_I_60Y的日志 - 网易博客
python海明距离 - 5IVI4I_I_60Y的日志 - 网易博客python海明距离 2009-10-01 09:50:41|分类: Python |标签: |举报 |字号大中小订阅def hammingDist(s1, s2): assert len(s1) == len(s2) retur...
分类:编程语言   时间:2014-06-11 22:02:15    阅读次数:316
[leetcode]Merge k Sorted Lists @ Python
原题地址:https://oj.leetcode.com/problems/merge-k-sorted-lists/题意:Mergeksorted linked lists and return it as one sorted list. Analyze and describe its com...
分类:编程语言   时间:2014-06-11 21:57:07    阅读次数:399
python数据挖掘领域工具包 - wentingtu - 博客园
python数据挖掘领域工具包 - wentingtu - 博客园python数据挖掘领域工具包原文:http://qxde01.blog.163.com/blog/static/67335744201368101922991/Python在科学计算领域,有两个重要的扩展模块:Numpy和Scipy...
分类:编程语言   时间:2014-06-11 13:27:30    阅读次数:481
python使用struct处理二进制
有的时候需要用python处理二进制数据,比如,存取文件,socket操作时.这时候,可以使用python的struct模块来完成.可以用 struct来处理c语言中的结构体.struct模块中最重要的三个函数是pack(), unpack(), calcsize()pack(fmt, v1, v2...
分类:编程语言   时间:2014-06-11 13:23:29    阅读次数:325
Python Open Flash Chart (pyOFC2) — Home
Python Open Flash Chart (pyOFC2) — HomepyOFC2 Python Open Flash Chart 2
分类:编程语言   时间:2014-06-11 13:15:46    阅读次数:206
编程语言中的除法
拥有c背景的程序员一定熟悉传统的除法,也就是说,对整形操作数,会执行“地板除”(floor, 取比商小的最大整型)。例如5除以2等于2.5,其中“2”就称为商的地板;即“地板除”的结果;传统除法: 如果是整型除法,传统除法会舍去小数部分,返回一个整形(地板除),如果操作数之一是浮点型;则执行真...
分类:编程语言   时间:2014-06-11 12:34:12    阅读次数:293
js前端验证时间大小
replace(/\-/g, "\/")是根据验证表达式把日期转化成长日期格式 1 function checkStartTimeAndEndTime(startTime, endTime) { 2 var sTime = new Date(startTime.replace("/\-/g"...
分类:Web程序   时间:2014-06-11 12:32:59    阅读次数:313
leetcode--Generate Parentheses
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))...
分类:其他好文   时间:2014-06-11 12:25:51    阅读次数:239
【转】js中select的基本操作
判断select选项中是否存在Value="paraValue"的Item// 1.判断select选项中 是否存在Value="paraValue"的Item function jsSelectIsExitItem(objSelect, objItemValue) { ...
分类:Web程序   时间:2014-06-11 12:18:45    阅读次数:191
Ext.MessageBox消息框
Ext JS消息提示框主要包括:alert、confirm、prompt、show 1、Ext.MessageBox.alert() 调用格式: alert( String title, String msg, [Function fn], [Object scope] ) 参数说明: t...
分类:其他好文   时间:2014-06-11 12:16:46    阅读次数:323
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!