码迷,mamicode.com
首页 >  
搜索关键字:python static method class method    ( 345443个结果
Collection集合工具类
Ⅷ、Collections 工具类 java.util.Collections Collections 集合工具类,用来对集合进行操作,部分重要方法如下: 1.public static <T> boolean addAll(Collection<T> c,T... elements); 往集合中添 ...
分类:其他好文   时间:2021-07-19 16:42:35    阅读次数:0
Java中的泛型
一、什么是泛型? 泛型是一种未知的数据类型,当我们不知道要使用什么数据类型的时候,可以使用泛型。 泛型也可以看成是一个变量,用来接收数据类型 E e:Element 元素 T t:type 类型 如: 1 public class ArrayList<E>{ 2 public boolean add ...
分类:编程语言   时间:2021-07-19 16:42:15    阅读次数:0
Python用函数判断输入的字符是不是数字,以及它是否大于等于0,如果大于0,返回它,小于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 - most popular API framework in python
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
[HCTF 2018]WarmUp
<?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
python 将目录下所有文件夹的绝对路径写到文件中
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
H5混合应用测试流程
什么是混合应用? 原生控件+html. ##一,识别HTML 识别被测元素为原生控件中的HTML内容 如何简单识别App中的页面为html页面? 方法一:开启手机中开发者选项-绘图-显示布局边界,有对应框住的内容为原生内容,H5相关内容不会被框. 方法二:通过定位工具可看到class=android ...
分类:其他好文   时间:2021-07-15 19:02:07    阅读次数:0
345443条   上一页 1 ... 4 5 6 7 8 ... 34545 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!