码迷,mamicode.com
首页 >  
搜索关键字:div    ( 119410个结果
Roman numerals
Roman numerals罗马数字的题目, 注意几个关键的数字即可: (100, 400, 500, 900) -> ('C', 'CD', 'D', 'CM'); (10, 40, 50, 90)->('X', 'XL', 'L', 'XC') 1 def checkio(data): 2 .....
分类:其他好文   时间:2014-08-05 11:06:19    阅读次数:232
The Flat Dictionary
The Flat Dictionary原来的代码没处理dict为空的情况 1 def flatten(dictionary): 2 #[] is a list 3 #() is a tuple 4 stack = [((), dictionary)] 5 6 res...
分类:其他好文   时间:2014-08-05 11:05:59    阅读次数:204
CloseableHttpClient 源码
public abstract class CloseableHttpClient implements HttpClient, Closeable { private final Log log = LogFactory.getLog(getClass()); protected ab...
分类:其他好文   时间:2014-08-05 11:04:39    阅读次数:471
MVC4 笔记
1.Microsoft.Web.Helpers.UrlBuilder2.Microsoft.Web.Mvc.AreaHelperspublic static string GetAreaName(RouteBase route);public static string GetAreaName(Ro...
分类:Web程序   时间:2014-08-05 11:03:49    阅读次数:218
HDU 2041 超级楼梯
简单的递推,上到第M层,可以从第M-1层上来,也可以从M-2层上来,所以上到第M层的方法等于上到第M-1层的方法加上上到第M-2层的方法。递推公式:F(M)=F(M-1)+F(M-2) F(1)=1,F(2)=1,F(3)=2打表 1 #include 2 int a[45]; 3 int main...
分类:其他好文   时间:2014-08-05 11:02:59    阅读次数:193
How to find friends
How to find friends思路简单,编码不易 1 def check_connection(network, first, second): 2 link_dictionary = dict() 3 4 for link in network: 5 dr...
分类:其他好文   时间:2014-08-05 11:02:19    阅读次数:245
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
Min and Max
Min and Max需要处理不同数据类型; 另外*args, 表示的是位置参数, *kwargs表示的是key参数, args的类型为tuple类型, 参数为min(3, 2)时, args为(3, 2), 参数为min([3, 2])时, args为([3, 2], );列表解析为[i for ...
分类:其他好文   时间:2014-08-05 10:59:49    阅读次数:150
java日期正则表达式精准校验
function checkDate(obj){ var date=obj.value;var re = new RegExp("(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578...
分类:编程语言   时间:2014-08-05 10:59:19    阅读次数:228
oncopy和onpaste
在Javascript中,有对应的事件能够监听复制和粘贴,那就是oncopy和onpaste。 oncopy:demo: 你能复制我吗?使用场景:非常多站点上的页面内容是不同意复制的,这样能够防止用户或者程序恶意的去抓取页面数据。曾经的起点阅读小说时,就是不同意复制内容,如今更狠,把左键选...
分类:其他好文   时间:2014-08-05 10:58:49    阅读次数:166
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!