Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.以下为补充知识,百度到的罗马数字写法:个位数举例I, 1 】II, 2】 III, 3】...
分类:
其他好文 时间:
2014-07-22 00:04:34
阅读次数:
190
安装ez_setup.py时出现了这个问题:UnicodeDecodeError: 'ascii' codec can't decode byte 0xb0 in position 1: ordinal not in range(128)Something went wrong during the...
分类:
编程语言 时间:
2014-07-21 23:27:53
阅读次数:
236
题目:Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the....
分类:
编程语言 时间:
2014-07-21 11:14:07
阅读次数:
203
maven中手动去更新jar包,是一件比较繁琐麻烦的事情,使用Range Dependency则可以省去这一步骤。 部分jar包可能会自动升级到beat版本! 官方说明文档:Dependency Version Ranges Range Meaning (...
分类:
其他好文 时间:
2014-07-21 10:30:10
阅读次数:
243
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.题解:转换的方法:从左往右扫描罗马字符,如果当前的字符对应的数字比上一个数字小,就直接加...
分类:
其他好文 时间:
2014-07-21 10:05:42
阅读次数:
223
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.题解:基本的罗马字符和数字对应如下表所示:罗马字符数字I1V5X10L50C100D50...
分类:
其他好文 时间:
2014-07-21 10:05:16
阅读次数:
286
equal_range(应用于有序区间)
--------------------------------------------------------------------------------------------------------------------------------------
描述:利用二分查找找到一个区间,区间里的所有值都等于给定值,返回的是一个pair,
分别存储区间的上界迭代器和下界迭代器
源码:
template <class ForwardIterator, c...
分类:
其他好文 时间:
2014-07-20 23:06:36
阅读次数:
263
问题1:假设我们知道汉字编码范围是0x4E00到0x9FA5,怎么从十六进制的编码转成人类可读的字呢?
问题2:怎么把unicode编码的字写入文件呢,如果直接用open()的话,会提示UnicodeEncodeError: 'ascii' codec can't encode character u'\u4e00' in position 0: ordinal not in range(128...
分类:
编程语言 时间:
2014-07-20 10:46:08
阅读次数:
732
atitit.提升开发效率---MDA 软件开发方式的革命(5)----列表查询建模
1. 配置条件字段@Conditional 1
2. 配置条件字段显示类型为range----@Conditional(displayType = displayType.rang, rangStart = rang.start, rangEnd = rang.end,op=op.range) 1
3...
分类:
其他好文 时间:
2014-07-20 00:17:55
阅读次数:
215
重装了系统(ubuntu 14.04)原来正常可用的OpenERP项目在切换到开发者模式的时候报错:UnicodeDecodeError: 'ascii' codec can't decode byte 0x?? in position 1: ordinal not in range(128)而在服...
分类:
编程语言 时间:
2014-07-19 16:02:16
阅读次数:
242