最新发布第14页
排序
Day 5 – 循环
for 循环 for 循环的基本语法,如下所示 for item in list_of_items: # do something to each item 示例代码 fruits = ['Apple', 'Peach', 'Pear'] for fruit in fruits: print(fruit) # Apple ...
Day 8 – 函数参数
有参函数 带有输入参数的函数即为有参函数,有参函数的基本语法 # 函数定义 def <function name>(param1, param2,...): # Do this with param1, param2,... # 函数调用 <function name>(a...
What is a synchronous function? 什么是同步函数?
By default, all Swift functions are synchronous, but what does that mean? A synchronous function is one that executes all its work in a simple, straight line on a single threa...
How to discard results in a task group 如何丢弃任务组中的结果
Swift has a special task group type called a discarding task group, which has a very specialized function: tasks that complete are automatically discarded and destroyed, ...
How to make parts of an actor nonisolated 如何使 actor 的各个部分非隔离
All methods and mutable properties inside an actor are isolated to that actor by default, which means they cannot be accessed directly from code that’s external to the actor. Acce...
Who decides which actor code runs on? 谁决定在哪个 actor 代码上运行?
One common confusion with actors comes in deciding exactly where code runs, because just adding @MainActor and hoping for the best is rarely good enough.与 Actor 的一个常...
环境搭建
硬件部分 硬件部分,我们可以直接申请免费云资源 阿里云 GPU 以及 CPU 资源 Kaggle GPU 以及 CPU 资源 Google GPU 以及 CPU 资源 阿里云GPU(相对麻烦) 点击以下链接,进入申请页面 https://fr...
检修计划任务下发
检修计划审批通过后,将任务明细项下发给负责人,负责人进行现场的检修工作。检修计划的流程,如下所示。 检修计划流程 审批通过后,调用 任务下发接口 ,将检修明细项下发给负责人。 任务下发...
清空物品列表信息
清除物品 执行下边的SQL语句,清除现有的物品。 # 清除物品信息表 DELETE FROM xinhu_goods; 清除物品分类 在【流程模块】->【数据选项】->【行政选项】->【物品分类】中进行分类的管...
Paging Library
基本介绍 Paging Library 是 Android Jetpack 中用于 高效加载大型数据集的一套组件。它能够让你的应用以 分页(Page) 的方式逐步加载数据,而不是一次性加载全部,尤其适用于: 数据量很大(...






