上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 205 下一页
摘要: 代码: #encoding=utf-8 import urllib.request import os class WebPicDownloader: def __init__(self,path,start,end,extension,folder): self.folder=folder os. 阅读全文
posted @ 2021-10-01 20:49 逆火狂飙 阅读(160) 评论(0) 推荐(0)
摘要: CountDownLatch基于线程计数器来实现并发访问控制,主要用于主线程等待其它子线程都执行完毕后再执行某某操作。 其使用步骤: 1.主线程定义CountDownLatch,参数等于要执行的子线程个数; 2.子线程运行完后掉latch.countDown,让计数器减去一,如果子线程定义在别处需要 阅读全文
posted @ 2021-09-30 21:19 逆火狂飙 阅读(111) 评论(0) 推荐(0)
摘要: 代码: import java.util.Arrays; public class LongArray { public static void main(String... args) { Long[] arr1=new Long[10]; Arrays.fill(arr1, 100L); for 阅读全文
posted @ 2021-09-30 20:36 逆火狂飙 阅读(196) 评论(0) 推荐(0)
摘要: 例程下载:https://files.cnblogs.com/files/heyang78/ufo_RSA_210930.rar 程序: package ufo; import java.security.KeyFactory; import java.security.KeyPair; impor 阅读全文
posted @ 2021-09-30 06:41 逆火狂飙 阅读(895) 评论(0) 推荐(0)
摘要: 实验程序: import java.io.UnsupportedEncodingException; import java.util.Arrays; public class StringSize { public static String cutShort(String str,int fix 阅读全文
posted @ 2021-09-29 19:55 逆火狂飙 阅读(468) 评论(3) 推荐(0)
摘要: 本文例程下载:https://files.cnblogs.com/files/heyang78/ufo_meta_tableColumns_210928.rar 一般来说先有的表后有的Mapper文件,但也有反过来的,今天我就遇到了,在Mapper.xml能找到表名,也有DB可以执行SQL,表字段及 阅读全文
posted @ 2021-09-28 20:21 逆火狂飙 阅读(585) 评论(1) 推荐(0)
摘要: 本文例程下载: https://files.cnblogs.com/files/heyang78/ufo_aes_encode_decode_210927.rar 代码: package ufo; import java.security.SecureRandom; import javax.cry 阅读全文
posted @ 2021-09-27 22:34 逆火狂飙 阅读(769) 评论(0) 推荐(0)
摘要: Assert绝对是一个令人眼睛一亮的类,它简洁得以单行形式就完成了对象的校验及不合规时抛出异常,具体做法如下: Object obj=null; ...... Assert.notNull(obj, "对象不该为空而为空,故而抛出异常"); 而执行结果是: Exception in thread " 阅读全文
posted @ 2021-09-27 21:00 逆火狂飙 阅读(3500) 评论(0) 推荐(0)
摘要: 首先请到 https://www.oracle.com/database/technologies/oracle19c-windows-downloads.html 下载合适的19c产品。 其次,如果已经安装了oracle其它版本,请打开“Windows管理工具”->“服务”,将所有启动的Oracl 阅读全文
posted @ 2021-09-26 16:43 逆火狂飙 阅读(4137) 评论(0) 推荐(0)
摘要: 自从用上了SpringBoot,文件里是一堆注解,有的熟悉,有的生疏,如果有天需要整理一遍的话,编个程序把所有用到的注解都统计出来是个好主意。这个任务正适合用python完成,下面就是程序: #encoding=utf-8 import os,fnmatch,re class Caculator: 阅读全文
posted @ 2021-09-26 15:48 逆火狂飙 阅读(251) 评论(0) 推荐(0)
上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 205 下一页