# wheel-sharing **Repository Path**: codeactior/wheel-sharing ## Basic Information - **Project Name**: wheel-sharing - **Description**: 结合官方文档及使用经验, 分享使用小技巧. 编程语言C, C++, Java, Python, Go, Ruby, Lua, Shell and so on. Continuous updates, Continuous sharing!!! Opportunities are reserved for those who are prepared!!! - **Primary Language**: Shell - **License**: BSD-2-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-25 - **Last Updated**: 2025-08-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # wheel-sharing ### 项目介绍 结合官方文档及使用经验, 分享实用小技巧. 编程语言C, C++, Java, Python, Go, Ruby, Lua, Shell and so on. Continuous updates, Continuous sharing!!! Opportunities are reserved for those who are prepared!!! ### 实用案例 - Python操作Redis删除缓存 - Python操作MySQL执行脚本 - Shell脚本批量删除的远程分支 - Shell脚本更新监视的远程分支 - Shell脚本判断Java版本 - batch脚本判断Java版本 ### 经验分析 ##### bat批处理脚本 ``` for指令, for %%i in (cmd1) do cmd2, 循环变量仿佛不支持%%idx, 只能单字母, 区分形式, 学习按最简单的做 "delims=", 指定分隔符为空, 则按行分割; 循环语句, 启动延迟变量扩展, setlocal enabledelayedexpansion ``` ### Gradle配置文件 WHO\.gradle\init.d\init.gradle ROOT\settings.gradle, build.gradle 另外可以配置config.gradle, 子模块apply from: "../config.gradle"