码迷,mamicode.com
首页 >  
搜索关键字:python objects all    ( 160304个结果)
计算机科学及编程导论(5)浮点数和二分法
1. Python的数字类型Python的数字类型分为两类:整型(int)以及浮点型(float)。对于Python来说,整型可以取无限大。Python的整型可以取任意精度例如,可以输入2**1000次方,仍然会返回正确结果。Python的浮点类型按照IEE754标准,对于64位的计算机而言,表示成...
分类:其他好文   时间:2014-06-11 22:04:15    阅读次数:321
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
[cc150] Find all valid combinations of n-pairs of parentheses
Implement an algorithm to print all valid ( properly opened and closed) combinations of n-pairs of parentheses.思路:比如 n = 3, ((())) 就是一个valid combinati...
分类:其他好文   时间:2014-06-11 13:19:00    阅读次数:306
Python Open Flash Chart (pyOFC2) — Home
Python Open Flash Chart (pyOFC2) — HomepyOFC2 Python Open Flash Chart 2
分类:编程语言   时间:2014-06-11 13:15:46    阅读次数:206
oracle删除数据库表空间
步骤一: 删除userdrop user ×× cascade说明: 删除了user,只是删除了该user下的schema objects,是不会删除相应的tablespace的。步骤二: 删除tablespaceDROP TABLESPACE tablespace_name INCLUDING C...
分类:数据库   时间:2014-06-11 12:49:07    阅读次数:277
编程语言中的除法
拥有c背景的程序员一定熟悉传统的除法,也就是说,对整形操作数,会执行“地板除”(floor, 取比商小的最大整型)。例如5除以2等于2.5,其中“2”就称为商的地板;即“地板除”的结果;传统除法: 如果是整型除法,传统除法会舍去小数部分,返回一个整形(地板除),如果操作数之一是浮点型;则执行真...
分类:编程语言   时间:2014-06-11 12:34:12    阅读次数:293
Careercup | Chapter 1
1.1Implement an algorithm to determine if a string has all unique characters. What if you cannot use additional data structures?字符串问题,需要先确定是不是只有ASCII码...
分类:其他好文   时间:2014-06-11 12:27:53    阅读次数:247
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!