摘要: import zipfile import py7zr import os def uncompress(path_name): suffix = path_name.rsplit('.', 1)[1] if suffix == 'zip': if zipfile.is_zipfile(path_n 阅读全文
posted @ 2021-01-10 23:28 onexixi 阅读(3537) 评论(0) 推荐(0) 编辑
摘要: gradle根据Git信息生成README文件 task createReadMe{ doLast {// String str = "${buildDir}/libs/exploded/"+project.getName().toString()+ "-${version}.war"+"/READ 阅读全文
posted @ 2021-01-07 11:28 onexixi 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 近日在书中看到这个方法,受益良多,分享下 public class ManualDiceRolls { //使用蒙特卡洛模拟法并行化模拟掷骰子事件 private static final int N = 100000000; private final double fraction; priva 阅读全文
posted @ 2020-06-14 23:26 onexixi 阅读(442) 评论(0) 推荐(0) 编辑
摘要: //既定顺序 List sortStrings = Arrays.asList("香蕉", "苹果", "梨子", "芒果", "橙子"); //需要排序 List needToSort = Arrays.asList("苹果", "香蕉", "苹果", "橙子", "芒果","梨子"); //通过 阅读全文
posted @ 2020-03-02 22:53 onexixi 阅读(1448) 评论(0) 推荐(0) 编辑
摘要: 在centos的宿主机上使用Ubuntu镜像时候,执行python脚本遇到 Can't locate Filter/decrypt.pm in @INC (you may need to install the Filter::decrypt module)报错 查阅很多博客 最后在 http:// 阅读全文
posted @ 2020-01-21 16:12 onexixi 阅读(1588) 评论(0) 推荐(0) 编辑