1.集合 *Collection接口: List : 记录元素保存顺序,且允许有重复元素 Set :不 记录元素保存顺序,且不允许有重复元素 2.List 主要的实现类ArrayList.LinkedList 3.迭代器 Iterator iterator = iterable.inerator() ...
分类:
编程语言 时间:
2020-07-23 22:35:29
阅读次数:
72
1、import sys sys.argv[]说白了就是一个从程序外部获取参数的桥梁,这个“外部”很关键。因为我们从外部取得的参数可以是多个,所以获得的是一个列表(list),也就是说sys.argv其实可以看作是一个列表,所以才能用[]提取其中的元素。其第一个元素是程序本身,随后才依次是外部给予的 ...
分类:
编程语言 时间:
2020-07-23 22:27:10
阅读次数:
71
代码如下: $store_list = Array ( [0] => Array ( [name] => asdf [head] => /upload/thumbs/20150814220142_27630.jpg [img] => [content] => asdfasdfasdf [dateti ...
分类:
编程语言 时间:
2020-07-23 22:26:51
阅读次数:
129
1.list转str 列表转换为字符串 num = ['1','2','3','4'] ''.join(num) 输出:‘1234’ 注意:当列列表内的元素为数字的时候,需要先转成字符型,在进行转换。 2.str转换成list num = ‘1234’ list(num) 输出:['1','2',' ...
分类:
编程语言 时间:
2020-07-23 22:21:32
阅读次数:
71
先选择多个对象object,然后使用此函数获取选择的对象的tag,最后就可以使用object的一些函数了。 例子: tag_t *tagObjects; int iCount=0; UF_UI_ask_global_sel_object_list(&iCount, &tagObjects); for ...
分类:
其他好文 时间:
2020-07-23 22:14:59
阅读次数:
78
public CoverageBuilder(String gitPath, String newBranchName, String oldBranchName, List<String> exclusionList) { this.classes = new HashMap<String, IC ...
分类:
其他好文 时间:
2020-07-23 16:48:59
阅读次数:
83
一、拉取ubuntu18.04镜像sudodockerpullubuntu:18.04sudodockerrun-it-p80:80-v~/data/vhost/:/var/www--namemyubuntu18.04ubuntu:18.04/bin/bash二、添加阿里源(ubuntu18.04:bionic;20.04:focal)cp/etc/apt/sources.list/etc/apt
分类:
系统相关 时间:
2020-07-23 16:40:05
阅读次数:
107
from scipy.io import wavfile import numpy as np import matplotlib.pyplot as plt sample_rate, data = wavfile.read("Alarm01.wav") # 加载声音,返回采样频率,声音数据 pri ...
分类:
其他好文 时间:
2020-07-23 16:28:01
阅读次数:
84
本文主要内容:什么是深拷贝,浅拷贝,这些拷贝会引发什么问题,我们一起来分析。
分类:
编程语言 时间:
2020-07-23 09:28:15
阅读次数:
76
这个Power Automate帮助用户去match Excel 中 table的数据 蓝色table和绿色table相match的数据才会被加入到match表中 流程比较简单 首先我们需要一个触发点 其次, 找到list rows Excel控件. 然后选择需要的table1 然后我们用apply ...
分类:
其他好文 时间:
2020-07-23 09:23:02
阅读次数:
86