arrays - 如何在字典中附加一个数组(名称)和一个字典项在 plist 中的同一数组下?
问题描述
我正在创建一个测验应用程序,并想创建一个用户会话功能,用户可以在其中输入用户名开始玩。我有一个附加到 plist 的一般想法,但我完全不确定如何在这个分支级别附加(字典>数组>字典)所以我想知道如何添加用户名数组并添加一个由 2 个键组成的项目字典,时间和分数进入用户名数组。这是 plist 的样子:
解决方案
推荐阅读
- python - Dask Dataframe 中的 Groupby、Unstack 和 Plot
- javascript - 无法重现错误:没有“新”就无法调用类构造函数 DateTimeFormat
- python - 模型要么未安装,要么是抽象的 - Django、Python
- android - 如何使用okhttp创建数据流并写入android中的设备
- javascript - babel-jest : this.setDynamic 不是一个函数(迁移到 Jest 25)
- javascript - javascript中奇怪的字符串值
- django - 登录时 Django 用户丢失组(但不是权限)
- rust - 在 Rust 的 match arm 中调用多个函数
- c# - 主顶部菜单和右键单击上下文菜单之间的 WPF 共享菜单
- python - pandas : groupby + 条件 + 遍历一列