当前位置: 首页 > news >正文

网站做一样的算侵权么app免费下载网站地址进入

网站做一样的算侵权么,app免费下载网站地址进入,2019Wordpress中文主题,银川网站建设效果目录 1 需求2 实现 1 需求 我现在有一个300MB 的文件#xff0c;想要根据这个文件#xff0c;创建100万个大小一样的#xff0c;名称不一样#xff0c;如何实现#xff0c;如何比较快点实现 2 实现 1 先准备好这个文件 2 准备好目录 3 写代码 private static void crea… 目录 1 需求2 实现 1 需求 我现在有一个300MB 的文件想要根据这个文件创建100万个大小一样的名称不一样如何实现如何比较快点实现 2 实现 1 先准备好这个文件 2 准备好目录 3 写代码 private static void createFile(String sourceFilePath,String destinationFolderPath, int fileNumber) {File file1 new File(sourceFilePath);Path sourcePath Paths.get(sourceFilePath);String destinationFileName copy_ UUID.randomUUID().toString() _ file1.getName();Path destinationPath Paths.get(destinationFolderPath, destinationFileName);//try {// 复制源文件到目标文件Files.copy(sourcePath, destinationPath, StandardCopyOption.REPLACE_EXISTING);} catch (IOException e) {e.printStackTrace();}}public static void main(String[] args) {String sourceFilePath D:\\100w\\source\\1111111111111.HDF; // 替换为实际的源文件路径String destinationFolderPath D:\\100w\\dest; // 替换为实际的目标文件夹路径int numFiles 1000000; // 需要创建的文件数量int numThreads Runtime.getRuntime().availableProcessors(); // 使用可用的处理器核心数作为线程数ExecutorService executorService Executors.newFixedThreadPool(numThreads);try {// 创建目标文件夹如果不存在Files.createDirectories(Paths.get(destinationFolderPath));// 循环提交文件创建任务给线程池for (int i 100; i numFiles; i) {int fileNumber i;executorService.submit(() - createFile(sourceFilePath,destinationFolderPath, fileNumber));}executorService.shutdown();} catch (IOException e) {e.printStackTrace();}// try {// // 获取源文件的路径对象// Path sourcePath Paths.get(sourceFilePath);//// // 创建目标文件夹如果不存在// Files.createDirectories(Paths.get(destinationFolderPath));//// // 循环复制文件并创建副本文件// for (int i 0; i numFiles; i) {// // 构造目标文件的路径对象// String destinationFileName copy_ i _ sourcePath.getFileName();// Path destinationPath Paths.get(destinationFolderPath, destinationFileName);//// // 复制源文件到目标文件// Files.copy(sourcePath, destinationPath, StandardCopyOption.REPLACE_EXISTING);// }//// System.out.println(文件复制完成);// } catch (IOException e) {// e.printStackTrace();// }}
http://www.hkea.cn/news/14583540/

相关文章:

  • 淮北专业网站建设搜索栏在wordpress菜单上位置
  • 贵阳网站制作网页设计作业效果图
  • 网站换域名做301安卓优化大师历史版本
  • 做视频网站服务器怎么选择四川网站建设广元分公司
  • 网站建设 目的现在c 做网站用什么框架
  • 怎样申请免费网站域名室内设计公司名字起名大全
  • 广州做模板网站的公司wordpress 4.7.3 慢
  • 南约社区网站建设郴州网站建设解决方案
  • 苍山做网站买了一个域名如何做网站
  • 网站维护界面门户网站模块
  • 免费黄页网站百度小程序怎么进入
  • 外贸公司网站案例wordpress主题 虎嗅
  • 河南省网上商城采购平台seo wordpress
  • 专业提供深圳网站设计公司计算机网站建设和维护
  • 怎么在在慧聪网上做网站推广江西省城乡和住房建设部网站
  • 做类似美团的网站吗wordpress商城视频教程
  • 海外域名提示风险网站吗wordpress 小公举
  • 网络推广培训在哪里uc浏览器关键词排名优化
  • 哈尔滨住房和城乡建设厅网站网站建设方法牜金手指下拉覀
  • 简述网站设计流程wordpress商城制作
  • 网站开发项目书专业网站建设组织
  • 微信公众号php网站开发设计最好的网站
  • 深圳网站建设q479185700強网站建设投票主题
  • 网站建设目的分析wordpress专题修改
  • 网站设计语言有哪些地推拉新app推广怎么做
  • 做童鞋的一些外贸网站调用wordpress编辑器
  • 用淘宝做公司网站企业营销型网站设计
  • 沈阳网站外包公司普集网站制作
  • 网站策划方案论文工业设计本科生作品集
  • 安康市网站开发无锡网站建设推广服务