document.write("");
上一页 1 2 3 4 5 6 7 8 ··· 17 下一页
摘要: pip install pillow from PIL import Image def png_to_ico(png_path, ico_path): img = Image.open(png_path) img.save(ico_path, format='ICO') png_to_ico('V 阅读全文
posted @ 2024-06-12 11:26 人间春风意 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 背景:IDEA中双击打开一个.py文件时,弹出一个文件类型的弹窗(没注意是什么,估计是不小心按到了什么快捷键),当时随便选的Text,结果不知道为什么,这个文件无法在IDEA中打开(之前都正常) 由于对idea的file types设定不了解,所以一个菜单一个菜单往下看,因为同后缀的其它文件都可以打 阅读全文
posted @ 2024-06-11 15:32 人间春风意 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 安装依赖 pip install psutil 代码 import psutil def check_if_process_running(process_name): ''' Check if there is any running process that contains the given 阅读全文
posted @ 2024-06-11 11:18 人间春风意 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 背景:RecyclerView 左右滑动时,需要获取当前显示在页面上的选项卡 步骤: 1. RecyclerView 添加addOnScrollListener,回调中可以直接获取对应Item Index xxxRecyclerView.addOnScrollListener(new Recycle 阅读全文
posted @ 2024-06-07 09:23 人间春风意 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 背景:水平滚动的List,一项Item占满页面宽度,相当于数量不定的选项卡,每个选项卡占满一页,左右滑动时,如何限制一次只能滑动一个Item 步骤: 1. 水平滚动布局 linearLayoutManager = new LinearLayoutManager(this); linearLayout 阅读全文
posted @ 2024-06-07 09:16 人间春风意 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 问题背景:使用适配器显示一个列表,列表中Item中有EditText,滚动时会有EditText组件内容消失 步骤: 1. 在Adapter中,添加interface public interface OnEidtTextChangeListener { void xxxTextChanged(Ch 阅读全文
posted @ 2024-06-07 09:09 人间春风意 阅读(22) 评论(0) 推荐(0) 编辑
摘要: 在Activity中,使用this.getCurrentFocus(),获取当前焦点所在的View, 再判断是否是EditText(可调整成其他组件),看个人需要再做特定的逻辑处理 String content = "xxxxx"; EditText focusedEditText = null; 阅读全文
posted @ 2024-06-07 08:52 人间春风意 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 背景:maven项目要将整个项目的依赖移植到某无法联网服务器进行测试,需要项目离线运行所需的全部依赖 步骤: 1. 首先需要有项目源码,解压后,使用IDEA Open Project 2. 在Settings中,配置settings.xml文件的完整路径,以及依赖文件夹的完整路径 setting.x 阅读全文
posted @ 2024-06-04 15:38 人间春风意 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 报错: Failed to parse multipart servlet request; nested exception is java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadException: th 阅读全文
posted @ 2024-05-14 16:35 人间春风意 阅读(1593) 评论(0) 推荐(0) 编辑
摘要: 错误写法(这种写法固定死了类型,会不匹配): const data = canvas.toDataURL('image/jpeg', quality); 调整成: let fileType = xxxObj.type const data = canvas.toDataURL(fileType, q 阅读全文
posted @ 2024-05-14 08:59 人间春风意 阅读(94) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 17 下一页