代码出异常常见的处理方法 try catch捕获 throws 声明异常 往外抛出 语法:throws字句放在方法参数列表的右括号之后,一个方法可以声明抛出多个异常,多个异常之间用逗号隔开。 例子 public class Main{ public static void readChar() th ...
分类:
编程语言 时间:
2021-07-19 16:50:19
阅读次数:
0
Ⅷ、Collections 工具类 java.util.Collections Collections 集合工具类,用来对集合进行操作,部分重要方法如下: 1.public static <T> boolean addAll(Collection<T> c,T... elements); 往集合中添 ...
分类:
其他好文 时间:
2021-07-19 16:42:35
阅读次数:
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
原图 修改后 '批量修改文件名.vbs Function GetScriptPath() GetScriptPath = Left(WScript.ScriptFullName, Len(WScript.ScriptFullName) - Len(WScript.ScriptName)) End F ...
分类:
其他好文 时间:
2021-07-19 16:29:20
阅读次数:
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
<?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
== equals是两种字符串的方式 区别 == 是比较两个对象的引用地址值 equals是比较两个对象的具体内容 示例 package com.oop.demo06; public class Demo01 { public static void main(String[] args) { St ...
分类:
其他好文 时间:
2021-07-14 18:50:51
阅读次数:
0
案例一、 public static void Main() { // Create the token source. CancellationTokenSource cts = new CancellationTokenSource(); // Pass the token to the can ...
分类:
编程语言 时间:
2021-07-14 18:50:15
阅读次数:
0
vue实现div高度可拖拽 这里有一个现成的demo,可以实现页面div的拖拽功能,但是和我想要的效果不是很一样,所以说后边有根据我的实际需求又重新修改了一下,先看一下现在的demo效果。 <template> <div id="eagleMapContainer" style="border: 1 ...
分类:
其他好文 时间:
2021-07-13 17:44:58
阅读次数:
0
在router中加入 const originalPush = VueRouter.prototype.push VueRouter.prototype.push = function push (location) { return originalPush.call(this, location ...
分类:
其他好文 时间:
2021-07-12 18:19:36
阅读次数:
0