{"id":207348,"date":"2020-12-29T08:07:49","date_gmt":"2020-12-29T00:07:49","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=207348"},"modified":"2020-12-21T10:09:30","modified_gmt":"2020-12-21T02:09:30","slug":"learn-rust-collections","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/learn-rust-collections.html","title":{"rendered":"\u5b66\u4e60Rust \u96c6\u5408\u4e0e\u5b57\u7b26\u4e32"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nRust \u8bed\u8a00\u662f\u4e00\u79cd\u9ad8\u6548\u3001\u53ef\u9760\u7684\u901a\u7528\u9ad8\u7ea7\u8bed\u8a00\u3002\u5176\u9ad8\u6548\u4e0d\u4ec5\u9650\u4e8e\u5f00\u53d1\u6548\u7387\uff0c\u5b83\u7684\u6267\u884c\u6548\u7387\u4e5f\u662f\u4ee4\u4eba\u79f0\u8d5e\u7684\uff0c\u662f\u4e00\u79cd\u5c11\u6709\u7684\u517c\u987e\u5f00\u53d1\u6548\u7387\u548c\u6267\u884c\u6548\u7387\u7684\u8bed\u8a00\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"
\n\u96c6\u5408\uff08Collection\uff09\u662f\u6570\u636e\u7ed3\u6784\u4e2d\u6700\u666e\u904d\u7684\u6570\u636e\u5b58\u653e\u5f62\u5f0f\uff0cRust \u6807\u51c6\u5e93\u4e2d\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u96c6\u5408\u7c7b\u578b\u5e2e\u52a9\u5f00\u53d1\u8005\u5904\u7406\u6570\u636e\u7ed3\u6784\u7684\u64cd\u4f5c\u3002<\/p>\n

\u5411\u91cf<\/strong><\/div>\n

\u5411\u91cf\uff08Vector\uff09\u662f\u4e00\u4e2a\u5b58\u653e\u591a\u503c\u7684\u5355\u6570\u636e\u7ed3\u6784\uff0c\u8be5\u7ed3\u6784\u5c06\u76f8\u540c\u7c7b\u578b\u7684\u503c\u7ebf\u6027\u7684\u5b58\u653e\u5728\u5185\u5b58\u4e2d\u3002
\n\u5411\u91cf\u662f\u7ebf\u6027\u8868\uff0c\u5728 Rust \u4e2d\u7684\u8868\u793a\u662f Vec\u3002
\n\u5411\u91cf\u7684\u4f7f\u7528\u65b9\u5f0f\u7c7b\u4f3c\u4e8e\u5217\u8868\uff08List\uff09\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\u521b\u5efa\u6307\u5b9a\u7c7b\u578b\u7684\u5411\u91cf\uff1a<\/p>\n

\r\nlet vector: Vec = Vec::new(); \/\/ \u521b\u5efa\u7c7b\u578b\u4e3a i32 \u7684\u7a7a\u5411\u91cf\r\nlet vector = vec![1, 2, 4, 8];     \/\/ \u901a\u8fc7\u6570\u7ec4\u521b\u5efa\u5411\u91cf<\/i32><\/pre>\n

\u6211\u4eec\u4f7f\u7528\u7ebf\u6027\u8868\u5e38\u5e38\u4f1a\u7528\u5230\u8ffd\u52a0\u7684\u64cd\u4f5c\uff0c\u4f46\u662f\u8ffd\u52a0\u548c\u6808\u7684 push \u64cd\u4f5c\u672c\u8d28\u662f\u4e00\u6837\u7684\uff0c\u6240\u4ee5\u5411\u91cf\u53ea\u6709 push \u65b9\u6cd5\u6765\u8ffd\u52a0\u5355\u4e2a\u5143\u7d20\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

\r\nfn main() {\r\n    let mut vector = vec![1, 2, 4, 8];\r\n    vector.push(16);\r\n    vector.push(32);\r\n    vector.push(64);\r\n    println!(\"{:?}\", vector);\r\n}<\/pre>\n

\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n

\r\n[1, 2, 4, 8, 16, 32, 64]<\/pre>\n

append \u65b9\u6cd5\u7528\u4e8e\u5c06\u4e00\u4e2a\u5411\u91cf\u62fc\u63a5\u5230\u53e6\u4e00\u4e2a\u5411\u91cf\u7684\u5c3e\u90e8\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

\r\nfn main() {\r\n    let mut v1: Vec = vec![1, 2, 4, 8];\r\n    let mut v2: Vec<\/i32> = vec![16, 32, 64];\r\n    v1.append(&mut v2);\r\n    println!(\"{:?}\", v1);\r\n}<\/i32><\/pre>\n

\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n

\r\n[1, 2, 4, 8, 16, 32, 64]<\/pre>\n

get \u65b9\u6cd5\u7528\u4e8e\u53d6\u51fa\u5411\u91cf\u4e2d\u7684\u503c\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

\r\nfn main() {\r\n    let mut v = vec![1, 2, 4, 8];\r\n    println!(\"{}\", match v.get(0) {\r\n        Some(value) => value.to_string(),\r\n        None => \"None\".to_string()\r\n    });\r\n}<\/pre>\n

\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n

\r\n1<\/pre>\n

\u56e0\u4e3a\u5411\u91cf\u7684\u957f\u5ea6\u65e0\u6cd5\u4ece\u903b\u8f91\u4e0a\u63a8\u65ad\uff0cget \u65b9\u6cd5\u65e0\u6cd5\u4fdd\u8bc1\u4e00\u5b9a\u53d6\u5230\u503c\uff0c\u6240\u4ee5 get \u65b9\u6cd5\u7684\u8fd4\u56de\u503c\u662f Option \u679a\u4e3e\u7c7b\uff0c\u6709\u53ef\u80fd\u4e3a\u7a7a\u3002
\n\u8fd9\u662f\u4e00\u79cd\u5b89\u5168\u7684\u53d6\u503c\u65b9\u6cd5\uff0c\u4f46\u662f\u4e66\u5199\u8d77\u6765\u6709\u4e9b\u9ebb\u70e6\u3002\u5982\u679c\u4f60\u80fd\u591f\u4fdd\u8bc1\u53d6\u503c\u7684\u4e0b\u6807\u4e0d\u4f1a\u8d85\u51fa\u5411\u91cf\u4e0b\u6807\u53d6\u503c\u8303\u56f4\uff0c\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u6570\u7ec4\u53d6\u503c\u8bed\u6cd5\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

\r\nfn main() {\r\n    let v = vec![1, 2, 4, 8];\r\n    println!(\"{}\", v[1]);\r\n}<\/pre>\n

\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n

\r\n2<\/pre>\n

\u4f46\u5982\u679c\u6211\u4eec\u5c1d\u8bd5\u83b7\u53d6 v[4] \uff0c\u90a3\u4e48\u5411\u91cf\u4f1a\u8fd4\u56de\u9519\u8bef\u3002<\/p>\n

\u904d\u5386\u5411\u91cf\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

\r\nfn main() {\r\n    let v = vec![100, 32, 57];\r\n    for i in &v {\r\n            println!(\"{}\", i);\r\n    }\r\n}<\/pre>\n

\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n

\r\n100\r\n32\r\n57<\/pre>\n

\u5982\u679c\u904d\u5386\u8fc7\u7a0b\u4e2d\u9700\u8981\u66f4\u6539\u53d8\u91cf\u7684\u503c\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

\r\nfn main() {\r\n    let mut v = vec![100, 32, 57];\r\n    for i in &mut v {\r\n        *i += 50;\r\n    }\r\n}<\/pre>\n
\u5b57\u7b26\u4e32<\/strong><\/div>\n

\u5b57\u7b26\u4e32\u7c7b\uff08String\uff09\u5230\u672c\u7ae0\u4e3a\u6b62\u5df2\u7ecf\u4f7f\u7528\u4e86\u5f88\u591a\uff0c\u6240\u4ee5\u6709\u5f88\u591a\u7684\u65b9\u6cd5\u5df2\u7ecf\u88ab\u8bfb\u8005\u719f\u77e5\u3002\u672c\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u548c UTF-8 \u6027\u8d28\u3002
\n\u65b0\u5efa\u5b57\u7b26\u4e32\uff1a<\/p>\n

\r\nlet string = String::new();<\/pre>\n

\u57fa\u7840\u7c7b\u578b\u8f6c\u6362\u6210\u5b57\u7b26\u4e32\uff1a<\/p>\n

\r\nlet one = 1.to_string();         \/\/ \u6574\u6570\u5230\u5b57\u7b26\u4e32\r\nlet float = 1.3.to_string();     \/\/ \u6d6e\u70b9\u6570\u5230\u5b57\u7b26\u4e32\r\nlet slice = \"slice\".to_string(); \/\/ \u5b57\u7b26\u4e32\u5207\u7247\u5230\u5b57\u7b26\u4e32<\/pre>\n

\u5305\u542b UTF-8 \u5b57\u7b26\u7684\u5b57\u7b26\u4e32\uff1a<\/p>\n

\r\nlet hello = String::from(\"\u0627\u0644\u0633\u0644\u0627\u0645 \u0639\u0644\u064a\u0643\u0645\");\r\nlet hello = String::from(\"Dobr\u00fd den\");\r\nlet hello = String::from(\"Hello\");\r\nlet hello = String::from(\"\u05e9\u05b8\u05c1\u05dc\u05d5\u05b9\u05dd\");\r\nlet hello = String::from(\"\u0928\u092e\u0938\u094d\u0924\u0947\");\r\nlet hello = String::from(\"\u3053\u3093\u306b\u3061\u306f\");\r\nlet hello = String::from(\"\uc548\ub155\ud558\uc138\uc694\");\r\nlet hello = String::from(\"\u4f60\u597d\");\r\nlet hello = String::from(\"Ol\u00e1\");\r\nlet hello = String::from(\"\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435\");\r\nlet hello = String::from(\"Hola\");<\/pre>\n

\u5b57\u7b26\u4e32\u8ffd\u52a0\uff1a<\/p>\n

\r\nlet mut s = String::from(\"run\");\r\ns.push_str(\"oob\"); \/\/ \u8ffd\u52a0\u5b57\u7b26\u4e32\u5207\u7247\r\ns.push('!');       \/\/ \u8ffd\u52a0\u5b57\u7b26<\/pre>\n

\u7528 + \u53f7\u62fc\u63a5\u5b57\u7b26\u4e32\uff1a<\/p>\n

\r\nlet s1 = String::from(\"Hello, \");\r\nlet s2 = String::from(\"world!\");\r\nlet s3 = s1 + &s2;<\/pre>\n

\u8fd9\u4e2a\u8bed\u6cd5\u4e5f\u53ef\u4ee5\u5305\u542b\u5b57\u7b26\u4e32\u5207\u7247\uff1a<\/p>\n

\r\nlet s1 = String::from(\"tic\");\r\nlet s2 = String::from(\"tac\");\r\nlet s3 = String::from(\"toe\");\r\n\r\nlet s = s1 + \"-\" + &s2 + \"-\" + &s3;<\/pre>\n

\u4f7f\u7528 format! \u5b8f\uff1a<\/p>\n

\r\nlet s1 = String::from(\"tic\");\r\nlet s2 = String::from(\"tac\");\r\nlet s3 = String::from(\"toe\");\r\n\r\nlet s = format!(\"{}-{}-{}\", s1, s2, s3);<\/pre>\n

\u5b57\u7b26\u4e32\u957f\u5ea6\uff1a<\/p>\n

\r\nlet s = \"hello\";\r\nlet len = s.len();\r\n\u8fd9\u91cc len \u7684\u503c\u662f 5\u3002\r\n\r\nlet s = \"\u4f60\u597d\";\r\nlet len = s.len();<\/pre>\n

\u8fd9\u91cc len \u7684\u503c\u662f 6\u3002\u56e0\u4e3a\u4e2d\u6587\u662f UTF-8 \u7f16\u7801\u7684\uff0c\u6bcf\u4e2a\u5b57\u7b26\u957f 3 \u5b57\u8282\uff0c\u6240\u4ee5\u957f\u5ea6\u4e3a6\u3002\u4f46\u662f Rust \u4e2d\u652f\u6301 UTF-8 \u5b57\u7b26\u5bf9\u8c61\uff0c\u6240\u4ee5\u5982\u679c\u60f3\u7edf\u8ba1\u5b57\u7b26\u6570\u91cf\u53ef\u4ee5\u5148\u53d6\u5b57\u7b26\u4e32\u4e3a\u5b57\u7b26\u96c6\u5408\uff1a<\/p>\n

\r\nlet s = \"hello\u4f60\u597d\";\r\nlet len = s.chars().count();<\/pre>\n

\u8fd9\u91cc len \u7684\u503c\u662f 7\uff0c\u56e0\u4e3a\u4e00\u5171\u6709 7 \u4e2a\u5b57\u7b26\u3002\u7edf\u8ba1\u5b57\u7b26\u7684\u901f\u5ea6\u6bd4\u7edf\u8ba1\u6570\u636e\u957f\u5ea6\u7684\u901f\u5ea6\u6162\u5f97\u591a\u3002<\/p>\n

\u904d\u5386\u5b57\u7b26\u4e32\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

\r\nfn main() {\r\n    let s = String::from(\"hello\u4e2d\u6587\");\r\n    for c in s.chars() {\r\n        println!(\"{}\", c);\r\n    }\r\n}<\/pre>\n

\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n

\r\nh\r\ne\r\nl\r\nl\r\no\r\n\u4e2d\r\n\u6587<\/pre>\n

\u4ece\u5b57\u7b26\u4e32\u4e2d\u53d6\u5355\u4e2a\u5b57\u7b26\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

\r\nfn main() {\r\n    let s = String::from(\"EN\u4e2d\u6587\");\r\n    let a = s.chars().nth(2);\r\n    println!(\"{:?}\", a);\r\n}<\/pre>\n

\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n

\r\nSome('\u4e2d')<\/pre>\n

\u6ce8\u610f\uff1anth \u51fd\u6570\u662f\u4ece\u8fed\u4ee3\u5668\u4e2d\u53d6\u51fa\u67d0\u503c\u7684\u65b9\u6cd5\uff0c\u8bf7\u4e0d\u8981\u5728\u904d\u5386\u4e2d\u8fd9\u6837\u4f7f\u7528\uff01\u56e0\u4e3a UTF-8 \u6bcf\u4e2a\u5b57\u7b26\u7684\u957f\u5ea6\u4e0d\u4e00\u5b9a\u76f8\u7b49\uff01<\/p>\n

\u5982\u679c\u60f3\u622a\u53d6\u5b57\u7b26\u4e32\u5b57\u4e32\uff1a
\n\u5b9e\u4f8b<\/p>\n

\r\nfn main() {\r\n    let s = String::from(\"EN\u4e2d\u6587\");\r\n    let sub = &s[0..2];\r\n    println!(\"{}\", sub);\r\n}<\/pre>\n

\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n

\r\nEN<\/pre>\n

\u4f46\u662f\u8bf7\u6ce8\u610f\u6b64\u7528\u6cd5\u6709\u53ef\u80fd\u80a2\u89e3\u4e00\u4e2a UTF-8 \u5b57\u7b26\uff01\u90a3\u6837\u4f1a\u62a5\u9519\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

\r\nfn main() {\r\n    let s = String::from(\"EN\u4e2d\u6587\");\r\n    let sub = &s[0..3];\r\n    println!(\"{}\", sub);\r\n}<\/pre>\n

\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n

\r\nthread 'main' panicked at 'byte index 3 is not a char boundary; it is inside '\u4e2d' (bytes 2..5) of `EN\u4e2d\u6587`', src\\libcore\\str\\mod.rs:2069:5 \r\nnote: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.<\/pre>\n
\u6620\u5c04\u8868<\/strong><\/div>\n

\u6620\u5c04\u8868\uff08Map\uff09\u5728\u5176\u4ed6\u8bed\u8a00\u4e2d\u5e7f\u6cdb\u5b58\u5728\u3002\u5176\u4e2d\u5e94\u7528\u6700\u666e\u904d\u7684\u5c31\u662f\u952e\u503c\u6563\u5217\u6620\u5c04\u8868\uff08Hash Map\uff09\u3002<\/p>\n

\u65b0\u5efa\u4e00\u4e2a\u6563\u5217\u503c\u6620\u5c04\u8868\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

\r\nuse std::collections::HashMap;\r\n\r\nfn main() {\r\n    let mut map = HashMap::new();\r\n\r\n    map.insert(\"color\", \"red\");\r\n    map.insert(\"size\", \"10 m^2\");\r\n\r\n    println!(\"{}\", map.get(\"color\").unwrap());\r\n}<\/pre>\n

\u6ce8\u610f\uff1a\u8fd9\u91cc\u6ca1\u6709\u58f0\u660e\u6563\u5217\u8868\u7684\u6cdb\u578b\uff0c\u662f\u56e0\u4e3a Rust \u7684\u81ea\u52a8\u5224\u65ad\u7c7b\u578b\u673a\u5236\u3002<\/p>\n

\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n

\r\nred<\/pre>\n

insert \u65b9\u6cd5\u548c get \u65b9\u6cd5\u662f\u6620\u5c04\u8868\u6700\u5e38\u7528\u7684\u4e24\u4e2a\u65b9\u6cd5\u3002<\/p>\n

\u6620\u5c04\u8868\u652f\u6301\u8fed\u4ee3\u5668\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

\r\nuse std::collections::HashMap;\r\n\r\nfn main() {\r\n    let mut map = HashMap::new();\r\n\r\n    map.insert(\"color\", \"red\");\r\n    map.insert(\"size\", \"10 m^2\");\r\n\r\n    for p in map.iter() {\r\n        println!(\"{:?}\", p);\r\n    }\r\n}<\/pre>\n

\u8fd0\u884c\u7ed3\u679c\uff1a<\/p>\n

\r\n(\"color\", \"red\") \r\n(\"size\", \"10 m^2\")<\/pre>\n

\u8fed\u4ee3\u5143\u7d20\u662f\u8868\u793a\u952e\u503c\u5bf9\u7684\u5143\u7ec4\u3002<\/p>\n

Rust \u7684\u6620\u5c04\u8868\u662f\u5341\u5206\u65b9\u4fbf\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5f53\u4f7f\u7528 insert \u65b9\u6cd5\u6dfb\u52a0\u65b0\u7684\u952e\u503c\u5bf9\u7684\u65f6\u5019\uff0c\u5982\u679c\u5df2\u7ecf\u5b58\u5728\u76f8\u540c\u7684\u952e\uff0c\u4f1a\u76f4\u63a5\u8986\u76d6\u5bf9\u5e94\u7684\u503c\u3002\u5982\u679c\u4f60\u60f3\"\u5b89\u5168\u5730\u63d2\u5165\"\uff0c\u5c31\u662f\u5728\u786e\u8ba4\u5f53\u524d\u4e0d\u5b58\u5728\u67d0\u4e2a\u952e\u65f6\u624d\u6267\u884c\u7684\u63d2\u5165\u52a8\u4f5c\uff0c\u53ef\u4ee5\u8fd9\u6837\uff1a<\/p>\n

\r\nmap.entry(\"color\").or_insert(\"red\");<\/pre>\n

\u8fd9\u53e5\u8bdd\u7684\u610f\u601d\u662f\u5982\u679c\u6ca1\u6709\u952e\u4e3a \"color\" \u7684\u952e\u503c\u5bf9\u5c31\u6dfb\u52a0\u5b83\u5e76\u8bbe\u5b9a\u503c\u4e3a \"red\"\uff0c\u5426\u5219\u5c06\u8df3\u8fc7\u3002<\/p>\n

\u5728\u5df2\u7ecf\u786e\u5b9a\u6709\u67d0\u4e2a\u952e\u7684\u60c5\u51b5\u4e0b\u5982\u679c\u60f3\u76f4\u63a5\u4fee\u6539\u5bf9\u5e94\u7684\u503c\uff0c\u6709\u66f4\u5feb\u7684\u529e\u6cd5\uff1a<\/p>\n

\u5b9e\u4f8b<\/p>\n

\r\nuse std::collections::HashMap;\r\n\r\nfn main() {\r\n    let mut map = HashMap::new();\r\n    map.insert(1, \"a\");\r\n   \r\n    if let Some(x) = map.get_mut(&1) {\r\n        *x = \"b\";\r\n    }\r\n}<\/pre>\n

<\/t><\/p>\n","protected":false},"excerpt":{"rendered":"

\u96c6\u5408\uff08Collection\uff09\u662f\u6570\u636e\u7ed3\u6784\u4e2d\u6700\u666e\u904d\u7684\u6570\u636e\u5b58\u653e\u5f62\u5f0f\uff0cRust \u6807\u51c6\u5e93\u4e2d\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u96c6\u5408\u7c7b\u578b\u5e2e\u52a9\u5f00\u53d1\u8005 […]<\/p>\n","protected":false},"author":1481,"featured_media":207331,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-207348","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/207348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1481"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=207348"}],"version-history":[{"count":3,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/207348\/revisions"}],"predecessor-version":[{"id":207351,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/207348\/revisions\/207351"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/207331"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=207348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=207348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=207348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}