摘要: print('{},{}'.format('chuhao',20)) 阅读全文
posted @ 2019-03-04 16:23 anobscureretreat 阅读(167) 评论(0) 推荐(0)
摘要: 转为string类型 阅读全文
posted @ 2019-03-04 16:14 anobscureretreat 阅读(840) 评论(0) 推荐(0)
摘要: 将文件夹名字从 v1.0.1 修改为 v1.0.2 阅读全文
posted @ 2019-03-04 15:51 anobscureretreat 阅读(2827) 评论(0) 推荐(0)
摘要: def hb(list1,list2): result = [] while list1 and list2: if list1[0] >> [1, 2, 3, 4, 5, 7, 8, 9, 11, 13, 20] 阅读全文
posted @ 2019-03-04 11:47 anobscureretreat 阅读(1746) 评论(0) 推荐(0)
摘要: class Solution(object): def hb(self,list1,list2): result = [] while list1 and list2: if list1[0] < list2[0]: result.append(list1[0]) ... 阅读全文
posted @ 2019-03-04 11:46 anobscureretreat 阅读(130) 评论(0) 推荐(0)
摘要: class Solution(object): def addTwoNumbers(self, l1, l2): l3 = ListNode(0) current = l3 carry = 0 while l1 or l2: # 1,1 | None,1 | 1,None # Pad 0 if N... 阅读全文
posted @ 2019-03-04 10:41 anobscureretreat 阅读(134) 评论(0) 推荐(0)
摘要: class Solution(object): def twoSum(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ dictionary = dict() ... 阅读全文
posted @ 2019-03-04 10:39 anobscureretreat 阅读(151) 评论(0) 推荐(0)
摘要: class Solution(object): def lengthOfLongestSubstring(self, s): d = "" f = "" for i in range(len(s)): if s[i] not in f: f += s[i] ... 阅读全文
posted @ 2019-03-04 10:32 anobscureretreat 阅读(141) 评论(0) 推荐(0)