最新发布第14页
排序
Day 8 – 函数参数
有参函数 带有输入参数的函数即为有参函数,有参函数的基本语法 # 函数定义 def <function name>(param1, param2,...): # Do this with param1, param2,... # 函数调用 <function name>(a...
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 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...
环境搭建
硬件部分 硬件部分,我们可以直接申请免费云资源 阿里云 GPU 以及 CPU 资源 Kaggle GPU 以及 CPU 资源 Google GPU 以及 CPU 资源 阿里云GPU(相对麻烦) 点击以下链接,进入申请页面 https://fr...
检修计划任务下发
检修计划审批通过后,将任务明细项下发给负责人,负责人进行现场的检修工作。检修计划的流程,如下所示。 检修计划流程 审批通过后,调用 任务下发接口 ,将检修明细项下发给负责人。 任务下发...
Paging Library
基本介绍 Paging Library 是 Android Jetpack 中用于 高效加载大型数据集的一套组件。它能够让你的应用以 分页(Page) 的方式逐步加载数据,而不是一次性加载全部,尤其适用于: 数据量很大(...
Constraint Layout
ConstraintLayout 是一种高级布局系统,适合复杂 UI。可以在 Compose 中使用,用来创建: 复杂对齐 多视图相互依赖的布局 百分比布局 链式布局(Chains) Barrier(根据子项动态位置对齐) Guid...
Windows 安装 Dify
软硬件要求硬件: CPU >= 2Core ; RAM >= 4GiB软件: 操作系统 Windows with WSL 2 enabled; Docker DesktopWSL 2 仅在 Windows 11 或 Windows 10 版本 1903、内部版本 18362 或更高版本中...
Day 10 – 函数输出
单返回值 函数通过 return 关键字,进行函数的输出。 def function_name(input_parameter): <body of function that uses input_argument> return output 示例代码 def format_name(f_nam...
Day 18 – Turtle 与 GUI
绘制正方形 利用turtle进行正方形的绘制 # 导入模块 import turtle for i in range(4): turtle.forward(100) turtle.left(90) my_screen = turtle.Screen() # 点击屏幕推出GUI界面 my_screen.ex...






