names = ["金角大王","黑姑娘","rain","eva","狗蛋","银角大王","eva","鸡头"]eva_1 = names.index("eva")new_list = names[eva_1+1:]new_eva = new_list.index("eva")eva_2 = e ...
分类:
其他好文 时间:
2019-10-04 18:34:00
阅读次数:
159
11 和 42 本质上都是木桶原理: 11 如何才能存最多的水? 假设 a[left] < a[right] , total = a[left] *(right-left) , 那么 right -1, right-2 位置 都比 total 小, 此时就没必要move right 了, 因为所有的 ...
分类:
移动开发 时间:
2019-09-29 09:33:22
阅读次数:
76
1 #请用代码实现:利用下划线将列表的每一个元素拼接成字符串,li=[‘alex’, ‘eric’, ‘rain’] 2 3 li = ['alex','eric','rain'] 4 #方法1 5 print(li[0]+'_'+li[1]+'_'+li[2]+'_') 6 print(' 方法1... ...
分类:
其他好文 时间:
2019-09-25 12:45:40
阅读次数:
76
1 ''' 2 3 针对列表 4 5 names=['金角大王', '黑姑娘', 'rain', 'eva', '狗蛋', '银角大王', 'eva','鸡头'] 6 7 进入以下操作 8 9 通过names.index()的方法返回第2个eva的索引值 10 11 把以上的列表通过切片的形式实现反... ...
分类:
其他好文 时间:
2019-09-23 18:13:52
阅读次数:
86
bulk. n. 大量 reluctant. adj. 不情愿的 terrorist. n. 恐怖分子 recognition. n. 认出 tout.v. 兜售 conceal.v. 隐藏 drastic. adj. 猛烈的 seam. n. 矿层 jealousy. n. 嫉妒 ripple. ...
分类:
其他好文 时间:
2019-09-22 01:16:15
阅读次数:
159
Question Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after ...
分类:
移动开发 时间:
2019-09-14 00:19:04
阅读次数:
125
Everybody loves the visual effect of the falling binary code known as ” Rain ” in The Matrix. In this article, we gonna show you an easy way to create ...
分类:
其他好文 时间:
2019-09-03 13:31:07
阅读次数:
153
Rain on your Parade Time Limit: 6000/3000 MS (Java/Others) Memory Limit: 655350/165535 K (Java/Others)Total Submission(s): 6752 Accepted Submission(s) ...
分类:
编程语言 时间:
2019-09-03 09:31:01
阅读次数:
79
Muddy Fields Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 13386 Accepted: 4923 Description Rain has pummeled the cows' field, a rectangu ...
分类:
其他好文 时间:
2019-09-01 16:40:15
阅读次数:
58
https://leetcode-cn.com/problems/trapping-rain-water/ 给定 n 个非负整数表示每个宽度为 1 的柱子的高度图,计算按此排列的柱子,下雨之后能接多少雨水。 上面是由数组 [0,1,0,2,1,0,1,3,2,1,2,1] 表示的高度图,在这种情况下 ...
分类:
其他好文 时间:
2019-08-24 18:19:13
阅读次数:
93