会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
张誉峰
博客园
首页
新随笔
联系
订阅
管理
2021年1月17日
docker常用命令
摘要: 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日
用Java得到指定位数的随机数
摘要: 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,网络图片转InputStream,InputStream转OutputStream
摘要: 本地图片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日
python3日期格式化操作
摘要: 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)