最新发布第11页
排序
GeometryReader
要获得视图的大小,即使不是不可能,也是很困难的。这正是 GeometryReader 可以提供帮助的地方。 GeometryReader 与推出式容器视图类似,可以添加子视图。它允许检查和使用有助于定位其中其他视...
How to loop over an AsyncSequence using for await 如何使用 for await 遍历 AsyncSequence
You can loop over an AsyncSequence using Swift’s regular loop types, for, while, and repeat, but whenever you read a value from the async sequence you mus...
Day 9 – 字典与嵌套
字典 基本语法 字典是由键值对组成,基本的语法如下 {key1:value1, key2: value2, ...} 示例 # 字典示例 colors = { 'apple': 'red', 'pear': 'green', 'banana': 'yellow' } 基本使用 字典的基...
Swift Concurrency by Example
Async/await Sequences and streams Tasks and task groups Actors Testing Solutions
Understanding actor initialization 了解 actor 初始化
Swift's actors run on their own executor most of the time, so they manage how and where their work is done. However, during the actor's initialization its executor isn't ready to t...
MatPlotLib 的使用
MatPlotLib 的作用是绘制2D/3D图形,让深度学习可视化。具体的使用步骤 引入MatPlotLib库 使用MatPlotLib绘制图像 重要概念 Figure(画布) Axes(坐标轴) 基本流程 MatplotLib库使用流程 创建...
Day 1 – Python 变量与数据管理
打印 Python 中的打印语句 print('Hello world!') 字符串操作 字符串连接 字符串的连接可以使用+操作符 print('Hello' + ' ' + 'world!') 字符串长度 字符串的长度计算,使用len()函数 输入函数...
iOS 其它相关知识
版本管理 Xcode 快捷键 添加 emoji:Command + Control + Space 提交代码:Command + Option + C 显示或隐藏左侧导航窗口:Command + 0 显示或隐藏预览画布:Command + Option + Return
Understanding how global actor inference works 了解全局参与者推理的工作原理
Apple explicitly annotates many of its types as being @MainActor, including most UIKit types such as UIView and UIButton. However, for a while the Swift team da...
普通报销单变更案例
原有普通报销单 添加经费类型 在原有的报销单的基础上添加经费类型字段,经费类型包含:日常经费以及科研经费。 添加经费类型选项 选中流程模块->数据选项, 双击财务选项的ID字段 双击财务...