补全:带编号的 JSON
列表里每条留言配一个编号(从 1 起)。补全 with_ids(notes):交回 [{"id": 1, "text": …}, …];再补 api_one(notes, n):第 n 条的 JSON,越界交回 (404, 错误 JSON {"error": "没有这条"})。
列表里每条留言配一个编号(从 1 起)。补全 with_ids(notes):交回 [{"id": 1, "text": …}, …];再补 api_one(notes, n):第 n 条的 JSON,越界交回 (404, 错误 JSON {"error": "没有这条"})。
全部评论