最新发布第10页
How to use @MainActor to run code on the main queue 如何使用 @MainActor 在主队列上运行代码-Stewed Noodles 资源

How to use @MainActor to run code on the main queue 如何使用 @MainActor 在主队列上运行代码

@MainActor is a global actor that uses the main queue for executing its work. In practice, this means methods or types marked with @MainActor can (for the most part)...
Linux 安装 Dify-Stewed Noodles 资源

Linux 安装 Dify

在线安装安装 docker在终端执行如下命令bash <(curl -sSL https://linuxmirrors.cn/docker.sh) 选择 安装最新版本的 Docker Engine选择使用的 Docker CE 源选择 Docker Register 源是否关闭...
XuX的头像-Stewed Noodles 资源烩之面大会员XuX2年前
0521
How to cancel a Task 如何取消任务-Stewed Noodles 资源

How to cancel a Task 如何取消任务

Swift’s tasks use cooperative cancellation, which means that although we can tell a task to stop work, the task itself is free to completely ignore that instruction and carry...
OpenCV 二值化原理-Stewed Noodles 资源

OpenCV 二值化原理

基本流程 通常使用的 JPG、PNG 文件,都是压缩后的格式。这些格式解码之后,可以还原为 RGB 文件。RGB 文件中的每一个像素点都是由 红、绿、蓝三种颜色构成。 RGB 将 RGB 文件中的红色、绿色以...
Docker 部署 LEAP-Stewed Noodles 资源
Docker 基础 - 镜像-Stewed Noodles 资源

Docker 基础 – 镜像

镜像的获取 镜像的获取 镜像的获取大致有三种方式: Registry 中拉取 Dockerfile 构建 文件导入 镜像基本操作 查看镜像 $ docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE postgres 15-al...
XuX的头像-Stewed Noodles 资源烩之面大会员XuX2年前
0510
Day 19 - 实例、状态和高级函数-Stewed Noodles 资源

Day 19 – 实例、状态和高级函数

事件监听 turtle模块的事件监听,通过 screen 的 listen 方法实现。 from turtle import Turtle, Screen tim = Turtle() screen = Screen() def move_forward(): tim.forward(100) # 监听屏幕输...
邮箱提醒功能-Stewed Noodles 资源

邮箱提醒功能

网易邮箱 账户:96815@163.com授权密码:SMTP服务器: smtp.163.com,ssl 465IMAP服务器: imap.163.com,ssl 143 配置信息,如下所示 网易邮箱配置 测试邮箱 admin设置的邮箱为 2211045008@qq.co...
XuX的头像-Stewed Noodles 资源烩之面大会员XuX1年前
0510
Kotin 语法-Stewed Noodles 资源

Kotin 语法

在 Kotlin 中 main 函数是程序的入口,运行 Kotlin 程序的时候,它作为执行的起点。 fun main() { println('Hello Word!') } 注释 Kotlin 的代码注释 /** * 多行注释: * - main 函数是程序的入...
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...