{"id":45739,"date":"2023-06-24T04:54:10","date_gmt":"2023-09-09T03:35:28","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/45739-2\/"},"modified":"2024-04-30T10:26:05","modified_gmt":"2024-04-30T02:26:05","slug":"45739-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/45739-2\/","title":{"rendered":""},"content":{"rendered":"<h1>3. \u4e00\u822c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u6982\u5ff5<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u524d\u56de\u306e\u8a18\u4e8b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">https:\/\/qiita.com\/revioness\/items\/44b28b2b4db3303a518e<\/ul>\n<\/li>\n<\/ul>\n<p>\u4eca\u56de\u306f\u524d\u56de\u4f7f\u7528\u3057\u3066\u3044\u308b\u3001\u8aac\u660e\u3057\u3066\u3044\u308b\u3068\u3053\u308d\u3082\u3042\u308b\u306e\u3067\u305d\u3053\u3089\u3078\u3093\u306f\u3056\u3063\u304f\u308a\u884c\u304d\u307e\u3059<\/p>\n<h2>3.1 \u5909\u6570\u3068\u53ef\u5909\u6027<\/h2>\n<p>\u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001\u5909\u6570\u306f\u6a19\u6e96\u3067\u30a4\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\uff08\u4e0d\u5909\uff09\u306b\u306a\u308b\u3068\u66f8\u3044\u305f<br \/>\n\u305d\u308c\u304c\u4ee5\u4e0b<br \/>\n\/\/ \u30a4\u30df\u30e5\u30fc\u30bf\u30d6\u30eb<br \/>\nlet val1: i32 = 5;<\/p>\n<p>\/\/ \u30df\u30e5\u30fc\u30bf\u30d6\u30eb<br \/>\nlet mut val2: i32 = 5;<\/p>\n<p>val1 = 6 \/\/\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc<br \/>\nval2 = 6 \/\/OK<\/p>\n<p>\u518d\u4ee3\u5165\u3059\u308b\u5834\u5408\u306f\u5fc5\u305alet\u306e\u5f8c\u306bmut\u3092\u3064\u3051\u308b\u5fc5\u8981\u304c\u3042\u308b<\/p>\n<p>\u5909\u6570\u3068\u5b9a\u6570\u306e\u9055\u3044<br \/>\nRust\u306fjs\u306a\u3069\u3068\u540c\u3058\u3088\u3046\u3001const\u3067\u5b9a\u6570\u3092\u5b9a\u7fa9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<br \/>\n\u3053\u306e\u5b9a\u6570\u306f\u5fc5\u305a\u578b\u5ba3\u8a00\u304c\u5fc5\u8981\u3068\u306e\u3053\u3068<br \/>\nconst MAX_POINTS: u32 = 100_000;<\/p>\n<p>const\u3068\u30a4\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\u306e\u9055\u3044\u306f\uff1f<br \/>\n\u3069\u3061\u3089\u3082\u4e0d\u5909\u3067\u3042\u308a\u3001\u9055\u3044\u304c\u306a\u3044\u3088\u3046\u306b\u898b\u3048\u308b\u3002\u5b9f\u969b\u6b63\u78ba\u306b\u306f\u628a\u63e1\u3057\u3066\u3044\u306a\u3044\u304c\u3001\u8abf\u3079\u3066\u307f\u308b\u3068<\/p>\n<p>let\u306f\u578b\u5ba3\u8a00\u304c\u4e0d\u8981\u3060\u304cconst\u306f\u5fc5\u8981<br \/>\nconst\u306f\u3069\u3093\u306a\u30b9\u30b3\u30fc\u30d7\uff08\u30b0\u30ed\u30fc\u30d0\u30eb\u30b9\u30b3\u30fc\u30d7\uff09\u3067\u3082\u5b9a\u7fa9\u53ef\u80fd\u3068\u3044\u3046\u3068\u3053\u308d<\/p>\n<p>\u30b7\u30e3\u30c9\u30fc\u30a4\u30f3\u30b0<\/p>\n<p>\u524d\u306b\u5b9a\u7fa9\u3057\u305f\u5909\u6570\u3068\u540c\u3058\u540d\u524d\u306e\u5909\u6570\u3092\u65b0\u3057\u304f\u5ba3\u8a00\u3067\u304d\u3001 \u65b0\u3057\u3044\u5909\u6570\u306f\u3001\u524d\u306e\u5909\u6570\u3092\u8986\u3044\u96a0\u3057\u307e\u3059\u3002Rustacean\u306f\u3053\u308c\u3092\u6700\u521d\u306e\u5909\u6570\u306f\u3001 2\u756a\u76ee\u306e\u5909\u6570\u306b\u8986\u3044\u96a0\u3055\u308c\u305f\u3068\u8a00\u3044\u3001\u3053\u306e\u5909\u6570\u3092\u4f7f\u7528\u3057\u305f\u969b\u306b\u30012\u756a\u76ee\u306e\u5909\u6570\u306e\u5024\u304c\u73fe\u308c\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>fn main() {<br \/>\nlet x = 5;<\/p>\n<p>let x = x + 1;<\/p>\n<p>{<br \/>\nlet x = x * 2;<br \/>\nprintln!(&#8220;The value of x in the inner scope is: {}&#8221;, x);<br \/>\n}<\/p>\n<p>println!(&#8220;The value of x is: {}&#8221;, x);<br \/>\n}<\/p>\n<p>\u3053\u308c\u306f\u30a4\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\u3067\u3082\u554f\u984c\u306a\u3044<br \/>\n\u7406\u7531\u3068\u3057\u3066\u306f\u3001let x = 5 \u3067\u30a4\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\u3067\u5ba3\u8a00\u3057\u305f\u5f8c\u306b\u3001\u518d\u5ea6\u5ba3\u8a00\u3057\u306a\u304a\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u5143\u306ex\u3068\u3044\u3046\u5909\u6570\u306bx + 1\u3092\u5165\u308c\u308b\u306e\u3067\u306f\u306a\u304f\u3001\u65b0\u3057\u3044x\u3068\u3044\u3046\u5909\u6570\u306b\u904e\u53bb\u306ex\u306b1\u3092\u30d7\u30e9\u30b9\u3057\u305f\u5024\u3092\u5165\u308c\u3066\u3044\u308b\u3068\u3044\u3046\u611f\u3058<br \/>\nlet mut x = 5;<br \/>\nx = &#8220;This is String&#8221;;<\/p>\n<p>\u3053\u306e\u3088\u3046\u306b\u3059\u308b\u3068\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u306b\u306a\u308b<br \/>\nmut\u3067\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\u306b\u3057\u3066\u3082\u5143\u306e\u578b\u3068\u9055\u3046\u5024\u306f\u5165\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044<\/p>\n<h2>3.2 \u30c7\u30fc\u30bf\u578b<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Rust\u306f\u9759\u7684\u578b\u4ed8\u3051\u8a00\u8a9e\u3067\u3042\u308a\u3001\u3059\u3079\u3066\u306e\u5909\u6570\u306e\u578b\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306b\u5fc5\u305a\u5224\u660e\u3057\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u8907\u6570\u306e\u578b\u304c\u4e88\u60f3\u3055\u308c\u308b\u5834\u5408\u306f\u578b\u6ce8\u91c8\u3092\u3064\u3051\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">let guess: u32 = &#8220;42&#8221;.parse().expect(&#8220;Not a number!&#8221;);<\/ul>\n<h3>\u30b9\u30ab\u30e9\u30fc\u578b<\/h3>\n<blockquote><p>Rust\u306b\u306f\u4e3b\u306b4\u3064\u306e\u30b9\u30ab\u30e9\u30fc\u578b\u304c\u3042\u308a\u307e\u3059: \u6574\u6570\u3001\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u3001\u8ad6\u7406\u5024\u3001\u6700\u5f8c\u306b\u6587\u5b57\u3067\u3059\u3002<\/p><\/blockquote>\n<p>\u30b9\u30ab\u30e9\u30fc\u306f\u7c21\u5358\u306b\u3044\u3046\u3068\u666e\u901a\u306e\u6570\u5b57\u3002\u5927\u304d\u3055\u306e\u307f\u3092\u6301\u3063\u3066\u3044\u308b<br \/>\n\u76f8\u5bfe\u3059\u308b\u3082\u306e\u3068\u3057\u3066\u30d9\u30af\u30c8\u30eb\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308b<br \/>\n\u30d9\u30af\u30c8\u30eb\u306f\u5927\u304d\u3055\u306b\u52a0\u3048\u3001\u65b9\u5411\u304c\u3042\u308b\u3082\u306e<\/p>\n<p>\u6574\u6570\u578b<\/p>\n<p>\u5927\u304d\u3055<br \/>\n\u7b26\u53f7\u4ed8\u304d<br \/>\n\u7b26\u53f7\u306a\u3057<\/p>\n<p>8-bit<br \/>\ni8<br \/>\nu8<\/p>\n<p>16-bit<br \/>\ni16<br \/>\nu16<\/p>\n<p>32-bit<br \/>\ni32<br \/>\nu32<\/p>\n<p>64-bit<br \/>\ni64<br \/>\nu64<\/p>\n<p>arch<br \/>\nisize<br \/>\nusize<\/p>\n<p>Rust\u3067\u306f8bit\u304b\u3089\u6700\u592764bit\u307e\u3067\u306e\u6574\u6570\u3092\u8868\u73fe\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd<br \/>\nbit\u3068\u306f\u4e8c\u9032\u6570\u3067\u8868\u3055\u308c\u308b\u3082\u306e\u3067\u3042\u308a\u30018bit\u30671\u30d0\u30a4\u30c8\u3068\u306a\u308b<br \/>\n\u4f8b\u3068\u3057\u3066\u30018bit\u3067\u8868\u305b\u308b\u6700\u5927\u5024\u306f11111111\u3067255\u3068\u306a\u308b<br \/>\n\u3053\u308c\u3092\u7b26\u53f7\u4ed8\u304d\u306e\u5834\u5408\u306f\u5148\u982d\u306e1bit\u304c\u7b26\u53f7\u3092\u8868\u3059\u305f\u3081\u30011111111\u3067\u00b1127\u307e\u3067\u306e\u5024\u3092\u8868\u305b\u308b<br \/>\nisize\u3068usize\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u52d5\u4f5c\u3057\u3066\u3044\u308b\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u4f9d\u5b58\u3059\u308b\u3068\u306e\u3053\u3068<br \/>\n\uff0832bit\u306a\u308932bit\u300164bit\u306a\u308964bit\uff09<\/p>\n<p>\u6d6e\u52d5\u5c0f\u6570\u70b9\u578b<\/p>\n<p>Rust\u306b\u306f\u3055\u3089\u306b\u3001\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u306b\u5bfe\u3057\u3066\u3082\u30012\u7a2e\u985e\u306e\u57fa\u672c\u578b\u304c\u3042\u308a\u3001\u6d6e\u52d5\u5c0f\u6570\u70b9\u6570\u3068\u306f\u6570\u5024\u306b\u5c0f\u6570\u70b9\u304c\u3064\u3044\u305f\u3082\u306e\u306e\u3053\u3068\u3067\u3059\u3002 Rust\u306e\u6d6e\u52d5\u5c0f\u6570\u70b9\u578b\u306f\u3001f32\u3068f64\u3067\u3001\u305d\u308c\u305e\u308c32\u30d3\u30c3\u30c8\u306864\u30d3\u30c3\u30c8\u30b5\u30a4\u30ba\u3067\u3059\u3002\u57fa\u6e96\u578b\u306ff64\u3067\u3059\u3002 \u306a\u305c\u306a\u3089\u3001\u73fe\u4ee3\u306eCPU\u3067\u306f\u3001f32\u3068\u307b\u307c\u540c\u30b9\u30d4\u30fc\u30c9\u306b\u3082\u304b\u304b\u308f\u3089\u305a\u3001\u3088\u308a\u7cbe\u5ea6\u304c\u9ad8\u304f\u306a\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n<p>fn main() {<br \/>\nlet x = 2.0; \/\/ f64<\/p>\n<p>let y: f32 = 3.0; \/\/ f32<br \/>\n}<\/p>\n<p>\u578b\u3092\u5b9a\u7fa9\u305b\u305a\u306b\u5c0f\u6570\u3092\u683c\u7d0d\u3057\u305f\u5834\u5408\u306f\u81ea\u52d5\u7684\u306bf64\u578b\u306b\u306a\u308b\u3089\u3057\u3044<br \/>\n\uff08\u901f\u5ea6\u304c\u540c\u3058\u306a\u3089\u57fa\u672c\u7684\u306b\u5c0f\u6570\u3092\u4f7f\u3046\u969b\u306ff64\u578b\u3067\u3044\u3044\u304b\u3082\uff09<\/p>\n<p>\u6570\u5024\u6f14\u7b97<br \/>\n\u3053\u308c\u306f\u307b\u304b\u306e\u8a00\u8a9e\u3068\u5909\u308f\u3089\u306a\u3044\u306e\u3067\u98db\u3070\u3059<\/p>\n<p>\u8ad6\u7406\u5024\u578b<\/p>\n<p>\u4ed6\u306e\u591a\u304f\u306e\u8a00\u8a9e\u540c\u69d8\u3001Rust\u306e\u8ad6\u7406\u5024\u578b\u3082\u53d6\u308a\u3046\u308b\u5024\u306f\u4e8c\u3064\u3057\u304b\u3042\u308a\u307e\u305b\u3093: true\u3068false\u3067\u3059\u3002 Rust\u306e\u8ad6\u7406\u5024\u578b\u306f\u3001bool\u3068\u6307\u5b9a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>fn main() {<br \/>\nlet t = true;<\/p>\n<p>let f: bool = false; \/\/ with explicit type annotation<br \/>\n\/\/ \u660e\u793a\u7684\u578b\u6ce8\u91c8\u4ed8\u304d\u3067<br \/>\n}<\/p>\n<p>\u578b\u5ba3\u8a00\u3092\u3057\u3066\u3082\u3057\u306a\u304f\u3066\u3082\u554f\u984c\u306a\u3044\u3089\u3057\u3044<br \/>\n\u305f\u3073\u305f\u3073\u578b\u5ba3\u8a00\u3092\u3057\u306a\u304f\u3066\u3082\u81ea\u52d5\u7684\u306b\u89e3\u91c8\u3057\u3066\u304f\u308c\u308b\u3068\u306e\u3053\u3068<\/p>\n<p>\u6587\u5b57\u578b<\/p>\n<p>Rust\u306b\u306f\u6587\u5b57\u3082\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002Rust\u306echar\u578b\u306f\u3001 \u8a00\u8a9e\u306e\u6700\u3082\u57fa\u672c\u7684\u306a\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u578b<\/p>\n<p>fn main() {<br \/>\nlet c = &#8216;z&#8217;;<br \/>\nlet z = &#8216;\u2124&#8217;;<br \/>\nlet heart_eyed_cat = &#8216;?&#8217;; \/\/\u30cf\u30fc\u30c8\u76ee\u306e\u732b<br \/>\n}<\/p>\n<p>char\u578b\u306e\u5834\u5408\u306f\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30c6\u30fc\u30b7\u30e7\u30f3\u3067\u56f2\u3046\u3053\u3068<br \/>\nchar\u578b\u306f\u30e6\u30cb\u30b3\u30fc\u30c9\u306e\u30b9\u30ab\u30e9\u30fc\u5024\u3092\u8868\u3057\u3066\u3044\u308b<br \/>\nhttps:\/\/ja.wikipedia.org\/wiki\/Unicode%E4%B8%80%E8%A6%A7_0000-0FFF<br \/>\n\u3053\u308c\u3060\u3051\u306e\u6587\u5b57\u3092char\u578b\u3060\u3051\u3067\u8868\u73fe\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd<\/p>\n<p>\u8907\u5408\u578b<br \/>\n\u8907\u5408\u578b\u3068\u3044\u3046\u3068\u5c11\u3057\u308f\u304b\u308a\u3065\u3089\u3044\u611f\u3058\u306f\u3042\u308b\u304c\u3001\u914d\u5217\u3084\u30bf\u30d7\u30eb\u304c\u305d\u308c\u306b\u3042\u305f\u308b<\/p>\n<p>\u30bf\u30d7\u30eb\u578b<br \/>\n\u5ba3\u8a00\u306f\u4ee5\u4e0b<br \/>\nfn main() {<br \/>\nlet tup: (i32, f64, u8) = (500, 6.4, 1);<br \/>\n}<\/p>\n<p>let\u306e\u3042\u3068\u306b\u5909\u6570\u540d\u3067\u3001\u305d\u306e\u3042\u3068\u306b\u578b\u3092\u3072\u3068\u3064\u3065\u3064\u66f8\u3044\u3066\u3044\u304f\uff08\u5c11\u3057\u3081\u3093\u3069\u304f\u3055\u305d\u3046\uff09<br \/>\n\u3057\u304b\u3057\u3053\u308c\u3089\u306f\u307b\u304b\u306e\u5909\u6570\u3068\u540c\u3058\u304f\u578b\u5ba3\u8a00\u304c\u306a\u304f\u3066\u3082OK<br \/>\nfn main() {<br \/>\nlet tup = (500, 6.4, 1);<\/p>\n<p>let (x, y, z) = tup;<\/p>\n<p>println!(&#8220;The value of y is: {}&#8221;, y);<br \/>\n}<\/p>\n<p>\u30a2\u30af\u30bb\u30b9\u65b9\u6cd5<br \/>\nlet tup = (500, 6.4, 1);<\/p>\n<p>\/\/\u4e0a\u306b\u3042\u308b\u3088\u3046\u306b\u3001\u6700\u521d\u306b\u5ba3\u8a00\u3057\u3066\u3001\u305d\u306e\u4e0b\u3067x, y, z\u3068\u3044\u3046\u5909\u6570\u306b\u305d\u308c\u305e\u308c\u72ec\u7acb\u3055\u305b\u3066\u5165\u308c\u308b<br \/>\nlet (x, y, z) = tup;<br \/>\nprintln!(&#8220;The value of y is: {}&#8221;, y);<\/p>\n<p>\/\/\u914d\u5217\u306e\u3088\u3046\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u756a\u53f7\u3067\u30a2\u30af\u30bb\u30b9<br \/>\nprintln!(&#8220;The value of y is: {}&#8221;, tup.1);<\/p>\n<p>\u914d\u5217\u578b<br \/>\n\u307b\u304b\u306e\u8a00\u8a9e\u3068\u540c\u3058\u3088\u3046\u306b\u5ba3\u8a00\u53ef\u80fd<br \/>\nfn main() {<br \/>\nlet a = [1, 2, 3, 4, 5];<br \/>\n}<\/p>\n<p>\u30bf\u30d7\u30eb\u578b\u3068\u9055\u3063\u3066\u3001\u3053\u306e\u914d\u5217\u306e\u4e2d\u306e\u30c7\u30fc\u30bf\u306e\u578b\u306f\u3059\u3079\u3066\u540c\u3058\u3067\u306a\u3051\u308c\u3070\u3044\u3051\u306a\u3044<br \/>\n\u307e\u305f\u3001Rust\u306e\u914d\u5217\u306f\u4e00\u5ea6\u5ba3\u8a00\u3055\u308c\u305f\u3089\u30b5\u30a4\u30ba\u3092\u4f38\u3070\u3059\u3053\u3068\u3082\u7e2e\u3081\u308b\u3053\u3068\u3082\u3067\u304d\u306a\u3044\u306e\u3067\u6ce8\u610f<br \/>\n\u4f3c\u305f\u3088\u3046\u306a\u578b\u3068\u3057\u3066\u30d9\u30af\u30bf\u578b\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308b\u304c\u3001\u3053\u308c\u306f8\u7ae0\u3067\u89e3\u8aac\u3055\u308c\u308b\u3089\u3057\u3044<\/p>\n<h2>3.3 \u95a2\u6570<\/h2>\n<p>\u7d9a\u3044\u3066\u306f\u95a2\u6570\u306e\u66f8\u304d\u65b9\u306b\u3064\u3044\u3066<\/p>\n<p>Rust\u306fmain\u95a2\u6570\u304c\u5b9f\u884c\u6642\u306e\u30a8\u30f3\u30c8\u30ea\u30dd\u30a4\u30f3\u30c8\uff08\u6700\u521d\u306b\u8d70\u308b\u51e6\u7406\uff09\u306b\u306a\u3063\u3066\u3044\u308b<br \/>\nfn main() {<br \/>\nprintln!(&#8220;Hello, world!&#8221;);<\/p>\n<p>another_function();<br \/>\n}<\/p>\n<p>fn another_function() {<br \/>\nprintln!(&#8220;Another function.&#8221;); \/\/ \u5225\u306e\u95a2\u6570<br \/>\n}<\/p>\n<p>\u578b\u306e\u5ba3\u8a00\u306ffn\u306e\u5f8c\u306b\u95a2\u6570\u540d\u3001\u5f15\u6570\u3068\u3044\u3063\u305f\u611f\u3058\u3067\u5b9a\u7fa9\u3059\u308b<br \/>\n\u95a2\u6570\u540d\u306f\u30b9\u30cd\u30fc\u30af\u30b1\u30fc\u30b9\u3067\u5b9a\u7fa9\u3059\u308b\u306e\u304c\u6163\u7fd2\uff08\u5358\u8a9e\u306e\u9593\u3092_\u3067\u3064\u306a\u3050\uff09<\/p>\n<p>\u4f3c\u305f\u3088\u3046\u306a\u3082\u306e\u3068\u3057\u3066\u30ad\u30e3\u30e1\u30eb\u30b1\u30fc\u30b9\u304c\u3042\u308b\uff08\u5358\u8a9e\u306e\u5909\u308f\u308a\u76ee\u3092\u5927\u6587\u5b57\u3067\u66f8\u304f \u4f8b\uff1aanotherFunction\uff09<br \/>\n\u899a\u3048\u3066\u304a\u3044\u3066\u640d\u306f\u306a\u3044<\/p>\n<p>\u5f15\u6570\u304c\u3042\u308b\u5834\u5408\u306f\u4ee5\u4e0b<br \/>\nfn another_function(x: i32) {<br \/>\nprintln!(&#8220;The value of x is: {}&#8221;, x); \/\/ x\u306e\u5024\u306f{}\u3067\u3059<br \/>\n}<\/p>\n<p>\u95a2\u6570\u540d\u306e\u3042\u3068\u306e()\u306e\u4e2d\u306b\u5909\u6570\u540d: \u578b\u3068\u3044\u3063\u305f\u66f8\u304d\u65b9\u3092\u3059\u308b<br \/>\n\u95a2\u6570\u306e\u5f15\u6570\u306f\u5fc5\u305a\u578b\u306e\u5ba3\u8a00\u304c\u5fc5\u8981\u3068\u306e\u3053\u3068<\/p>\n<p>\u623b\u308a\u5024\u306e\u3042\u308b\u95a2\u6570<br \/>\n\u623b\u308a\u5024\u306b\u95a2\u3057\u3066\u306f\u5c11\u3057\u7279\u6b8a\u306a\u90e8\u5206\u304c\u3042\u308b<br \/>\n\u623b\u308a\u5024\u304c\u3042\u308b\u95a2\u6570\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9a\u7fa9<br \/>\nfn another_function() -&gt; i32{<br \/>\n5<br \/>\n}<\/p>\n<p>\/\/return\u3067\u3082\u8fd4\u305b\u308b<br \/>\nfn another_function() -&gt; i32{<br \/>\nreturn 5;<br \/>\n}<\/p>\n<p>\u30a2\u30ed\u30fc-&gt;\u306e\u3042\u3068\u306b\u623b\u308a\u5024\u306e\u578b\u3092\u5ba3\u8a00<br \/>\n\u3053\u308c\u3092\u898b\u305f\u3068\u304d\u306b\u3001\u5c11\u3057\u3067\u3082\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u304b\u3058\u3063\u3066\u3044\u308b\u4eba\u306f\u304a\u304b\u3057\u3044\u3068\u601d\u3046\u304b\u3082\u3057\u308c\u306a\u3044\u304cRust\u7684\u306b\u306f\u3053\u308c\u3067OK<br \/>\nRust\u306f\u623b\u308a\u5024\u304c\u3042\u308b\u95a2\u6570\u3092\u4f5c\u6210\u3057\u305f\u6642\u306breturn\u6587\u3092\u66f8\u304b\u306a\u3044\u3068\u3001\u6700\u5f8c\u306b\u8a55\u4fa1\u3057\u305f\u5024\u304c\u623b\u308a\u5024\u3068\u306a\u308b\u7279\u6027\u3092\u6301\u3063\u3066\u3044\u308b\uff08\u3053\u306e\u5834\u5408\u306f;\u306f\u5fc5\u8981\u306a\u3044\uff09<br \/>\n\uff08\u6b63\u76f4return\u3067\u660e\u78ba\u306b\u6307\u5b9a\u3057\u305f\u307b\u3046\u304c\u53ef\u8aad\u6027\u304c\u3042\u304c\u308b\u306e\u3067\u306f\uff1f\u3068\u601d\u3046\u304c\u3069\u3046\u3060\u308d\u3046\u304b\uff09<\/p>\n<h2>3.4 \u30b3\u30e1\u30f3\u30c8<\/h2>\n<pre class=\"post-pre\"><code><span class=\"c1\">\/\/ \u3053\u308c\u3067\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8\u306b\u306a\u308b<\/span>\r\n<\/code><\/pre>\n<p>\u3053\u306e\u7a0b\u5ea6\u306e\u3053\u3068\u3057\u304b\u66f8\u304b\u308c\u3066\u306a\u3044\u306e\u3067\u98db\u3070\u3059<br \/>\n\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30b3\u30e1\u30f3\u30c8\u306b\u95a2\u3057\u3066\u306f\u3053\u3053\u3067\u306f\u89e3\u8aac\u3055\u308c\u3066\u3044\u306a\u3044<\/p>\n<h2>3.5 \u5236\u5fa1\u30d5\u30ed\u30fc<\/h2>\n<ul class=\"post-ul\">\u3053\u308c\u3082\u5c11\u3057\u308f\u304b\u308a\u3065\u3089\u304f\u304b\u304b\u308c\u3066\u3044\u308b\u304c\u3001\u3088\u3046\u306f\u30eb\u30fc\u30d7\u3084if\u6587\u306e\u3053\u3068<\/ul>\n<h3>if\u6587<\/h3>\n<pre class=\"post-pre\"><code><span class=\"k\">fn<\/span> <span class=\"nf\">main<\/span><span class=\"p\">()<\/span> <span class=\"p\">{<\/span>\r\n    <span class=\"k\">let<\/span> <span class=\"n\">number<\/span> <span class=\"o\">=<\/span> <span class=\"mi\">3<\/span><span class=\"p\">;<\/span>\r\n\r\n    <span class=\"k\">if<\/span> <span class=\"n\">number<\/span> <span class=\"o\">&lt;<\/span> <span class=\"mi\">5<\/span> <span class=\"p\">{<\/span>\r\n        <span class=\"nd\">println!<\/span><span class=\"p\">(<\/span><span class=\"s\">\"condition was true\"<\/span><span class=\"p\">);<\/span>       <span class=\"c1\">\/\/ \u6761\u4ef6\u306f\u771f\u3067\u3057\u305f<\/span>\r\n    <span class=\"p\">}<\/span> <span class=\"k\">else<\/span> <span class=\"p\">{<\/span>\r\n        <span class=\"nd\">println!<\/span><span class=\"p\">(<\/span><span class=\"s\">\"condition was false\"<\/span><span class=\"p\">);<\/span>      <span class=\"c1\">\/\/ \u6761\u4ef6\u306f\u507d\u3067\u3057\u305f<\/span>\r\n    <span class=\"p\">}<\/span>\r\n<span class=\"p\">}<\/span>\r\n<\/code><\/pre>\n<p>if\u6587\u306f\u3053\u3093\u306a\u611f\u3058<br \/>\n\u6761\u4ef6\u5f0f\u306b\u304b\u3063\u3053\u304c\u5fc5\u8981\u306a\u3044\u3068\u3053\u308d\u306fpython\u306b\u8fd1\u3044<\/p>\n<p>\u4e09\u9805\u6f14\u7b97\u5b50<br \/>\nRust\u3082\u307b\u304b\u306e\u8a00\u8a9e\u540c\u69d8\u4e09\u9805\u6f14\u7b97\u5b50\u304c\u3042\u308b<br \/>\n\u66f8\u304d\u65b9\u306f\u4ee5\u4e0b<br \/>\nfn main() {<br \/>\nlet condition = true;<br \/>\nlet number = if condition { 5 } else { 6 };<\/p>\n<p>\/\/ number\u306e\u5024\u306f\u3001{}\u3067\u3059<br \/>\nprintln!(&#8220;The value of number is: {}&#8221;, number);<br \/>\n}<\/p>\n<p>\u3053\u308c\u306fif\u306e\u5f8c\u306e\u6761\u4ef6\u5f0f\u3092\u8a55\u4fa1\u3057\u3066\u3001true\u3060\u3063\u305f\u3089else\u306e\u624b\u524d\u306e\u5024\u3001false\u3060\u3063\u305f\u3089else\u4ee5\u964d\u306e\u5024\u304cnumber\u306b\u5165\u308b\u3053\u3068\u306b\u306a\u308b<br \/>\n\u3053\u306e\u5834\u5408\u306fnumber\u306b\u306f5\u304c\u5165\u308b<br \/>\nfn main() {<br \/>\nlet condition = true;<\/p>\n<p>let number = if condition { 5 } else { &#8220;six&#8221; };<\/p>\n<p>println!(&#8220;The value of number is: {}&#8221;, number);<br \/>\n}<\/p>\n<p>\u3053\u306e\u5834\u5408\u306f\u30a8\u30e9\u30fc\u306b\u306a\u308b<br \/>\n\u8a55\u4fa1\u3057\u305f\u5f8c\u306b\u5909\u6570\u306b\u5165\u308c\u308b\u5024\u306e\u578b\u306f\u540c\u4e00\u3067\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044<br \/>\n\u5148\u307b\u3069\u3082\u8a00\u3063\u305f\u3088\u3046\u306b\u3001\u5909\u6570\u306e\u578b\u306f\u5358\u72ec\u3067\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3068\u3044\u3046\u30eb\u30fc\u30eb\u306b\u5f93\u3063\u3066\u3044\u308b<\/p>\n<h3>\u30eb\u30fc\u30d7\u51e6\u7406<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Rust\u306e\u30eb\u30fc\u30d7\u51e6\u7406\u306f\u3001loop while for\u306e\u4e09\u3064\u304c\u5b58\u5728\u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>loop<br \/>\nfn main() {<br \/>\nloop {<br \/>\nprintln!(&#8220;again!&#8221;); \/\/ \u307e\u305f<br \/>\n}<br \/>\n}<\/p>\n<p>loop\u306f\u3053\u306e\u3088\u3046\u306b\u66f8\u304f\u3053\u3068\u3067\u7121\u9650\u306b\u30eb\u30fc\u30d7\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b<br \/>\n\u3053\u306eloop\u3092\u629c\u3051\u308b\u306b\u306fbreak\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308b<br \/>\nfn main() {<br \/>\nlet mut loops: i32 = 0;<br \/>\nconst LIMIT: i32 = 10;<br \/>\nloop {<br \/>\nif loops == LIMIT{<br \/>\nbreak;<br \/>\n}<br \/>\nprintln!(&#8220;again!&#8221;); \/\/ \u307e\u305f<br \/>\nloops+=1;<br \/>\n}<br \/>\n}<\/p>\n<p>\u3053\u308c\u306710\u56de\u30eb\u30fc\u30d7\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/p>\n<p>while<br \/>\nfn main() {<br \/>\nlet mut number = 3;<\/p>\n<p>while number != 0 {<br \/>\nprintln!(&#8220;{}!&#8221;, number);<\/p>\n<p>number -= 1;<br \/>\n}<\/p>\n<p>\/\/ \u767a\u5c04\uff01<br \/>\nprintln!(&#8220;LIFTOFF!!!&#8221;);<br \/>\n}<\/p>\n<p>\u3053\u308c\u306f\u3088\u304f\u3042\u308bwhile\u3068\u540c\u3058\u306a\u306e\u3067\u98db\u3070\u3059<br \/>\n\u5358\u7d14\u306bwhile\u306e\u3042\u3068\u306e\u5f0f\u304c\u771f\u306e\u9593\u306f\u7e70\u308a\u8fd4\u3059\u3060\u3051<\/p>\n<p>for<br \/>\nfn main() {<br \/>\nlet a = [10, 20, 30, 40, 50];<\/p>\n<p>for element in a {<br \/>\nprintln!(&#8220;the value is: {}&#8221;, element);<br \/>\n}<br \/>\n}<\/p>\n<p>for\u6587\u306e\u57fa\u672c\u306fpython\u3068\u540c\u3058\u4ed5\u7d44\u307f<br \/>\n\u3053\u306e\u6587\u3060\u3068element\u306e\u4e2d\u306b\u306f10, 20\u3068a\u306e\u5024\u304c\u9806\u756a\u306b\u5165\u3063\u3066\u3044\u304f<br \/>\n\u30eb\u30fc\u30d7\u3067\u4e00\u756a\u591a\u304f\u4f7f\u3046\u306e\u306f\u3053\u306efor\u6587<br \/>\nfn main() {<br \/>\nfor number in (1..4).rev() {<br \/>\nprintln!(&#8220;{}!&#8221;, number);<br \/>\n}<br \/>\nprintln!(&#8220;LIFTOFF!!!&#8221;);<br \/>\n}<\/p>\n<p>\u3053\u3053\u304c\u5c11\u3057\u7279\u6b8a\u306a\u66f8\u304d\u65b9\u306b\u306a\u308b<br \/>\nin\u306e\u5f8c\u3092(1..4)\u306e\u3088\u3046\u306b\u3059\u308b\u3053\u3068\u3067\u7bc4\u56f2\u3092\u8868\u3059\u3053\u3068\u304c\u3067\u304d\u308b<br \/>\n\u3053\u306e\u5834\u5408\u306f1\u4ee5\u4e0a4\u672a\u6e80\u306e\u9593\u3068\u306a\u308b<br \/>\n\u4f8b\u3048\u30701..=4\u3068\u3057\u305f\u5834\u5408\u306f1\u4ee5\u4e0a4\u4ee5\u4e0b\u306b\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd<br \/>\nrev\u30e1\u30bd\u30c3\u30c9\u306f\u9006\u9806\u306b\u4e26\u3079\u66ff\u3048\u3066\u304f\u308c\u308b\u30e1\u30bd\u30c3\u30c9\u3089\u3057\u3044<br \/>\n\u3061\u306a\u307f\u306b\u3053\u306enumber\u306f\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\u3067\u3042\u308a\u3001\u30eb\u30fc\u30d7\u306e\u4e2d\u3067\u5024\u3092\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u304c\u53ef\u80fd<br \/>\nfn main() {<br \/>\nfor number in (1..4).rev() {<br \/>\nprintln!(&#8220;{}!&#8221;, number+1);<br \/>\n}<br \/>\nprintln!(&#8220;LIFTOFF!!!&#8221;);<br \/>\n}<\/p>\n<p>4!<br \/>\n3!<br \/>\n2!<br \/>\nLIFTOFF!!!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>3. \u4e00\u822c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u6982\u5ff5 \u524d\u56de\u306e\u8a18\u4e8b &nbsp; https:\/\/qiita.com\/revion [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45739","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>- Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/45739-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"3. \u4e00\u822c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u6982\u5ff5 \u524d\u56de\u306e\u8a18\u4e8b &nbsp; https:\/\/qiita.com\/revion [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/45739-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-09T03:35:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T02:26:05+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u96c5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u96c5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45739-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/45739-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-09-09T03:35:28+00:00\",\"dateModified\":\"2024-04-30T02:26:05+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/45739-2\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\",\"name\":\"\u79d1, \u96c5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u96c5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45739-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/45739-2\/","og_locale":"zh_CN","og_type":"article","og_description":"3. \u4e00\u822c\u7684\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306e\u6982\u5ff5 \u524d\u56de\u306e\u8a18\u4e8b &nbsp; https:\/\/qiita.com\/revion [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/45739-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-09-09T03:35:28+00:00","article_modified_time":"2024-04-30T02:26:05+00:00","author":"\u79d1, \u96c5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u96c5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45739-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/45739-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-09-09T03:35:28+00:00","dateModified":"2024-04-30T02:26:05+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/45739-2\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a","name":"\u79d1, \u96c5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","caption":"\u79d1, \u96c5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45739-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45739","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=45739"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45739\/revisions"}],"predecessor-version":[{"id":91349,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45739\/revisions\/91349"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=45739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=45739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=45739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}