最新发布第23页
it 关键字-Stewed Noodles 资源

it 关键字

当 Lambda 表达式或匿名函数只接收 一个参数 时,it 会作为这个参数的 隐式名称(默认参数名)。 val numbers = listOf(1, 2, 3, 4, 5) // it 表示参数 println(numbers.map { it * it }) // [1...
NavHostController-Stewed Noodles 资源

NavHostController

基本介绍 NavHostController 是 Jetpack Compose Navigation 中负责管理导航状态的核心控制器。 记录当前在哪个页面(destination) 处理导航动作(navigate / popBackStack) 管理返回栈(Back...
设备点检-Stewed Noodles 资源

设备点检

设备点检的基本模块 点检项目 点检项目的基本信息,如下所示 点检计划 点检计划的基本信息,如下所示 点检任务 点检任务的基本信息,如下所示
XuX的头像-Stewed Noodles 资源烩之面大会员XuX4个月前
0250
Day 2 - 理解数据类型和字符串操作-Stewed Noodles 资源

Day 2 – 理解数据类型和字符串操作

基本数据类型 String 字符串下标 字符串的下标 Subscripting可以提取字符串特定位置的字符。 # 提取第一个字符 print('Hello'[0]) # H # 提取最后一个字符 print('Hello'[len('Hello') - 1]) # ...
matplotlib 中文显示-Stewed Noodles 资源

matplotlib 中文显示

在 PyChorm 中使用利用虚拟环境进行matplotlib绘制图像中显示中文。 下载字体 使用 SimHei字体,点击此处链接进行字体下载。 ttf文件存储位置 进入 Python 脚本,执行以下操作 >>> imp...
Day 6 - 函数-Stewed Noodles 资源

Day 6 – 函数

Python 内置函数的详情可参考 https://docs.python.org/zh-cn/3.13/library/functions.html 函数定义 无参函数的语法 # 函数定义 def <function name>(): # Do something # 函数调用 <...
Widget 的 Container Background-Stewed Noodles 资源

Widget 的 Container Background

Widget 的 Container Background(容器背景) 是在 iOS 17 中引入的。在 Widget 的开发过程中,可能会在预览中遇到如下的错误 Widget needs to adopt container background. 容器背景用途 iOS 1...
Animation-Stewed Noodles 资源

Animation

当指定的值发生变化时,将给定的动画应用于此视图。 struct ContentView: View { @State private var scale = 0.5 var body: some View { VStack { Circle().scale(scale).animation(.easeIn, v...
XuX的头像-Stewed Noodles 资源烩之面大会员XuX1年前
0240
How to cancel a task group 如何取消任务组-Stewed Noodles 资源

How to cancel a task group 如何取消任务组

Swift’s task groups can be cancelled in one of three ways: if the parent task of the task group is cancelled, if you explicitly call cancelAll() on the group, or if one of your ...
Is it efficient to create many tasks? 创建许多任务是否有效?-Stewed Noodles 资源

Is it efficient to create many tasks? 创建许多任务是否有效?

Previously I talked about the concept of thread explosion, which is when you create many more threads than CPU cores and the system struggles to manage them effectively. Howev...