码迷,mamicode.com
首页 >  
搜索关键字:ordinal not in range    ( 9621个结果
Python 排序算法的实现
冒泡排序:1 def bubble(l):2 length = len(l)3 for i in range(length):4 for j in range(i+1, length):5 if l[i] > l[j]:6 ...
分类:编程语言   时间:2014-08-06 22:23:07    阅读次数:223
让python代码运行的更快
原文地址:http://infiniteloop.in/blog/quick-python-performance-optimization-part-i/ 往往小的改变却能带来大的性能提升, 下面说下python中的几点性能优化。 1.使用timeit模块 2.减少函数的调用次数 3.使用xrange代替range 4.''.join()代替+,+= 5.while 1 代替 wh...
分类:编程语言   时间:2014-08-06 19:28:32    阅读次数:247
C程序设计语言部分习题
1:编写一个程序,确定分别由signed ,unsigned 限定的char short long int的取值范围。采用打印标准头文件中的相应值以及直接计算两种方式实现。头文件的实现方式:#include #include /*determin range of int types*/int ma...
分类:其他好文   时间:2014-08-06 14:14:51    阅读次数:229
crusher plant and mobile plant
We hold expertise in manufacturing a wide range of Industrial machines Sand Making Machine that find application in various purposes. Manufactured as ...
分类:其他好文   时间:2014-08-06 11:42:11    阅读次数:271
[Golong]学习笔记(一) 基础知识
Go编程基础 Go的内置关键字(25个) 不多 break default func interface select case defer go map struct chan else goto package switch const fallthrough if range type continute for import return var Go的注释方...
分类:其他好文   时间:2014-08-06 01:56:50    阅读次数:313
Leetcode--Roman to Integer
Problem Description: Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 分析:题目的意思是将罗马数字转化成整数,首先是在网上找到关于罗马数字表示法的规则如下:  1、计数方法:① 罗马数字就...
分类:其他好文   时间:2014-08-05 22:45:10    阅读次数:283
Python学习第二天数组
1:Python定义数组:a=[0,1,2,3,4] ; 打印数组list(a); 这时:a[0]=0, a[1]=1, a[[2]=2......1.1:如果想定义一个很长的数组可以用到python函数range a=range(1000)生成1000个元素的一维数组, list(a) 打印数组显...
分类:编程语言   时间:2014-08-05 15:39:29    阅读次数:251
Roman to Integer
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999. 1 public class Solution { 2 public int ...
分类:其他好文   时间:2014-08-05 11:02:09    阅读次数:242
Tair LDB基于Prefixkey的范围查找性能优化项目提议方案
基于prefix bloomfilter的过滤思想和get_range接口数据的特点,在导师的指导下,提出如下的简单方案,对get_range接口的范围查找过程进行优化,使得能够根据prefix进行过滤,减少无效的磁盘IO。...
分类:数据库   时间:2014-08-04 14:35:57    阅读次数:248
Python UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 33: ordinal not in range
Python2.7在Windows上一个bug,UnicodeDecodeError: 'ascii' codec can't decode byte 0xc4 in position 33: ordinal not in range(128)...
分类:编程语言   时间:2014-08-04 14:33:57    阅读次数:426
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!