上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: class Solution(object): def maxArea(self, height): """ :type height: List[int] :rtype: int """ length=len(height) left=0 right=length-1 ... 阅读全文
posted @ 2018-01-07 16:14 PirateLHX 阅读(127) 评论(0) 推荐(0)
摘要: 加1s就可以了 原网页:https://www.youtube.com/watch?v=1rbkR66i3Xo 下载网页:https://www.youtube1s.com/watch?v=1rbkR66i3Xo 阅读全文
posted @ 2018-01-02 16:08 PirateLHX 阅读(1129) 评论(0) 推荐(0)
摘要: class Solution(object): def merge(self, nums1, m, nums2, n): """ :type nums1: List[int] :type m: int :type nums2: List[int] :type n: int :rtype: vo... 阅读全文
posted @ 2017-12-30 20:59 PirateLHX 阅读(121) 评论(0) 推荐(0)
摘要: class Solution(object): def deleteDuplicates(self, head): """ :type head: ListNode :rtype: ListNode """ tmp=head while tmp: while tmp.n... 阅读全文
posted @ 2017-12-30 20:29 PirateLHX 阅读(106) 评论(0) 推荐(0)
摘要: Description You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct way 阅读全文
posted @ 2017-12-30 20:08 PirateLHX 阅读(146) 评论(0) 推荐(0)
摘要: # -*- coding: utf-8 -*- """ Created on Thu Jun 22 16:44:27 2017 @author: sakurai """ import numpy as np import cv2 import screeninfo if __name__ == '__main__': screen_id = 2 is_color = Fal... 阅读全文
posted @ 2017-12-26 14:32 PirateLHX 阅读(7770) 评论(0) 推荐(0)
摘要: class Solution(object): def lengthOfLastWord(self, s): """ :type s: str :rtype: int """ res=s.split() if len(res)!=0: return len(res[-1... 阅读全文
posted @ 2017-12-23 19:00 PirateLHX 阅读(102) 评论(0) 推荐(0)
摘要: resize会对原值进行修改并且返回是None,reshape不会对原值进行修改,返回是修改后结果,如下: 阅读全文
posted @ 2017-12-21 20:06 PirateLHX 阅读(8325) 评论(0) 推荐(0)
摘要: 用 OpenCV 标注 bounding box 主要用到下面两个工具——cv2.rectangle() 和 cv2.putText()。用法如下: 阅读全文
posted @ 2017-12-21 14:36 PirateLHX 阅读(408) 评论(0) 推荐(0)
摘要: 主要原则:list[<start>:<stop>:<step>]但要注意若step<0,则start默认是从最后一个数开始,若step>0,则start默认从第一个数开始,下面是ipython上面的实验: 阅读全文
posted @ 2017-12-21 13:51 PirateLHX 阅读(217) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 10 下一页