2021年1月17日
摘要: docker常用命令 帮助命令 docker version # 显示docker的版本信息 docker info # 显示docker的系统信息 docker 命令 --help # 查看命令的语法 镜像命令 docker images查看本地的所有主机上的镜像 root@ljx-virtual 阅读全文
posted @ 2021-01-17 16:19 张誉峰 阅读(193) 评论(0) 推荐(0)
  2020年7月22日
摘要: public static long buildRandom(int length) { long num = 1; double random = Math.random(); if (random < 0.1) { random = random + 0.1; } for (int i = 0; 阅读全文
posted @ 2020-07-22 14:25 张誉峰 阅读(491) 评论(0) 推荐(0)
  2020年7月20日
摘要: 本地图片File转InputStream: File file = new File(filePath);FileInputStream inputStream = new FileInputStream(file); 网络图片转InputStream: InputStream inputStrea 阅读全文
posted @ 2020-07-20 15:06 张誉峰 阅读(6517) 评论(0) 推荐(0)
  2020年2月7日
摘要: python中可以用来格式化日期的模块可以是time或者datetime,如果要进行时间偏移的话,可以使用datetime模块。 time模块: time.strptime(str, format)将字符串转为struct_time对象。 time.strftime(format, t),将stru 阅读全文
posted @ 2020-02-07 20:18 张誉峰 阅读(3212) 评论(0) 推荐(0)