Ⅷ、Collections 工具类 java.util.Collections Collections 集合工具类,用来对集合进行操作,部分重要方法如下: 1.public static <T> boolean addAll(Collection<T> c,T... elements); 往集合中添 ...
分类:
其他好文 时间:
2021-07-19 16:42:35
阅读次数:
0
一、什么是泛型? 泛型是一种未知的数据类型,当我们不知道要使用什么数据类型的时候,可以使用泛型。 泛型也可以看成是一个变量,用来接收数据类型 E e:Element 元素 T t:type 类型 如: 1 public class ArrayList<E>{ 2 public boolean add ...
分类:
编程语言 时间:
2021-07-19 16:42:15
阅读次数:
0
# 判断输入的字符是不是数字,以及它是否大于等于0,如果大于0,返回它,小于0,返回它的相反数。def function(x): if x.isdigit() and int(x) >= 0: # 判断是否都是数字,是的话赋予int型 return x elif x.isalpha(): # 判断是 ...
分类:
编程语言 时间:
2021-07-19 16:38:52
阅读次数:
0
public static void main(String[] args) { int[] aa = {5, 86, 21, 231, 4, 3, 1, 74}; paixu(aa); printaaaa(aa);}public static void paixu(int[] aa) { for ...
分类:
编程语言 时间:
2021-07-19 16:29:05
阅读次数:
0
FastAPI https://fastapi.tiangolo.com/#performance FastAPI is a modern, fast (high-performance), web framework for building APIs with Python 3.6+ based ...
分类:
编程语言 时间:
2021-07-16 17:45:01
阅读次数:
0
<?php highlight_file(__FILE__); class emmm { public static function checkFile(&$page) { $whitelist = ["source"=>"source.php","hint"=>"hint.php"]; if ( ...
分类:
其他好文 时间:
2021-07-16 17:40:01
阅读次数:
0
import os dirlist = os.listdir() #打开文件 fo = open("dirs.txt","w") #遍历 for dir in dirlist: #判断如果是文件夹 if os.path.isdir(dir): #写 file.write(str(os.path.ab ...
分类:
编程语言 时间:
2021-07-16 17:33:40
阅读次数:
0
1 // 2 // Created by Administrator on 2021/7/15. 3 // 4 5 #ifndef C__TEST01_PERSON_H 6 #define C__TEST01_PERSON_H 7 8 //类模板 9 template<class T1, class ...
分类:
其他好文 时间:
2021-07-16 17:31:48
阅读次数:
0
Father.hpp 1 // 2 // Created by Administrator on 2021/7/15. 3 // 4 5 #ifndef C__TEST01_FATHER_HPP 6 #define C__TEST01_FATHER_HPP 7 8 9 class Father { ...
分类:
其他好文 时间:
2021-07-16 17:31:08
阅读次数:
0
什么是混合应用? 原生控件+html. ##一,识别HTML 识别被测元素为原生控件中的HTML内容 如何简单识别App中的页面为html页面? 方法一:开启手机中开发者选项-绘图-显示布局边界,有对应框住的内容为原生内容,H5相关内容不会被框. 方法二:通过定位工具可看到class=android ...
分类:
其他好文 时间:
2021-07-15 19:02:07
阅读次数:
0