最新发布第22页
排序
How to create a task group and add tasks to it 如何创建任务组并向其添加任务
Swift’s task groups are collections of tasks that work together to produce a single result. Each task inside the group must return the same kind of data, but if you use enum assoc...
How to make async command-line tools and scripts 如何制作异步命令行工具和脚本
If you’re writing a command-line tool with Swift, you can use async code in two ways: if you're using main.swift you can immediately make and use async functions as norm...
How to run tasks using SwiftUI’s task() modifier 如何使用 SwiftUI 的 task() 修饰符运行任务
SwiftUI provides a task() modifier that starts a new task as soon as a view appears, and automatically cancels the task when the view disappears. This is sort of the equi...
Xcode快捷键
按键 符号 功能描述 Command ⌘ 常用于系统快捷操作,例如复制、粘贴等。 Option ⌥ 用于组合键或输入特殊字符。 Shift ⇧ 用于大写字母或功能增强。 Control ⌃ 结合快捷键的辅助按键。 Caps L...
AI 工具
代码生成 通义灵码与代码小浣熊 VSCode 安装 tongyilingma 扩展 VSCode 安装 Raccoon 扩展 PyCharm 安装相同的插件即可 Github copilot VSCode 安装 Github copilot 扩展 PyCharm 安装相同的插...
Fragment
基本介绍 Fragment 代表应用程序 UI 可复用的部分。Fragment 定义和管理自己的布局,拥有自己的生命周期,并且可以处理自己的输入事件。Fragment 不能独自存在,它们必须由一个 Activity 或者另...
Composable
在 Jetpack Compose 中,每一个 UI 元素都是通过一个带有 @Composable 注解的函数构建的,例如: @Composable fun Greeting(name: String) { Text(text = 'Hello $name') } 只要一个函数前加了 ...
xoa 重置数据库密码
修改数据库密码 打开 Navicat,右键点击已连接的 MySQL 服务器 → 选择「用户」。 选中目标用户(如root)→ 点击「编辑用户」。 在「常规」选项卡中找到「密码」字段 → 输入新密码并确认 → ...
Day 17 – 自定义类(Class)
自定义类 类定义的语法,如下 # 类的定义, ClassName必须首字母大写 class ClassName: # 类的对象 class_name_1 = ClassName() 常见的几种命名方式- PascalCase - camelCase - snake_case 构造...






