博客
随便记一记
FeedSeptember, 2025 共 1 篇
November, 2024 共 1 篇
October, 2024 共 1 篇
September, 2024 共 4 篇
git
Git中合并与变基的区别
从 master 拉取一个 feature 分支 分支冲突 在 feature 分支进行了两次提交,此时其它人也进行了两次提交,并且合并到了 master 分支,此时是无法push到远程仓库的,需要进行分支合并。 Merge 将两个分支合 …
linux
Linux 筛选日志
tail tail -n 10 test.log:查询日志尾部最后的10行日志; tail -n +10 test.log:查询10行之后的所有日志; head head -n 10 test.log:查询日志文件中的头10行日志; …
kotlin
线程与协程
1.线程 使用 lambda 创建线程。 fun main() { val thread = Thread { println("Hello from thread!") } thread.start() …
kotlin
探索Kotlin扩展函数
1.builtin extension function let: 用于处理可能为 null 的对象,并且仅当对象非 null 时才执行 Lambda。 with: 提供一个上下文对象来简化对对象成员的访问。 run: 结合了 with …
August, 2024 共 1 篇
July, 2024 共 1 篇