ICode9

精准搜索请尝试: 精确搜索
  • leetcode键盘行2021-10-31 23:34:28

    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;//判断是否是同一种类

  • python学习笔记2021-07-26 16:02:17

    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(list1) #即输出[1,2,3] #列表添加元素 list0.app

  • python切片原理2021-06-11 21:33:47

    #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

  • ECNU 3150 线性表去重2021-01-23 19:32:23

    ECNU 3150 线性表去重 链接 https://acm.ecnu.edu.cn/problem/3450 题目 单点时限: 2.0 sec 内存限制: 256 MB 给一个 n个节点的线性表,将里面重复元素去除,并从小到大排序输出。 输入格式 第一行输入一个整数 n 。 第二行输入 n 个整数 以空格隔开。 输出格式 输出为一行 m 个数

  • Python 冒泡程序2020-09-03 22:01:23

    看了c的,用Python写下 list0 = [3,42, 6, 7, 100,13]a=''b=''j=1class Solution: def findSubsequences(self, list): h = len(list0) while j < h: for i in range(h-1): if list[i] > list[i + 1]:

  • thinkphp涉及多张表的分页查询2020-07-02 11:06:47

    原理 用thinkphp中的数组分页方法,分别查出两张表对应的数据,然后合并分页 代码 ` $list1 = $model->select(); $list2 = $model->select(); //数组合并 用于分页查询 有分类的在无分类之前 $list0 = array_merge($list1,$list2); $count = count($list0); $P

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有