码迷,mamicode.com
首页 >  
搜索关键字:numbers range    ( 16974个结果
[LeetCode] Permutations
Given a collection of numbers, return all possible permutations.For example, [1,2,3] have the following permutations: [1,2,3], [1,3,2], [2,1,3], [2,3,...
分类:其他好文   时间:2014-07-26 01:38:56    阅读次数:214
excel读取
#coding=utf-8import xlrdimport osimport operatorfxls = 'mobile.xlsx'bp = xlrd.open_workbook(fxls)shxrange = range(bp.nsheets)try: sh = bp.sheet_b...
分类:其他好文   时间:2014-07-26 01:36:36    阅读次数:195
【leetcode刷题笔记】Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:其他好文   时间:2014-07-26 00:23:26    阅读次数:242
Phone List
Time Limit:1000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionGiven a list of phone numbers, determine if it is consistent ...
分类:其他好文   时间:2014-07-26 00:00:26    阅读次数:480
利用range() 控制循环
s = ['a','b','c','d','e']for i in range(len(s)):... if i < len(s)-1:... print s[i]abcdfor i in range(len(s)):... if i < len(s)-1:... print s[i+1]...bc...
分类:其他好文   时间:2014-07-25 14:20:51    阅读次数:198
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: “object”未包含“get_Range”的定义
asp.net操作Excel合并单元格时,抛出了异常: Microsoft.CSharp.RuntimeBinder.RuntimeBinderException: “object”未包含“get_Range”的定义 在 CallSite.Target(Closure , CallSite , ComObject , Object , Object ) 在 System.Dynamic.U...
分类:其他好文   时间:2014-07-25 11:03:01    阅读次数:460
Asp.net操作Excel常用方法及属性
// 设置单元格格式为文本 range.NumberFormatLocal = "@"; // 获取Excel多个单元格区域:本例做为Excel表头 range = (Range)worksheet.get_Range("A1", "E1"); // 单元格合并动作 range.Merge(0); // Excel单元格赋值 worksheet.Cells[1, 1] =...
分类:Web程序   时间:2014-07-25 10:58:01    阅读次数:253
Excel 删除行数据的同时删除当前行中的对象
Private Sub Worksheet_Change(ByVal Target As Range)Dim srg As Range, x As ShapeIf Target.Count = Target.EntireRow.Cells.Count Then For Each x In Shape...
分类:其他好文   时间:2014-07-25 03:50:35    阅读次数:237
LeetCode "Longest Consecutive Sequence"
Comparison-based sorting takes O(nlgn), so hashset is a good idea. After keeping records of all numbers in the hashset, you start checking each number...
分类:其他好文   时间:2014-07-25 03:40:54    阅读次数:305
每日一道题2014/7/24
Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the...
分类:其他好文   时间:2014-07-25 03:15:41    阅读次数:176
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!