跳到主要内容
CodeWiki
练习
学习路径
学习方向
速查表
试验场
术语表
AI 时代
搜索
⌘K
中文
英语
中文
练习
学习路径
学习方向
速查表
试验场
术语表
AI 时代
中文
英语
中文
练习
/
测验
/
Rust
/
集合
哪个表达式只会在 user_id 不存在时调用 build_profile?
来自 集合
Rust 1.98
进阶
1分钟
哪个表达式只会在 user_id 不存在时调用 build_profile?
profiles.entry(user_id).or_insert_with(build_profile)
profiles.entry(user_id).or_insert(build_profile())
profiles.get(&user_id).unwrap_or(&build_profile())
profiles.contains_key(&user_id).then(build_profile)
检查
向 AI 询问这道练习
报告错误
上一道练习
哪个标准集合最直接地表达按键迭代并支持键范围查询的键值映射?
测验
下一道练习
这段程序会输出什么?
预测输出
有新版本可用
重新加载