码迷,mamicode.com
首页 >  
搜索关键字:remove array    ( 37569个结果
关于numpy.choose()
np.choose(a, choices, out=None, mode='raise'):按照序号a对choices中的数进行选择。 a: index array,其中的数必须是整数 mode=‘raise’,表示a中数必须在[0,n-1]范围内 mode=‘wrap’,a中数可以是任意的整数(s ...
分类:其他好文   时间:2021-03-16 13:42:32    阅读次数:0
0823. Binary Trees With Factors (M)
Binary Trees With Factors (M) 题目 Given an array of unique integers, arr, where each integer arr[i] is strictly greater than 1. We make a binary tree u ...
分类:其他好文   时间:2021-03-15 11:24:45    阅读次数:0
在磁盘中找到关键字文件 并删除
# coding=utf-8import osn = 0for root, dir, files in os.walk('.'): for name in files: if ("final" not in name): n+=1 print(n,name) os.remove(os.path.jo ...
分类:其他好文   时间:2021-03-15 11:04:56    阅读次数:0
数组的使用
数组的使用 For-Each 循环 普通的for循环 数组作方法入参 数组做返回值 package com.liuqi.array; public class ArrayDemo04 { public static void main(String[] args) { int[] arrays = ...
分类:编程语言   时间:2021-03-15 11:04:39    阅读次数:0
冒泡排序
上学时,排序几乎是考试必须要出现的,反而工作以后正经没用过排序,时间久了已经忘了排序有几种方法了。 下面就在复习一下用PHP排序 $number = array(5,8,3,7,4,6,2,9,1); 一、冒泡法:冒泡法其实原理很简单,就像一群人土匪选当家的,5跟8比,5打不过8,不换位置,8跟3比 ...
分类:编程语言   时间:2021-03-12 13:28:42    阅读次数:0
【Java-GUI】10 Swing06 JTable
静态数据表格的样子: package cn.dzz; import javax.swing.*; import java.awt.*; public class JTable { JFrame jFrame = new JFrame("简单表格"); Object[] titleList = {"姓 ...
分类:编程语言   时间:2021-03-12 12:50:57    阅读次数:0
vue自定义指令实现按钮级权限
1、创建指令文件bthPermission.js,编写自定义指令: import Vue from 'vue'; import api from "api"; /**权限指令**/ const has = Vue.directive('has', { bind: async function (el ...
分类:其他好文   时间:2021-03-10 13:37:17    阅读次数:0
洗牌算法-shuffle
shuffle算法-洗牌算法 算法的作用 打乱顺序 算法的实现 等概率的抽取数组中的每一个数,跟最后一个元素交换 // 使用闭包,防止变量污染 (function() { function shuffle() { // 调用形式: arr.shuffle(); 这里的this指向Array实例 le ...
分类:编程语言   时间:2021-03-10 13:22:24    阅读次数:0
podmen
安装podmen [root@localhostl ~]# yum -y remove docker-ce [root@localhostl ~]# yum -y install podman [root@localhostl ~]# cd /etc/containers/ [root@localh ...
分类:其他好文   时间:2021-03-10 13:05:54    阅读次数:0
js如何修改对象的key值,value值不变?
对应的值不变,只是改key的名称 原数据: 1 var array = [ 2 { 3 id:1, 4 name:"小明" 5 }, 6 { 7 id:2, 8 name:"小红" 9 } 10 ]; 我要改为的数据: 1 var array = [ 2 { 3 value:1, 4 label:" ...
分类:Web程序   时间:2021-03-10 13:01:03    阅读次数:0
37569条   上一页 1 ... 27 28 29 30 31 ... 3757 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!