搜索结果
查询Tags标签: list0,共有 5条记录-
leetcode键盘行
import java.util.ArrayList; class Solution {public String[] findWords(String[] words) {ArrayList<String> list0=new ArrayList<String>();for (int i = 0; i <words.length ; i++) {int N=0;//判断是否是同一种类boolean bool=true;//判断字符串是否…
2021/10/31 23:39:41 人评论 次浏览 -
leetcode键盘行
import java.util.ArrayList; class Solution {public String[] findWords(String[] words) {ArrayList<String> list0=new ArrayList<String>();for (int i = 0; i <words.length ; i++) {int N=0;//判断是否是同一种类boolean bool=true;//判断字符串是否…
2021/10/31 23:39:41 人评论 次浏览 -
python学习笔记
1.变量声明 #变量无需类型说明 a = 1 b = 0.5 c = "hello world!" d = [1,2,3,4,5] e = ["a","b","c"] 2.列表操作 #列表的下标从0开始 list0 = [1,2,3,4,5] print(list0[0]) #即输出1#列表元素截取 list1 = list0[0:2] print(li…
2021/7/26 17:07:45 人评论 次浏览 -
python学习笔记
1.变量声明 #变量无需类型说明 a = 1 b = 0.5 c = "hello world!" d = [1,2,3,4,5] e = ["a","b","c"] 2.列表操作 #列表的下标从0开始 list0 = [1,2,3,4,5] print(list0[0]) #即输出1#列表元素截取 list1 = list0[0:2] print(li…
2021/7/26 17:07:45 人评论 次浏览 -
python切片原理
#slice has three params[start,stop,step]if step = 0:return error elif step > 0:if start is on the left of the stop,:return [start,start+step,...,until stop,not include stop]if start is on the right of the stop,including start = stop:return [] else …
2021/6/11 22:24:16 人评论 次浏览