Day 21 – 贪吃蛇(下)
类继承 从现有类继承行为和外观的过程成为类继承。这里的行为和外观分别为类的方法和属性。类继承可以对现有的类进行属性以及方法的扩展。 # Fish类 class Fish: def __init__(self): '''初始化...
What calls the first async function? 什么调用第一个异步函数?
You can only call async functions from other async functions, because they might need to suspend themselves and everything that is waiting for them. This leads to a bit of a chicke...
What is actor reentrancy and how can it cause problems? 什么是 actor 重入性,它如何导致问题?
Actor-isolated functions are reentrant, which means it's possible for one piece of work to begin before a previous piece of work completes. This opens the possibility of subtle bug...
Release checklist 版本清单
Sure, all your tests pass, but how can you make sure your app functions properly? Most large projects have a solution called a release checklist, and here I want to share mine wit...
传统计算机视觉
基本处理流程 传统计算机视觉流程,如下图所示 传统计算机视觉流程 擅长 采集 图像 和 视频 对图像、视频进行预处理 灰度化、背景分离、去噪... 图像的旋转、缩放、裁剪⋯ 从图像、视频中提取特...
Plex 设置 HTTP 网络代理
文件的位置 /var/packages/PlexMediaServer/scripts/start-stop-status。 start-stop-status 文件 代码内容如下 # Set proxy export HTTP_PROXY='http://192.168.50.1:3333' export HTTPS_PROXY...
Android 组件
基本介绍 Android 有四种主要的组件。 Android 的四大组件 Activity 具有用户界面的单个屏幕。 用户交互的入口。 Services 在后台运行,用户执行无用户界面的长时间操作/任务。 Broadcast Recei...
Retrofit
Retrofit 是 Square 出品的一个 类型安全的 HTTP 客户端,用于 Android / Java / Kotlin 中进行网络请求。 基于 OkHttp 支持 协程(suspend) 支持 Gson / Moshi 解析 基本使用 1. 添加依赖 dep...











