最新发布第12页
How to get a Result from a task 如何从任务中获取 Result-Stewed Noodles 资源

How to get a Result from a task 如何从任务中获取 Result

If you want to read the return value from a Task directly, you should read its value using await, or use try await if it has a throwing operation...
How to store continuations to be resumed later 如何存储要稍后恢复的 continuations-Stewed Noodles 资源

How to store continuations to be resumed later 如何存储要稍后恢复的 continuations

Many of Apple’s frameworks report back success or failure using multiple different delegate callback methods rather than completion handlers, which means a simple continuation won...
MatPlotLib 的使用-Stewed Noodles 资源

MatPlotLib 的使用

MatPlotLib 的作用是绘制2D/3D图形,让深度学习可视化。具体的使用步骤 引入MatPlotLib库 使用MatPlotLib绘制图像 重要概念 Figure(画布) Axes(坐标轴) 基本流程 MatplotLib库使用流程 创建...
PDF文件预览显示空白页面-Stewed Noodles 资源

PDF文件预览显示空白页面

问题 表单中添加了 PDF 附件,点击预览无法显示PDF文件内容。 表单示例 解决方案 系统中的 pdfjs 插件的版本太低,需要升级 pdfjs 插件。 1. 升级前请先备份 程序源码 以及 数据库 文件。2. 升...
XuX的头像-Stewed Noodles 资源烩之面大会员XuX8天前
0370
Day 12 - 作用域 Scope-Stewed Noodles 资源

Day 12 – 作用域 Scope

Python 没有块级作用域(Block Scope),只有局部作用域以及全局作用域。 局部作用域 在函数中声明的变量(或函数)具有局部作用域(也称为函数作用域)。它们只能被同一代码块中的其他代码看到...
How to create and run a task 如何创建和运行任务-Stewed Noodles 资源

How to create and run a task 如何创建和运行任务

Swift’s Task struct lets us start running some work immediately, and optionally wait for the result to be returned. And it is optional: sometimes you don’t ca...
What is an actor and why does Swift have them? 什么是 actor,为什么 Swift 有它们?-Stewed Noodles 资源

What is an actor and why does Swift have them? 什么是 actor,为什么 Swift 有它们?

Swift’s actors are conceptually like classes that are safe to use in concurrent environments. This safety is made possible because Swift automatically ensures no two pieces of cod...
iOS 其它相关知识-Stewed Noodles 资源

iOS 其它相关知识

版本管理 Xcode 快捷键 添加 emoji:Command + Control + Space 提交代码:Command + Option + C 显示或隐藏左侧导航窗口:Command + 0 显示或隐藏预览画布:Command + Option + Return
XuX的头像-Stewed Noodles 资源烩之面大会员XuX1年前
0350
How to create and use AsyncStreams to return buffered data 如何创建和使用 AsyncStreams 返回缓冲数据-Stewed Noodles 资源

How to create and use AsyncStreams to return buffered data 如何创建和使用 AsyncStreams 返回缓冲数据

AsyncStream and AsyncThrowingStream can be thought of a bit like continuations that can send back multiple values, but also like an AsyncSequence that is a...
清空物品列表信息-Stewed Noodles 资源

清空物品列表信息

清除物品 执行下边的SQL语句,清除现有的物品。 # 清除物品信息表 DELETE FROM xinhu_goods; 清除物品分类 在【流程模块】->【数据选项】->【行政选项】->【物品分类】中进行分类的管...
XuX的头像-Stewed Noodles 资源烩之面大会员XuX11个月前
0350