最新发布第20页
Android 模拟器访问外网-Stewed Noodles 资源

Android 模拟器访问外网

在 Android Studio 中开发应用,需要访问 google 相关服务。 模拟器访问Google 连接 AndroidWifi 在 Android 的模拟器的设置中,连接 WiFi,模拟器中 Wifi 的名称可能不一样。 连接 Wifi 设置网...
Kotlin 函数-Stewed Noodles 资源

Kotlin 函数

函数的声明 // 函数声明 fun functionName(parameter1: Type, parameter2: Type): ReturnType { // 函数体 // 执行逻辑 // (可选)返回值 } 无参无返回值 无参无返回值的函数,如下所示 // 无...
Collection 集合-Stewed Noodles 资源

Collection 集合

Kotlin 的 Collections(集合)分为不可变集合和可变集合。不可变集合是只读集合,元素在创建之后不能被修改,常见的不可变集合方法有: List 中的 listOf()、ListOf<T>() Set 中的 setOf(...
Bottom Navigation-Stewed Noodles 资源

Bottom Navigation

创建 Screen HomeScreen 的可组合函数 @Composable fun HomeScreen() { Column( modifier = Modifier.fillMaxSize(), horizontalAlignment = Alignment.CenterHorizontally ) { Button( onClick...
Dependency Injection-Stewed Noodles 资源

Dependency Injection

在现代 Android 开发中,依赖注入(Dependency Injection,DI)是一种设计模式,用于简化应用中各个组件之间依赖关系的管理。 依赖注入是一种设计思想:对象不自己创建依赖,而是由外部把依赖“...
macOS 桌面文件消失-Stewed Noodles 资源

macOS 桌面文件消失

macOS 桌面文件不可见的处理方法,打开终端,输入以下命令 sudo chflags -R nohidden ~/Desktop
XuX的头像-Stewed Noodles 资源烩之面大会员XuX6个月前
0270
Day 15 - 咖啡机-Stewed Noodles 资源

Day 15 – 咖啡机

MENU = { 'espresso': { 'ingredients': { 'water': 50, 'coffee': 18, }, 'cost': 1.5, }, 'latte': { 'ingredients': { 'water': 200, 'milk': 150, 'coffee': 24, }, 'cost': 2.5, }, 'cappu...
Day 21 - 贪吃蛇(下)-Stewed Noodles 资源

Day 21 – 贪吃蛇(下)

类继承 从现有类继承行为和外观的过程成为类继承。这里的行为和外观分别为类的方法和属性。类继承可以对现有的类进行属性以及方法的扩展。 # Fish类 class Fish: def __init__(self): '''初始化...
What’s the difference between Sequence, AsyncSequence, and AsyncStream? Sequence、AsyncSequence 和 AsyncStream 之间有什么区别?-Stewed Noodles 资源

What’s the difference between Sequence, AsyncSequence, and AsyncStream? Sequence、AsyncSequence 和 AsyncStream 之间有什么区别?

Swift provides several ways of receiving a potentially endless flow of data, allowing us to read values one by one, or loop over them using for, while, or similar.Swift ...
AI 工具-Stewed Noodles 资源

AI 工具

代码生成 通义灵码与代码小浣熊 VSCode 安装 tongyilingma 扩展 VSCode 安装 Raccoon 扩展 PyCharm 安装相同的插件即可 Github copilot VSCode 安装 Github copilot 扩展 PyCharm 安装相同的插...