{"id":105308,"date":"2026-09-15T09:16:25","date_gmt":"2026-09-15T01:16:25","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/105308.html"},"modified":"2026-09-15T09:16:25","modified_gmt":"2026-09-15T01:16:25","slug":"%e3%80%90%e4%bb%93%e9%a2%89%e8%af%ad%e8%a8%80%e5%85%a5%e9%97%a8-%c2%b7-%e7%ac%ac6%e8%af%be%e3%80%91","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/105308.html","title":{"rendered":"\u3010\u4ed3\u9889\u8bed\u8a00\u5165\u95e8 \u00b7 \u7b2c6\u8bfe\u3011"},"content":{"rendered":"<h2>\u3010\u4ed3\u9889\u8bed\u8a00\u5165\u95e8 \u00b7 \u7b2c6\u8bfe\u3011\u5b57\u7b26\u4e32\u8be6\u89e3\u4e0e\u5b57\u7b26\u4e32\u63d2\u503c<\/h2>\n<p>\u4e0a\u8282\u8bfe\u6211\u4eec\u7528\u5faa\u73af\u8ba9\u7a0b\u5e8f\u5b66\u4f1a\u4e86&#034;\u91cd\u590d\u5e72\u6d3b&#034;\u3002\u4e0d\u8fc7\u524d\u51e0\u8bfe\u8f93\u51fa\u7684\u8fd8\u90fd\u662f\u5e72\u5df4\u5df4\u7684\u6570\u5b57&#xff0c;\u800c\u771f\u5b9e\u7a0b\u5e8f\u5904\u7406\u5f97\u6700\u591a\u7684\u6570\u636e\u5176\u5b9e\u662f\u6587\u672c&#xff1a;\u7528\u6237\u540d\u3001\u6587\u4ef6\u8def\u5f84\u3001\u4e00\u53e5\u8bdd\u3001\u4e00\u6761\u65e5\u5fd7\u2026\u2026\u7b2c 3 \u8bfe\u6211\u4eec\u7b80\u5355\u7528\u8fc7\u53cc\u5f15\u53f7\u5b57\u7b26\u4e32&#xff0c;\u8fd9\u8282\u8bfe\u628a\u5b83\u5f7b\u5e95\u8bb2\u900f\u2014\u2014\u600e\u4e48\u628a\u53d8\u91cf\u5d4c\u8fdb\u53e5\u5b50\u91cc&#xff08;\u5b57\u7b26\u4e32\u63d2\u503c&#xff09;\u3001\u600e\u4e48\u53d6\u51fa\u5176\u4e2d\u4e00\u90e8\u5206&#xff08;\u5207\u7247&#xff09;\u3001\u82f1\u6587\u548c\u6c49\u5b57\u957f\u5ea6\u4e3a\u4ec0\u4e48\u4e0d\u4e00\u6837&#xff08;UTF-8&#xff09;&#xff0c;\u4ee5\u53ca\u4e00\u5927\u6279\u5f00\u7bb1\u5373\u7528\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5\u3002<\/p>\n<p>\u672c\u6587\u662f\u7cfb\u5217\u7b2c 6 \u8bfe&#xff1a;\u6b63\u5f0f\u5b66\u4e60\u4ed3\u9889\u7684 String&#xff08;\u5b57\u7b26\u4e32&#xff09;\u3001Rune&#xff08;\u5b57\u7b26&#xff09;\u3001\u8f6c\u4e49\u5b57\u7b26\u3001\u7279\u6b8a\u5b57\u7b26\u4e32&#xff08;raw \u4e32 \/ \u591a\u884c\u4e32&#xff09;\u3001\u5207\u7247\u4e0e\u5e38\u7528\u65b9\u6cd5&#xff0c;\u6700\u540e\u7528\u4e00\u4e2a&#034;\u53e5\u5b50\u5206\u6790\u5668&#034;\u7efc\u5408\u5b9e\u6218\u6536\u5c3e\u3002<\/p>\n<hr \/>\n<h3>\u76ee\u5f55&#xff08;\u7cfb\u5217\u5bfc\u822a&#xff09;<\/h3>\n<p>\u6574\u5957\u8def\u7ebf\u5171 7 \u4e2a\u6a21\u5757\u300130 \u8bfe&#xff0c;\u6309\u6bcf\u5468 2&#xff5e;3 \u8bfe\u7684\u8282\u594f&#xff0c;\u5927\u7ea6 2&#xff5e;3 \u4e2a\u6708\u53ef\u4ee5\u8d70\u5b8c\u4e00\u904d&#xff1a;<\/p>\n<table>\n<tr>\u6a21\u5757\u8bfe\u6b21\u5185\u5bb9<\/tr>\n<tbody>\n<tr>\n<td>\u4e00\u3001\u73af\u5883\u4e0e\u5165\u95e8<\/td>\n<td>01&#xff5e;05<\/td>\n<td>\u73af\u5883\u642d\u5efa\u4e0e Hello World\u3001\u53d8\u91cf\u4e0e\u57fa\u672c\u7c7b\u578b\u3001\u8fd0\u7b97\u7b26\u4e0e\u8f93\u5165\u8f93\u51fa\u3001\u5206\u652f\u3001\u5faa\u73af<\/td>\n<\/tr>\n<tr>\n<td>\u4e8c\u3001\u5e38\u7528\u7c7b\u578b\u4e0e\u6570\u636e\u7ec4\u7ec7<\/td>\n<td>06&#xff5e;10<\/td>\n<td>\u5b57\u7b26\u4e32\u3001\u6570\u7ec4\u4e0e\u533a\u95f4\u3001ArrayList\/HashMap\/HashSet\u3001\u53ef\u7a7a\u7c7b\u578b\u3001\u9519\u8bef\u5904\u7406<\/td>\n<\/tr>\n<tr>\n<td>\u4e09\u3001\u51fd\u6570\u4e0e\u51fd\u6570\u5f0f<\/td>\n<td>11&#xff5e;14<\/td>\n<td>\u51fd\u6570\u3001Lambda \u4e0e\u9ad8\u9636\u51fd\u6570\u3001\u95ed\u5305\u3001\u8fed\u4ee3\u5668\u4e0e\u60f0\u6027\u5e8f\u5217<\/td>\n<\/tr>\n<tr>\n<td>\u56db\u3001\u9762\u5411\u5bf9\u8c61\u4e0e\u7c7b\u578b\u7cfb\u7edf<\/td>\n<td>15&#xff5e;20<\/td>\n<td>struct\/class\u3001\u6784\u9020\u4e0e\u5c5e\u6027\u3001\u63a5\u53e3\u3001\u679a\u4e3e\u4e0e match \u6a21\u5f0f\u5339\u914d\u3001\u6cdb\u578b\u3001\u6269\u5c55<\/td>\n<\/tr>\n<tr>\n<td>\u4e94\u3001\u5de5\u7a0b\u5316\u4e0e\u6807\u51c6\u5e93<\/td>\n<td>21&#xff5e;25<\/td>\n<td>cjpm \u5305\u7ba1\u7406\u4e0e\u591a\u6587\u4ef6\u3001\u6587\u4ef6 IO\u3001JSON \u5904\u7406\u3001\u7f51\u7edc\u7f16\u7a0b\u3001\u5355\u5143\u6d4b\u8bd5<\/td>\n<\/tr>\n<tr>\n<td>\u516d\u3001\u5e76\u53d1\u7f16\u7a0b<\/td>\n<td>26&#xff5e;28<\/td>\n<td>\u7ebf\u7a0b\u3001Channel \u901a\u9053\u4e0e\u540c\u6b65\u539f\u8bed\u3001\u5e76\u53d1\u5b9e\u6218<\/td>\n<\/tr>\n<tr>\n<td>\u4e03\u3001\u9879\u76ee\u5b9e\u6218<\/td>\n<td>29&#xff5e;30<\/td>\n<td>\u547d\u4ee4\u884c\u5c0f\u5de5\u5177\u3001GeoJSON \u6570\u636e\u5904\u7406\u5b9e\u6218<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<li>\u73af\u5883\u642d\u5efa\u4e0e\u7b2c\u4e00\u4e2a\u4ed3\u9889\u7a0b\u5e8f<\/li>\n<li>\u53d8\u91cf\u4e0e\u5e38\u91cf&#xff1a;let \/ var \u4e0e\u57fa\u672c\u6570\u636e\u7c7b\u578b<\/li>\n<li>\u8fd0\u7b97\u7b26\u4e0e\u6807\u51c6\u8f93\u5165\u8f93\u51fa<\/li>\n<li>\u5206\u652f\u7ed3\u6784&#xff1a;if \u4e0e match \u8868\u8fbe\u5f0f<\/li>\n<li>\u5faa\u73af\u7ed3\u6784&#xff1a;while \/ for \/ Range<\/li>\n<li>\u5b57\u7b26\u4e32\u8be6\u89e3\u4e0e\u5b57\u7b26\u4e32\u63d2\u503c&#xff08;\u672c\u6587&#xff09;<\/li>\n<li>\u6570\u7ec4 Array \u4e0e\u533a\u95f4 Range<\/li>\n<li>\u96c6\u5408\u6846\u67b6&#xff1a;ArrayList\u3001HashMap\u3001HashSet<\/li>\n<li>\u53ef\u7a7a\u7c7b\u578b ? \u4e0e Option<\/li>\n<li>\u9519\u8bef\u5904\u7406&#xff1a;\u5f02\u5e38\u673a\u5236\u4e0e Result<\/li>\n<li>\u51fd\u6570\u5b9a\u4e49\u3001\u53c2\u6570\u4e0e\u8fd4\u56de\u503c<\/li>\n<li>Lambda \u4e0e\u9ad8\u9636\u51fd\u6570<\/li>\n<li>\u95ed\u5305\u3001\u4f5c\u7528\u57df\u4e0e\u51fd\u6570\u7c7b\u578b<\/li>\n<li>\u8fed\u4ee3\u5668 Iterator \u4e0e Sequence<\/li>\n<li>\u7ed3\u6784\u4f53 struct \u4e0e\u7c7b class<\/li>\n<li>\u6784\u9020\u51fd\u6570\u3001\u5c5e\u6027\u4e0e\u65b9\u6cd5<\/li>\n<li>\u63a5\u53e3 interface \u4e0e\u5b9e\u73b0<\/li>\n<li>\u679a\u4e3e enum\u3001\u4ee3\u6570\u6570\u636e\u7c7b\u578b\u4e0e match \u6a21\u5f0f\u5339\u914d<\/li>\n<li>\u6cdb\u578b\u7f16\u7a0b<\/li>\n<li>\u6269\u5c55\u3001\u7c7b\u578b\u522b\u540d\u4e0e\u53ef\u89c1\u6027\u63a7\u5236<\/li>\n<li>cjpm \u5305\u7ba1\u7406\u4e0e\u591a\u6587\u4ef6\u9879\u76ee\u7ec4\u7ec7<\/li>\n<li>\u6587\u4ef6\u4e0e\u76ee\u5f55 IO<\/li>\n<li>JSON \u5904\u7406&#xff08;\u7ed3\u5408 stdx \u6269\u5c55\u5e93&#xff09;<\/li>\n<li>\u7f51\u7edc\u7f16\u7a0b\u5165\u95e8<\/li>\n<li>\u5355\u5143\u6d4b\u8bd5<\/li>\n<li>\u5e76\u53d1\u57fa\u7840&#xff1a;\u7ebf\u7a0b\u7684\u521b\u5efa\u4e0e\u7b49\u5f85<\/li>\n<li>Channel \u901a\u9053\u4e0e\u540c\u6b65\u539f\u8bed<\/li>\n<li>\u5e76\u53d1\u5b9e\u6218&#xff1a;\u591a\u7ebf\u7a0b\u4efb\u52a1\u5904\u7406<\/li>\n<li>\u5b9e\u6218\u4e00&#xff1a;\u5e26\u6587\u4ef6\u6301\u4e45\u5316\u7684\u547d\u4ee4\u884c\u5c0f\u5de5\u5177<\/li>\n<li>\u5b9e\u6218\u4e8c&#xff1a;GeoJSON \u6570\u636e\u5904\u7406\u7a0b\u5e8f<\/li>\n<hr \/>\n<h3>\u4e00\u3001\u8ba4\u8bc6 String&#xff1a;\u6587\u672c\u7684\u5bb9\u5668<\/h3>\n<p>\u7528\u53cc\u5f15\u53f7\u62ec\u8d77\u6765\u7684\u4e00\u6bb5\u6587\u5b57\u5c31\u662f\u5b57\u7b26\u4e32\u5b57\u9762\u91cf&#xff0c;\u7c7b\u578b\u662f String&#xff1a;<\/p>\n<p>package helloCangjie<\/p>\n<p>main(): Int64 {<br \/>\n    let greeting &#061; &#034;\u4f60\u597d&#xff0c;\u4ed3\u9889&#034;<br \/>\n    let language &#061; &#034;Cangjie&#034;<\/p>\n<p>    \/\/ \u2460 \u7528 &#043; \u62fc\u63a5\u4e24\u6bb5\u5b57\u7b26\u4e32<br \/>\n    println(greeting &#043; &#034;&#xff0c;\u6b22\u8fce\u5b66\u4e60 &#034; &#043; language &#043; &#034;&#xff01;&#034;)<\/p>\n<p>    \/\/ \u2461 \u7528 * \u8ba9\u5b57\u7b26\u4e32\u91cd\u590d\u51fa\u73b0<br \/>\n    println(&#034;\u91cd\u8981\u7684\u4e8b\u60c5\u8bf4\u4e09\u904d&#xff1a;&#034; &#043; &#034;\u51b2&#xff01;&#034; * 3)<\/p>\n<p>    \/\/ \u2462 \u6309\u5185\u5bb9\u6bd4\u8f83&#xff0c;\u7528 &#061;&#061; \/ &lt; \/ &gt;<br \/>\n    println(&#034;abc&#034; &#061;&#061; &#034;abc&#034;)<br \/>\n    println(&#034;apple&#034; &lt; &#034;banana&#034;)<\/p>\n<p>    \/\/ \u2463 \u5224\u7a7a&#xff1a;\u5b57\u7b26\u4e32\u91cc\u4e00\u4e2a\u5b57\u7b26\u90fd\u6ca1\u6709<br \/>\n    println(&#034;\u7a7a\u4e32\u5417&#xff1a;&#034; &#043; &#034;&#034;.isEmpty().toString())<br \/>\n    return 0<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c&#xff1a;<\/p>\n<p>\u4f60\u597d&#xff0c;\u4ed3\u9889&#xff0c;\u6b22\u8fce\u5b66\u4e60 Cangjie&#xff01;<br \/>\n\u91cd\u8981\u7684\u4e8b\u60c5\u8bf4\u4e09\u904d&#xff1a;\u51b2&#xff01;\u51b2&#xff01;\u51b2&#xff01;<br \/>\ntrue<br \/>\ntrue<br \/>\n\u7a7a\u4e32\u5417&#xff1a;true<\/p>\n<p>\u56db\u70b9\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>&#043; \u62fc\u63a5&#xff1a;\u5de6\u53f3\u4e24\u8fb9\u90fd\u5fc5\u987b\u662f\u5b57\u7b26\u4e32&#xff08;\u6570\u5b57\u60f3\u62fc\u8fdb\u6765\u8981\u7528\u4e0b\u4e00\u8282\u7684\u63d2\u503c&#xff0c;\u4e0d\u80fd\u76f4\u63a5 &#034;\u5e74\u9f84&#034; &#043; 3&#xff09;&#xff1b;<\/li>\n<li>* \u91cd\u590d&#xff1a;&#034;ab&#034; * 3 \u5f97\u5230 &#034;ababab&#034;&#xff0c;\u753b\u5206\u9694\u7ebf\u65f6\u5f88\u597d\u7528&#xff1b;<\/li>\n<li>\u6bd4\u8f83\u7684\u662f\u5185\u5bb9&#xff1a;&#061;&#061; \u5224\u65ad\u6587\u5b57\u662f\u5426\u5b8c\u5168\u76f8\u540c&#xff0c;&lt; \/ &gt; \u6309\u5b57\u5178\u5e8f\u6bd4\u8f83&#xff0c;\u76f4\u63a5\u5199\u5c31\u884c&#xff1b;<\/li>\n<li>&#034;&#034; \u662f\u7a7a\u5b57\u7b26\u4e32&#xff1a;\u5b83\u662f\u4e00\u4e2a\u771f\u5b9e\u5b58\u5728\u7684\u5bf9\u8c61&#xff0c;\u53ea\u662f\u957f\u5ea6\u4e3a 0&#xff0c;\u7528 isEmpty() \u5224\u65ad\u3002<\/li>\n<\/ul>\n<p>&#x1f4a1; String \u662f\u4e0d\u53ef\u53d8\u7c7b\u578b&#xff1a;\u6240\u6709&#034;\u4fee\u6539&#034;\u64cd\u4f5c&#xff08;\u62fc\u63a5\u3001\u66ff\u6362\u3001\u5927\u5c0f\u5199\u8f6c\u6362\u2026\u2026&#xff09;\u90fd\u4e0d\u4f1a\u6539\u52a8\u539f\u6765\u7684\u5b57\u7b26\u4e32&#xff0c;\u800c\u662f\u8fd4\u56de\u4e00\u4e2a\u65b0\u5b57\u7b26\u4e32\u3002\u539f\u53d8\u91cf\u60f3\u53d8&#xff0c;\u5fc5\u987b\u7528 var \u58f0\u660e\u5e76\u91cd\u65b0\u8d4b\u503c&#xff1a;s &#061; s &#043; &#034;!&#034;\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001\u5b57\u7b26\u4e32\u63d2\u503c&#xff1a;\u8ba9\u7a0b\u5e8f&#034;\u597d\u597d\u8bf4\u8bdd&#034;<\/h3>\n<p>\u7528 &#043; \u62fc\u53e5\u5b50\u5f88\u5feb\u5c31\u4f1a\u53d8\u6210\u707e\u96be&#xff1a;\u5f15\u53f7\u3001\u9017\u53f7\u3001\u7c7b\u578b\u8f6c\u6362\u6df7\u5728\u4e00\u8d77\u3002\u4ed3\u9889\u63d0\u4f9b\u4e86\u5b57\u7b26\u4e32\u6a21\u677f\u63d2\u503c\u2014\u2014\u5728\u5b57\u7b26\u4e32\u91cc\u5199 ${\u8868\u8fbe\u5f0f}&#xff0c;\u8fd0\u884c\u65f6\u81ea\u52a8\u6c42\u503c\u5e76&#034;\u5d4c&#034;\u8fdb\u53bb&#xff1a;<\/p>\n<p>package helloCangjie<\/p>\n<p>main(): Int64 {<br \/>\n    let name &#061; &#034;\u5c0f\u660e&#034;<br \/>\n    let age &#061; 18<br \/>\n    let height &#061; 1.75<\/p>\n<p>    \/\/ ${} \u91cc\u53ef\u4ee5\u662f\u53d8\u91cf<br \/>\n    println(&#034;\u6211\u53eb ${name}&#xff0c;\u4eca\u5e74 ${age} \u5c81&#034;)<\/p>\n<p>    \/\/ ${} \u91cc\u4e5f\u53ef\u4ee5\u662f\u8868\u8fbe\u5f0f&#xff1a;\u7b97\u672f\u3001\u65b9\u6cd5\u8c03\u7528\u3001\u751a\u81f3\u53e6\u4e00\u4e2a\u5b57\u7b26\u4e32<br \/>\n    println(&#034;\u518d\u8fc7 10 \u5e74\u6211\u5c31 ${age &#043; 10} \u5c81\u4e86&#034;)<br \/>\n    println(&#034;\u8fd9\u53e5\u8bdd\u662f ${&#034;abc&#034; &#061;&#061; &#034;abc&#034;} \u7684&#xff1a;\u8eab\u9ad8 ${height} \u7c73&#034;)<\/p>\n<p>    \/\/ \u6570\u5b57\u8f6c\u5b57\u7b26\u4e32&#xff1a;\u63d2\u503c\u662f\u9996\u9009&#xff1b;\u4e5f\u53ef\u4ee5\u663e\u5f0f\u8c03\u7528 toString()<br \/>\n    let scoreText &#061; 95.toString()<br \/>\n    println(&#034;\u6210\u7ee9&#xff1a;&#034; &#043; scoreText)<br \/>\n    return 0<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c&#xff1a;<\/p>\n<p>\u6211\u53eb \u5c0f\u660e&#xff0c;\u4eca\u5e74 18 \u5c81<br \/>\n\u518d\u8fc7 10 \u5e74\u6211\u5c31 28 \u5c81\u4e86<br \/>\n\u8fd9\u53e5\u8bdd\u662f true \u7684&#xff1a;\u8eab\u9ad8 1.750000 \u7c73<br \/>\n\u6210\u7ee9&#xff1a;95<\/p>\n<p>\u4ece\u7b2c 1 \u8bfe\u7684 println(&#034;Hello World&#034;) \u8d77\u4f60\u5176\u5b9e\u4e00\u76f4\u5728\u7528\u63d2\u503c\u2014\u2014${sum}\u3001${i} \u90fd\u662f\u5b83\u3002\u8bb0\u4f4f\u4e09\u4e2a\u8981\u70b9&#xff1a;<\/p>\n<li>\u82b1\u62ec\u53f7\u4e0d\u80fd\u7701&#xff1a;\u662f ${name} \u4e0d\u662f $name&#xff1b;<\/li>\n<li>\u82b1\u62ec\u53f7\u91cc\u662f\u5b8c\u6574\u8868\u8fbe\u5f0f&#xff1a;\u53d8\u91cf\u3001\u56db\u5219\u8fd0\u7b97\u3001\u65b9\u6cd5\u8c03\u7528\u3001\u6bd4\u8f83\u8fd0\u7b97\u90fd\u53ef\u4ee5&#xff1b;<\/li>\n<li>\u81ea\u52a8\u8f6c\u5b57\u7b26\u4e32&#xff1a;\u6570\u5b57\u3001Bool \u7b49\u7c7b\u578b\u63d2\u503c\u65f6\u81ea\u52a8\u53d8\u6210\u6587\u672c&#xff0c;\u4e0d\u7528\u624b\u52a8\u8f6c\u3002<\/li>\n<p>\u53cd\u5411\u8f6c\u6362&#xff08;\u5b57\u7b26\u4e32 \u2192 \u6570\u5b57&#xff09;\u8fd8\u662f\u7b2c 3 \u8bfe\u7684 Int64.parse&#xff0c;\u5b83\u4f4f\u5728 std.convert \u5305\u91cc&#xff0c;\u4f7f\u7528\u524d\u8981 import&#xff1a;<\/p>\n<p>package helloCangjie<\/p>\n<p>import std.convert.*;<br \/>\nimport std.env.getStdIn;<\/p>\n<p>main(): Int64 {<br \/>\n    print(&#034;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6574\u6570&#xff1a;&#034;)<br \/>\n    let text: String &#061; getStdIn().readln().getOrThrow();<br \/>\n    let n &#061; Int64.parse(text)<br \/>\n    println(&#034;\u89e3\u6790\u540e\u52a0 8 \u7b49\u4e8e&#xff1a;${n &#043; 8}&#034;)<br \/>\n    return 0<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c&#xff1a;<\/p>\n<p>\u8bf7\u8f93\u5165\u4e00\u4e2a\u6574\u6570&#xff1a;\u89e3\u6790\u540e\u52a0 8 \u7b49\u4e8e&#xff1a;50<\/p>\n<p>&#xff08;print \u4e0d\u6362\u884c&#xff0c;\u8fd0\u884c\u65f6\u8f93\u5165\u7684\u5185\u5bb9\u4f1a\u63a5\u5728\u63d0\u793a\u540e\u9762\u663e\u793a&#xff1b;\u8fd9\u91cc\u5b57\u7b26\u4e32\u76f4\u63a5\u7ed9\u4e86 &#034;42&#034;&#xff0c;\u6240\u4ee5\u63d0\u793a\u8bed\u548c\u7ed3\u679c\u5728\u540c\u4e00\u884c\u3002&#xff09;<\/p>\n<hr \/>\n<h3>\u4e09\u3001\u8f6c\u4e49\u5b57\u7b26\u4e0e\u7279\u6b8a\u5b57\u7b26\u4e32<\/h3>\n<h4>3.1 \u8f6c\u4e49\u5b57\u7b26&#xff1a;\u8ba9\u5b57\u7b26\u4e32&#034;\u7279\u6b8a\u4e00\u70b9&#034;<\/h4>\n<p>\u5b57\u7b26\u4e32\u91cc\u6709\u4e9b\u5b57\u7b26\u6ca1\u6cd5\u76f4\u63a5\u6572\u51fa\u6765&#xff08;\u6362\u884c\u3001\u5236\u8868\u7b26&#xff09;&#xff0c;\u6709\u4e9b\u4f1a\u548c\u8bed\u6cd5\u51b2\u7a81&#xff08;\u5b57\u7b26\u4e32\u91cc\u51fa\u73b0\u53cc\u5f15\u53f7&#xff09;\u3002\u7528\u53cd\u659c\u6760 \\\\ \u5f00\u5934\u7684\u8f6c\u4e49\u5b57\u7b26\u8868\u8fbe&#xff1a;<\/p>\n<table>\n<tr>\u5199\u6cd5\u542b\u4e49<\/tr>\n<tbody>\n<tr>\n<td>\\\\n<\/td>\n<td>\u6362\u884c<\/td>\n<\/tr>\n<tr>\n<td>\\\\t<\/td>\n<td>\u5236\u8868\u7b26&#xff08;Tab&#xff0c;\u4e00\u6b21\u8df3\u4e00\u6bb5\u7a7a\u767d&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\\\\&#034;<\/td>\n<td>\u53cc\u5f15\u53f7&#xff08;\u4e0d\u518d\u88ab\u5f53\u6210\u5b57\u7b26\u4e32\u7ed3\u675f&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\\\\\\\\<\/td>\n<td>\u4e00\u4e2a\u53cd\u659c\u6760\u672c\u8eab<\/td>\n<\/tr>\n<tr>\n<td>\\\\u{4ED3}<\/td>\n<td>\u6309 Unicode \u7801\u70b9\u8f93\u51fa\u5b57\u7b26&#xff08;4ED3 \u6b63\u662f&#034;\u4ed3&#034;\u5b57&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>package helloCangjie<\/p>\n<p>main(): Int64 {<br \/>\n    println(&#034;\u7b2c\u4e00\u884c\\\\n\u7b2c\u4e8c\u884c\\\\t&#xff08;\u524d\u9762\u6709\u4e2a Tab&#xff09;&#034;)<br \/>\n    println(&#034;\u4ed6\u8bf4&#xff1a;\\\\&#034;\u4ed3\u9889\u771f\u6709\u610f\u601d&#xff01;\\\\&#034;&#034;)<br \/>\n    println(&#034;Windows \u8def\u5f84\u8981\u5199\u53cc\u53cd\u659c\u6760&#xff1a;C:\\\\\\\\Users\\\\\\\\wangpeng&#034;)<br \/>\n    println(&#034;\\\\u{4ED3}\\\\u{9889}&#034;)    \/\/ 4ED3&#061;\u4ed3&#xff0c;9889&#061;\u9889<br \/>\n    return 0<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c&#xff1a;<\/p>\n<p>\u7b2c\u4e00\u884c<br \/>\n\u7b2c\u4e8c\u884c  &#xff08;\u524d\u9762\u6709\u4e2a Tab&#xff09;<br \/>\n\u4ed6\u8bf4&#xff1a;&#034;\u4ed3\u9889\u771f\u6709\u610f\u601d&#xff01;&#034;<br \/>\nWindows \u8def\u5f84\u8981\u5199\u53cc\u53cd\u659c\u6760&#xff1a;C:\\\\Users\\\\wangpeng<br \/>\n\u4ed3\u9889<\/p>\n<h4>3.2 Raw \u5b57\u7b26\u4e32&#xff1a;\u53cd\u659c\u6760\u5c31\u662f\u53cd\u659c\u6760<\/h4>\n<p>Windows \u6587\u4ef6\u8def\u5f84\u91cc\u5168\u662f \\\\&#xff0c;\u7528\u666e\u901a\u5b57\u7b26\u4e32\u6bcf\u4e2a\u90fd\u8981\u5199\u6210 \\\\\\\\&#xff0c;\u6b63\u5219\u8868\u8fbe\u5f0f\u66f4\u60e8\u3002\u4ed3\u9889\u63d0\u4f9b raw \u5b57\u7b26\u4e32&#xff1a;\u5728\u53cc\u5f15\u53f7\u4e24\u4fa7\u5404\u52a0\u4e00\u4e2a #&#xff0c;\u5373 #&#034;&#8230;&#034;#&#xff0c;\u91cc\u9762\u7684\u5185\u5bb9\u539f\u6837\u4fdd\u7559\u2014\u2014\u53cd\u659c\u6760\u4e0d\u8f6c\u4e49\u3001${} \u4e0d\u63d2\u503c&#xff1a;<\/p>\n<p>package helloCangjie<\/p>\n<p>main(): Int64 {<br \/>\n    let path &#061; #&#034;C:\\\\Users\\\\wangpeng\\\\Desktop\\\\main.cj&#034;#<br \/>\n    println(path)<\/p>\n<p>    println(#&#034;${name} \u4f1a\u539f\u6837\u663e\u793a&#xff0c;\\\\n \u4e5f\u4e0d\u4f1a\u6362\u884c&#034;#)<br \/>\n    return 0<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c&#xff1a;<\/p>\n<p>C:\\\\Users\\\\wangpeng\\\\Desktop\\\\main.cj<br \/>\n${name} \u4f1a\u539f\u6837\u663e\u793a&#xff0c;\\\\n \u4e5f\u4e0d\u4f1a\u6362\u884c<\/p>\n<p>\u5199 Windows \u8def\u5f84\u3001\u6b63\u5219\u3001\u5e26\u7279\u6b8a\u7b26\u53f7\u7684\u6587\u672c\u65f6&#xff0c;\u4f18\u5148\u60f3\u5230 #&#034;&#8230;&#034;#\u3002<\/p>\n<h4>3.3 \u591a\u884c\u5b57\u7b26\u4e32&#xff1a;\u4e09\u4e2a\u5f15\u53f7\u5199\u4e00\u6bb5<\/h4>\n<p>\u9700\u8981\u4fdd\u7559\u6362\u884c\u7684\u5927\u6bb5\u6587\u5b57&#xff08;SQL\u3001\u6a21\u677f\u3001\u8bd7&#xff09;&#xff0c;\u7528\u4e09\u4e2a\u53cc\u5f15\u53f7 &#034;&#034;&#034; \u5305\u88f9&#xff0c;\u4e2d\u95f4\u53ef\u4ee5\u76f4\u63a5\u6362\u884c&#xff0c;\u4e5f\u540c\u6837\u652f\u6301 ${} \u63d2\u503c&#xff1a;<\/p>\n<p>package helloCangjie<\/p>\n<p>main(): Int64 {<br \/>\n    let who &#061; &#034;\u674e\u767d&#034;<br \/>\n    let poem &#061; &#034;&#034;&#034;<br \/>\n${who}\u00b7\u9759\u591c\u601d<br \/>\n\u5e8a\u524d\u660e\u6708\u5149&#xff0c;<br \/>\n\u7591\u662f\u5730\u4e0a\u971c\u3002<br \/>\n&#034;&#034;&#034;<br \/>\n    println(&#034;&#8212;&#8212;&#034;)<br \/>\n    print(poem)<br \/>\n    println(&#034;&#8212;&#8212;&#034;)<br \/>\n    return 0<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c&#xff1a;<\/p>\n<p>&#8212;&#8212;<br \/>\n\u674e\u767d\u00b7\u9759\u591c\u601d<br \/>\n\u5e8a\u524d\u660e\u6708\u5149&#xff0c;<br \/>\n\u7591\u662f\u5730\u4e0a\u971c\u3002<\/p>\n<p>&#8212;&#8212;<\/p>\n<p>\u26a0\ufe0f \u6ce8\u610f\u4e00\u4e2a\u5b9e\u6d4b\u51fa\u6765\u7684\u7ec6\u8282&#xff1a;\u591a\u884c\u5b57\u7b26\u4e32\u539f\u6837\u4fdd\u7559\u4e00\u5207\u5b57\u7b26&#xff0c;\u5305\u62ec\u6bcf\u884c\u5f00\u5934\u7684\u7a7a\u683c\u7f29\u8fdb\u3002\u6240\u4ee5\u793a\u4f8b\u91cc\u6587\u5b57\u6545\u610f\u9876\u683c\u5199&#xff08;\u4e0d\u8ddf\u7740\u4ee3\u7801\u7f29\u8fdb&#xff09;&#xff0c;\u5426\u5219\u8f93\u51fa\u91cc\u4f1a\u5e26\u4e0a\u524d\u9762\u7684\u4e00\u4e32\u7a7a\u683c&#xff1b;\u7ed3\u5c3e\u6362\u884c\u4e5f\u4f1a\u4fdd\u7559&#xff08;&#034;\u7591\u662f\u5730\u4e0a\u971c\u3002&#034;\u540e\u9762\u90a3\u4e2a\u7a7a\u884c\u5c31\u662f\u8fd9\u4e48\u6765\u7684&#xff09;\u3002<\/p>\n<hr \/>\n<h3>\u56db\u3001\u5b57\u8282\u4e0e\u5b57\u7b26&#xff1a;UTF-8 \u7684\u4e24\u4e2a&#034;\u53cd\u76f4\u89c9&#034;<\/h3>\n<p>\u4ed3\u9889\u5b57\u7b26\u4e32\u5185\u90e8\u6309 UTF-8 \u7f16\u7801\u5b58\u50a8\u3002UTF-8 \u662f\u4e00\u79cd\u53d8\u957f\u7f16\u7801&#xff1a;<\/p>\n<ul>\n<li>\u82f1\u6587\u3001\u6570\u5b57\u3001\u5e38\u7528\u7b26\u53f7&#xff1a;1 \u4e2a\u5b57\u8282\u5b58\u4e00\u4e2a\u5b57\u7b26&#xff1b;<\/li>\n<li>\u6c49\u5b57&#xff1a;3 \u4e2a\u5b57\u8282\u5b58\u4e00\u4e2a\u5b57\u7b26&#xff1b;<\/li>\n<li>\u4e2a\u522b emoji \u751a\u81f3\u8981 4 \u4e2a\u5b57\u8282\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u5e26\u6765\u4e24\u4e2a\u521d\u5b66\u8005\u5fc5\u8e29\u7684\u5751\u3002<\/p>\n<h4>4.1 \u5751\u4e00&#xff1a;size \u91cf\u7684\u662f\u5b57\u8282\u6570&#xff0c;\u4e0d\u662f\u5b57\u6570<\/h4>\n<p>package helloCangjie<\/p>\n<p>main(): Int64 {<br \/>\n    let en &#061; &#034;abc&#034;<br \/>\n    let cn &#061; &#034;\u4ed3\u9889\u8bed\u8a00&#034;<br \/>\n    println(&#034;${en} \u7684 size &#061; ${en.size}&#034;)<br \/>\n    println(&#034;${cn} \u7684 size &#061; ${cn.size}&#034;)<br \/>\n    println(&#034;${cn} \u7684\u5b57\u6570 &#061; ${cn.toRuneArray().size}&#034;)<br \/>\n    return 0<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c&#xff1a;<\/p>\n<p>abc \u7684 size &#061; 3<br \/>\n\u4ed3\u9889\u8bed\u8a00 \u7684 size &#061; 12<br \/>\n\u4ed3\u9889\u8bed\u8a00 \u7684\u5b57\u6570 &#061; 4<\/p>\n<p>&#034;\u4ed3\u9889\u8bed\u8a00&#034; \u53ea\u6709 4 \u4e2a\u5b57&#xff0c;size \u5374\u662f 12&#xff08;4 \u00d7 3 \u5b57\u8282&#xff09;\u3002\u60f3\u5f97\u5230&#034;\u4eba\u773c\u770b\u5230\u7684\u5b57\u6570&#034;&#xff0c;\u5148\u8c03\u7528 toRuneArray() \u8f6c\u6210\u5b57\u7b26\u6570\u7ec4\u518d\u53d6 size\u3002<\/p>\n<h4>4.2 \u5751\u4e8c&#xff1a;for-in \u904d\u5386\u5b57\u7b26\u4e32\u5f97\u5230\u7684\u662f\u5b57\u8282<\/h4>\n<p>\u66f4\u610f\u5916\u7684\u662f&#xff0c;\u76f4\u63a5 for-in \u4e00\u4e2a\u5b57\u7b26\u4e32&#xff0c;\u5faa\u73af\u53d8\u91cf\u4e0d\u662f\u5b57\u7b26&#xff0c;\u800c\u662f\u4e00\u4e2a\u4e2a\u5b57\u8282&#xff08;UInt8&#xff0c;\u6570\u5b57&#xff09;&#xff1a;<\/p>\n<p>package helloCangjie<\/p>\n<p>main(): Int64 {<br \/>\n    let cn &#061; &#034;\u4ed3\u9889\u8bed\u8a00&#034;<br \/>\n    print(&#034;\u76f4\u63a5 for-in&#xff1a;&#034;)<br \/>\n    for (b in cn) {<br \/>\n        print(&#034;${b} &#034;)<br \/>\n    }<br \/>\n    println()<\/p>\n<p>    print(&#034;\u8c03\u7528 runes()&#xff1a;&#034;)<br \/>\n    for (ch in cn.runes()) {<br \/>\n        print(&#034;${ch} &#034;)<br \/>\n    }<br \/>\n    println()<br \/>\n    return 0<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c&#xff1a;<\/p>\n<p>\u76f4\u63a5 for-in&#xff1a;228 187 147 233 162 137 232 175 173 232 168 128<br \/>\n\u8c03\u7528 runes()&#xff1a;\u4ed3 \u9889 \u8bed \u8a00<\/p>\n<p>\u524d\u4e09\u4e2a\u6570\u5b57 228 187 147 \u6b63\u662f&#034;\u4ed3&#034;\u5b57 UTF-8 \u7f16\u7801\u7684\u4e09\u4e2a\u5b57\u8282&#xff08;\u5341\u516d\u8fdb\u5236 E4 BB 93&#xff09;\u3002\u60f3\u9010\u4e2a\u4eba\u4eec\u8ba4\u8bc6\u7684\u5b57\u7b26\u904d\u5386&#xff0c;\u8c03\u7528\u5b57\u7b26\u4e32\u7684 runes() \u65b9\u6cd5\u3002<\/p>\n<h4>4.3 Rune&#xff1a;\u5355\u4e2a\u5b57\u7b26\u7684\u7c7b\u578b<\/h4>\n<p>\u4ed3\u9889\u7528 Rune \u7c7b\u578b\u8868\u793a\u4e00\u4e2a Unicode \u5b57\u7b26&#xff0c;\u5b57\u9762\u91cf\u5199\u6cd5\u662f r&#039;\u5b57\u7b26&#039;&#xff08;\u5c0f\u5199 r \u52a0\u5355\u5f15\u53f7&#xff09;\u3002\u5b83\u914d\u5408 std.unicode \u5305\u8fd8\u80fd\u5224\u65ad\u5b57\u7b26\u79cd\u7c7b&#xff1a;<\/p>\n<p>package helloCangjie<\/p>\n<p>import std.unicode.*<\/p>\n<p>main(): Int64 {<br \/>\n    let a &#061; r&#039;A&#039;<br \/>\n    let five &#061; r&#039;5&#039;<br \/>\n    let zhong &#061; r&#039;\u4e2d&#039;<br \/>\n    println(&#034;${a} \u662f\u5b57\u6bcd\u5417&#xff1a;${a.isLetter()}&#034;)<br \/>\n    println(&#034;${five} \u662f\u6570\u5b57\u5417&#xff1a;${five.isNumber()}&#034;)<br \/>\n    println(&#034;${zhong} \u662f\u5b57\u6bcd\u5417&#xff1a;${zhong.isLetter()}&#034;)<br \/>\n    return 0<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c&#xff1a;<\/p>\n<p>A \u662f\u5b57\u6bcd\u5417&#xff1a;true<br \/>\n5 \u662f\u6570\u5b57\u5417&#xff1a;true<br \/>\n\u4e2d \u662f\u5b57\u6bcd\u5417&#xff1a;true<\/p>\n<p>&#xff08;\u6c49\u5b57\u5728 Unicode \u5206\u7c7b\u91cc\u5c5e\u4e8e\u5b57\u6bcd&#xff0c;\u6240\u4ee5 r&#039;\u4e2d&#039;.isLetter() \u662f true\u3002isLetter()\u3001isNumber() \u7b49\u662f std.unicode \u5305\u7ed9 Rune \u63d0\u4f9b\u7684\u6269\u5c55&#xff0c;\u8bb0\u5f97 import\u3002&#xff09;<\/p>\n<p>\u628a\u672c\u8282\u4e32\u8d77\u6765&#xff1a;<\/p>\n<table>\n<tr>\u9700\u6c42\u5199\u6cd5\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u5b57\u8282\u957f\u5ea6<\/td>\n<td>s.size<\/td>\n<td>\u82f1\u6587 1 \u5b57\u8282&#xff0c;\u6c49\u5b57 3 \u5b57\u8282<\/td>\n<\/tr>\n<tr>\n<td>\u5b57\u6570<\/td>\n<td>s.toRuneArray().size<\/td>\n<td>\u4e00\u4e2a Rune \u5bf9\u5e94\u4e00\u4e2a\u4eba\u773c\u5b57\u7b26<\/td>\n<\/tr>\n<tr>\n<td>\u9010\u5b57\u8282\u904d\u5386<\/td>\n<td>for (b in s)<\/td>\n<td>\u5f97\u5230 UInt8<\/td>\n<\/tr>\n<tr>\n<td>\u9010\u5b57\u7b26\u904d\u5386<\/td>\n<td>for (ch in s.runes())<\/td>\n<td>\u5f97\u5230 Rune<\/td>\n<\/tr>\n<tr>\n<td>\u53d6\u7b2c i \u4e2a\u5b57\u7b26<\/td>\n<td>s.toRuneArray()[i]<\/td>\n<td>\u5b89\u5168&#xff0c;\u4e0d\u53d7\u53d8\u957f\u7f16\u7801\u5f71\u54cd<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>\u4e94\u3001\u5207\u7247&#xff1a;\u4ece\u5b57\u7b26\u4e32\u91cc\u53d6\u51fa\u4e00\u6bb5<\/h3>\n<p>\u5b57\u7b26\u4e32\u652f\u6301\u7b2c 5 \u8bfe\u5b66\u8fc7\u7684\u533a\u95f4\u4e0b\u6807&#xff0c;\u5207\u4e00\u5200\u53d6\u51fa\u5b50\u4e32&#xff1a;<\/p>\n<p>package helloCangjie<\/p>\n<p>main(): Int64 {<br \/>\n    let s &#061; &#034;HelloCangjie&#034;<br \/>\n    println(s[0..5])      \/\/ \u5de6\u95ed\u53f3\u5f00&#xff1a;\u4e0b\u6807 0~4<br \/>\n    println(s[5..&#061;10])    \/\/ \u5de6\u95ed\u53f3\u95ed&#xff1a;\u4e0b\u6807 5~10<br \/>\n    return 0<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c&#xff1a;<\/p>\n<p>Hello<br \/>\nCangji<\/p>\n<p>\u6ce8\u610f&#xff1a;\u5207\u7247\u4e0b\u6807\u540c\u6837\u662f\u5b57\u8282\u4e0b\u6807&#xff0c;\u4ece 0 \u5f00\u59cb\u3002\u7eaf\u82f1\u6587\u6587\u672c\u6bcf\u4e2a\u5b57\u7b26 1 \u5b57\u8282&#xff0c;\u4e0b\u6807\u548c&#034;\u7b2c\u51e0\u4e2a\u5b57\u6bcd&#034;\u5b8c\u5168\u5bf9\u5f97\u4e0a&#xff0c;\u653e\u5fc3\u5207\u3002<\/p>\n<p>\u4f46\u5207\u4e2d\u6587\u65f6\u5fc5\u987b\u5b88\u4f4f 3 \u5b57\u8282\u8fb9\u754c\u2014\u2014\u6bcf\u4e2a\u6c49\u5b57\u6b63\u597d\u5360 3 \u4e2a\u5b57\u8282&#xff0c;\u6309 3 \u7684\u500d\u6570\u5207\u624d\u5b89\u5168&#xff1a;<\/p>\n<p>package helloCangjie<\/p>\n<p>main(): Int64 {<br \/>\n    let cn &#061; &#034;\u4ed3\u9889\u8bed\u8a00&#034;<br \/>\n    println(cn[0..3])     \/\/ 0~2 \u5b57\u8282&#xff0c;\u6b63\u597d\u662f&#034;\u4ed3&#034;<br \/>\n    println(cn[0..&#061;5])    \/\/ 0~5 \u5b57\u8282&#xff0c;\u6b63\u597d\u662f&#034;\u4ed3\u9889&#034;<br \/>\n    return 0<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c&#xff1a;<\/p>\n<p>\u4ed3<br \/>\n\u4ed3\u9889<\/p>\n<p>\u26a0\ufe0f \u5982\u679c\u4e0b\u6807\u5207\u5230\u4e00\u4e2a\u6c49\u5b57\u7684\u4e2d\u95f4&#xff08;\u6bd4\u5982\u5bf9 &#034;\u4ed3\u9889&#034; \u53d6 [0..1]&#xff09;&#xff0c;\u7a0b\u5e8f\u80fd\u7f16\u8bd1\u901a\u8fc7&#xff0c;\u4f46\u8fd0\u884c\u65f6\u4f1a\u629b\u51fa\u5f02\u5e38&#xff1a;<\/p>\n<p>An exception has occurred:<br \/>\nIllegalArgumentException: Invalid utf8 byte sequence.<\/p>\n<p>\u6240\u4ee5\u5904\u7406\u542b\u4e2d\u6587\u7684\u6587\u672c&#xff0c;\u6700\u7a33\u59a5\u7684\u529e\u6cd5\u662f\u5148\u8f6c\u5b57\u7b26\u6570\u7ec4\u518d\u64cd\u4f5c&#xff0c;\u6700\u540e\u8fd8\u80fd\u7528 String(\u5b57\u7b26\u6570\u7ec4) \u62fc\u56de\u5b57\u7b26\u4e32&#xff1a;<\/p>\n<p>package helloCangjie<\/p>\n<p>main(): Int64 {<br \/>\n    let cn &#061; &#034;\u4ed3\u9889\u8bed\u8a00&#034;<br \/>\n    let runes &#061; cn.toRuneArray()<br \/>\n    println(&#034;\u7b2c 1 \u4e2a\u5b57&#xff1a;${runes[0]}&#034;)<br \/>\n    println(&#034;\u7b2c 4 \u4e2a\u5b57&#xff1a;${runes[3]}&#034;)<\/p>\n<p>    \/\/ \u53d6\u51fa&#034;\u9889\u8bed&#034;\u4e24\u4e2a\u5b57&#xff0c;\u518d\u7ec4\u56de\u5b57\u7b26\u4e32<br \/>\n    let part &#061; String(runes[1..3])<br \/>\n    println(&#034;\u53d6\u51fa\u7684\u90e8\u5206&#xff1a;${part}&#034;)<br \/>\n    return 0<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c&#xff1a;<\/p>\n<p>\u7b2c 1 \u4e2a\u5b57&#xff1a;\u4ed3<br \/>\n\u7b2c 4 \u4e2a\u5b57&#xff1a;\u8a00<br \/>\n\u53d6\u51fa\u7684\u90e8\u5206&#xff1a;\u9889\u8bed<\/p>\n<p>&#xff08;runes[1..3] \u662f\u6570\u7ec4\u5207\u7247&#xff0c;\u7b2c 7 \u8bfe\u5b66\u6570\u7ec4\u65f6\u8fd8\u4f1a\u518d\u89c1&#xff1b;\u8fd9\u91cc\u5148\u8bb0\u4f4f&#034;\u5b57\u7b26\u6570\u7ec4\u53ef\u4ee5\u653e\u5fc3\u6309\u4e0b\u6807\u8bed\u4e49\u64cd\u4f5c&#034;\u3002&#xff09;<\/p>\n<hr \/>\n<h3>\u516d\u3001\u5e38\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u5168\u5bb6\u6876<\/h3>\n<p>\u6807\u51c6\u5e93\u7ed9 String \u51c6\u5907\u4e86\u4e00\u6279\u9ad8\u9891\u65b9\u6cd5&#xff0c;\u5148\u8dd1\u4e00\u6bb5\u603b\u89c8&#xff0c;\u518d\u9010\u4e2a\u89e3\u91ca&#xff1a;<\/p>\n<p>package helloCangjie<\/p>\n<p>import std.unicode.*<\/p>\n<p>main(): Int64 {<br \/>\n    let s &#061; &#034;Hello,Cangjie&#034;<\/p>\n<p>    \/\/ \u2460 \u5224\u65ad\u7c7b&#xff1a;\u5305\u542b \/ \u5f00\u5934 \/ \u7ed3\u5c3e \/ \u8ba1\u6570<br \/>\n    println(&#034;\u5305\u542b Cang&#xff1a;${s.contains(&#034;Cang&#034;)}&#034;)<br \/>\n    println(&#034;\u4ee5 Hello \u5f00\u5934&#xff1a;${s.startsWith(&#034;Hello&#034;)}&#034;)<br \/>\n    println(&#034;\u4ee5 jie \u7ed3\u5c3e&#xff1a;${s.endsWith(&#034;jie&#034;)}&#034;)<br \/>\n    println(&#034;\u5b57\u6bcd l \u51fa\u73b0\u6b21\u6570&#xff1a;${s.count(&#034;l&#034;)}&#034;)<\/p>\n<p>    \/\/ \u2461 \u67e5\u627e\u4f4d\u7f6e&#xff1a;\u627e\u4e0d\u5230\u8fd4\u56de None&#xff08;\u7b2c 9 \u8bfe\u8bb2 Option&#xff09;<br \/>\n    println(&#034;\u7b2c\u4e00\u4e2a l \u7684\u4f4d\u7f6e&#xff1a;${s.indexOf(&#034;l&#034;)}&#034;)<br \/>\n    println(&#034;\u6700\u540e\u4e00\u4e2a l \u7684\u4f4d\u7f6e&#xff1a;${s.lastIndexOf(&#034;l&#034;)}&#034;)<br \/>\n    println(&#034;xyz \u7684\u4f4d\u7f6e&#xff1a;${s.indexOf(&#034;xyz&#034;)}&#034;)<\/p>\n<p>    \/\/ \u2462 \u5207\u5206\u4e0e\u8fde\u63a5<br \/>\n    let fruits &#061; &#034;apple,banana,orange&#034;.split(&#034;,&#034;)<br \/>\n    println(&#034;\u5207\u51fa ${fruits.size} \u6bb5&#xff0c;\u7b2c\u4e8c\u6bb5\u662f ${fruits[1]}&#034;)<br \/>\n    println(String.join(fruits, delimiter: &#034; | &#034;))<\/p>\n<p>    \/\/ \u2463 \u66ff\u6362<br \/>\n    println(s.replace(&#034;Cangjie&#034;, &#034;\u4ed3\u9889&#034;))<\/p>\n<p>    \/\/ \u2464 \u82f1\u6587\u5927\u5c0f\u5199\u8f6c\u6362&#xff08;\u53ea\u5f71\u54cd ASCII \u5b57\u6bcd&#xff09;<br \/>\n    println(&#034;cangjie&#034;.toAsciiUpper())<br \/>\n    println(&#034;CANGJIE&#034;.toAsciiLower())<\/p>\n<p>    \/\/ \u2465 \u53bb\u9996\u5c3e\u7a7a\u767d&#xff08;trim \u7cfb\u5217\u662f std.unicode \u7684\u6269\u5c55&#xff09;<br \/>\n    let padded &#061; &#034;  hello cangjie  &#034;<br \/>\n    println(&#034;[${padded.trim()}]&#034;)<br \/>\n    return 0<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c&#xff1a;<\/p>\n<p>\u5305\u542b Cang&#xff1a;true<br \/>\n\u4ee5 Hello \u5f00\u5934&#xff1a;true<br \/>\n\u4ee5 jie \u7ed3\u5c3e&#xff1a;true<br \/>\n\u5b57\u6bcd l \u51fa\u73b0\u6b21\u6570&#xff1a;2<br \/>\n\u7b2c\u4e00\u4e2a l \u7684\u4f4d\u7f6e&#xff1a;Some(2)<br \/>\n\u6700\u540e\u4e00\u4e2a l \u7684\u4f4d\u7f6e&#xff1a;Some(3)<br \/>\nxyz \u7684\u4f4d\u7f6e&#xff1a;None<br \/>\n\u5207\u51fa 3 \u6bb5&#xff0c;\u7b2c\u4e8c\u6bb5\u662f banana<br \/>\napple | banana | orange<br \/>\nHello,\u4ed3\u9889<br \/>\nCANGJIE<br \/>\ncangjie<br \/>\n[hello cangjie]<\/p>\n<p>\u9010\u4e2a\u89e3\u91ca&#xff1a;<\/p>\n<ul>\n<li>\u5224\u65ad\u4e09\u4ef6\u5957&#xff1a;contains&#xff08;\u662f\u5426\u5305\u542b\u5b50\u4e32&#xff09;\u3001startsWith \/ endsWith&#xff08;\u524d\u7f00\u540e\u7f00&#xff09;&#xff0c;\u8fd4\u56de Bool&#xff0c;\u6700\u9002\u5408\u653e\u5728 if \u6761\u4ef6\u91cc&#xff1b;<\/li>\n<li>count(&#034;l&#034;)&#xff1a;\u6570\u5b50\u4e32\u51fa\u73b0\u4e86\u51e0\u6b21&#xff08;\u8fd9\u91cc l \u5728 Hello \u91cc\u51fa\u73b0 2 \u6b21&#xff09;&#xff1b;<\/li>\n<li>indexOf \/ lastIndexOf&#xff1a;\u8fd4\u56de\u5b50\u4e32\u7b2c\u4e00\u6b21\/\u6700\u540e\u4e00\u6b21\u51fa\u73b0\u7684\u5b57\u8282\u4e0b\u6807\u3002\u7ed3\u679c\u957f\u5f97\u6709\u70b9\u602a&#xff1a;\u627e\u5230\u662f Some(2)&#xff0c;\u627e\u4e0d\u5230\u662f None\u2014\u2014\u5b83\u662f\u7b2c 9 \u8bfe\u8981\u5b66\u7684 Option \u53ef\u9009\u503c&#xff0c;\u73b0\u9636\u6bb5\u53ea\u8981\u8bb0\u4f4f&#034;\u5224\u65ad\u6709\u6ca1\u6709\u7528 contains&#xff0c;\u8981\u4f4d\u7f6e\u624d\u7528 indexOf&#xff0c;\u770b\u5230 None \u5c31\u662f\u6ca1\u627e\u5230&#034;&#xff1b;<\/li>\n<li>split(&#034;,&#034;)&#xff1a;\u6309\u5206\u9694\u7b26\u5207\u6210\u5b57\u7b26\u4e32\u6570\u7ec4&#xff08;Array&lt;String&gt;&#xff0c;\u7b2c 7 \u8bfe\u7ec6\u8bb2&#xff09;&#xff1b;String.join(\u6570\u7ec4, delimiter: &#034; | &#034;) \u53cd\u8fc7\u6765\u7528\u6307\u5b9a\u5206\u9694\u7b26\u62fc\u56de\u4e00\u53e5\u2014\u2014\u6ce8\u610f join \u662f String \u7684\u9759\u6001\u65b9\u6cd5&#xff0c;\u5206\u9694\u7b26\u662f\u547d\u540d\u53c2\u6570 delimiter:&#xff1b;<\/li>\n<li>replace(\u65e7, \u65b0)&#xff1a;\u628a\u6240\u6709\u65e7\u5b50\u4e32\u66ff\u6362\u6210\u65b0\u7684&#xff0c;\u8fd4\u56de\u65b0\u5b57\u7b26\u4e32&#xff1b;<\/li>\n<li>toAsciiUpper() \/ toAsciiLower()&#xff1a;\u53ea\u8f6c\u6362\u82f1\u6587\u5b57\u6bcd&#xff08;\u540d\u5b57\u5e26 Ascii \u5c31\u662f\u63d0\u9192\u4f60\u5b83\u4e0d\u7ba1\u6c49\u5b57&#xff09;&#xff1b;<\/li>\n<li>trim()&#xff1a;\u53bb\u6389\u9996\u5c3e\u7684\u7a7a\u683c\u3001Tab\u3001\u6362\u884c\u7b49\u7a7a\u767d&#xff0c;\u5904\u7406\u7528\u6237\u8f93\u5165\u7684\u5229\u5668&#xff1b;\u53ea\u60f3\u53bb\u4e00\u5934\u7528 trimStart() \/ trimEnd()\u3002\u8fd9\u4e09\u4e2a\u662f std.unicode \u5305\u7684\u6269\u5c55\u51fd\u6570&#xff0c;\u5fc5\u987b import std.unicode.*&#xff0c;\u5426\u5219\u7f16\u8bd1\u5668\u4f1a\u62a5 &#039;trim&#039; is not a member of struct &#039;String&#039;\u3002<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e03\u3001StringBuilder&#xff1a;\u5faa\u73af\u62fc\u63a5\u7684\u6b63\u786e\u59ff\u52bf<\/h3>\n<p>\u56e0\u4e3a String \u4e0d\u53ef\u53d8&#xff0c;\u4e0b\u9762\u8fd9\u79cd\u5faa\u73af\u91cc\u7528 &#043;&#061; \u62fc\u5b57\u7b26\u4e32\u7684\u5199\u6cd5&#xff0c;\u6bcf\u62fc\u4e00\u6b21\u90fd\u4f1a\u9020\u4e00\u4e2a\u5168\u65b0\u5b57\u7b26\u4e32\u3001\u628a\u65e7\u5185\u5bb9\u6574\u4f53\u590d\u5236\u4e00\u904d&#xff0c;\u6570\u636e\u91cf\u5927\u65f6\u5f88\u6d6a\u8d39&#xff1a;<\/p>\n<p>package helloCangjie<\/p>\n<p>main(): Int64 {<br \/>\n    \/\/ \u80fd\u8dd1&#xff0c;\u4f46\u5faa\u73af\u6b21\u6570\u5f88\u591a\u65f6\u6548\u7387\u4f4e&#xff08;\u6bcf\u6b21 &#043;&#061; \u90fd\u5728\u590d\u5236\u65e7\u5185\u5bb9&#xff09;<br \/>\n    var s &#061; &#034;&#034;<br \/>\n    for (i in 1..&#061;5) {<br \/>\n        s &#043;&#061; &#034;${i}&#034;<br \/>\n    }<br \/>\n    println(&#034;\u6734\u7d20\u62fc\u63a5&#xff1a;${s}&#034;)<br \/>\n    return 0<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c&#xff1a;<\/p>\n<p>\u6734\u7d20\u62fc\u63a5&#xff1a;12345<\/p>\n<p>\u66f4\u597d\u7684\u5de5\u5177\u662f StringBuilder&#xff08;\u5b57\u7b26\u4e32\u6784\u5efa\u5668&#xff0c;\u5728\u6838\u5fc3\u5305 std.core \u91cc&#xff0c;\u65e0\u9700 import&#xff09;&#xff1a;\u5b83\u5185\u90e8\u7ef4\u62a4\u4e00\u5757\u53ef\u589e\u957f\u7684\u7f13\u51b2\u533a&#xff0c;append \u4e0d\u65ad\u5f80\u91cc\u8ffd\u52a0&#xff0c;\u6700\u540e toString() \u4e00\u6b21\u6027\u53d6\u51fa&#xff1a;<\/p>\n<p>package helloCangjie<\/p>\n<p>main(): Int64 {<br \/>\n    let sb &#061; StringBuilder()<br \/>\n    for (i in 1..&#061;5) {<br \/>\n        sb.append(i)<br \/>\n        if (i &lt; 5) {<br \/>\n            sb.append(&#034;, &#034;)    \/\/ \u6570\u5b57\u4e4b\u95f4\u52a0\u5206\u9694\u7b26&#xff0c;\u6700\u540e\u4e00\u4e2a\u4e0d\u52a0\u5206\u53f7<br \/>\n        }<br \/>\n    }<br \/>\n    let result &#061; sb.toString()<br \/>\n    println(result)<br \/>\n    return 0<br \/>\n}<\/p>\n<p>\u8fd0\u884c\u7ed3\u679c&#xff1a;<\/p>\n<p>1, 2, 3, 4, 5<\/p>\n<p>\u7ecf\u9a8c\u6cd5\u5219&#xff1a;\u5076\u5c14\u62fc\u4e00\u4e24\u53e5&#xff0c;\u7528\u63d2\u503c\u6216 &#043;&#xff1b;\u5728\u5faa\u73af\u91cc\u6210\u767e\u4e0a\u5343\u6b21\u8ffd\u52a0&#xff0c;\u7528 StringBuilder\u3002 append \u4e0d\u6311\u7c7b\u578b\u2014\u2014\u5b57\u7b26\u4e32\u3001\u6570\u5b57\u3001Rune \u90fd\u80fd\u76f4\u63a5\u585e\u8fdb\u53bb&#xff0c;\u5b83\u4f1a\u81ea\u52a8\u8f6c\u6210\u6587\u672c\u3002<\/p>\n<hr \/>\n<h3>\u516b\u3001CIDE \u5b9e\u64cd&#xff1a;\u82f1\u6587\u53e5\u5b50\u5206\u6790\u5668&#xff08;\u7efc\u5408\u5b9e\u6218&#xff09;<\/h3>\n<p>\u7efc\u5408\u672c\u8bfe\u77e5\u8bc6&#xff1a;\u8ba9\u7528\u6237\u8f93\u5165\u4e00\u53e5\u82f1\u6587&#xff0c;\u7a0b\u5e8f\u81ea\u52a8\u5b8c\u6210\u53bb\u7a7a\u767d\u3001\u7edf\u8ba1\u957f\u5ea6\/\u5b57\u6570\u3001\u5927\u5c0f\u5199\u8f6c\u6362\u3001\u5173\u952e\u8bcd\u5224\u65ad\u3001\u5207\u8bcd\u7f16\u53f7\u3001\u67e5\u627e\u66ff\u6362\u7b49\u4e00\u6574\u5957\u5206\u6790\u3002<\/p>\n<h4>8.1 \u7f16\u5199\u7a0b\u5e8f<\/h4>\n<p>\u7ee7\u7eed\u4f7f\u7528 helloCangjie \u9879\u76ee&#xff0c;\u628a src\/main.cj \u66ff\u6362\u4e3a&#xff1a;<\/p>\n<p>package helloCangjie<\/p>\n<p>import std.env.*<br \/>\nimport std.unicode.*<\/p>\n<p>main(): Int64 {<br \/>\n    print(&#034;\u8bf7\u8f93\u5165\u4e00\u53e5\u82f1\u6587&#xff1a;&#034;)<br \/>\n    let raw &#061; getStdIn().readln().getOrThrow()<br \/>\n    let sentence &#061; raw.trim()<\/p>\n<p>    println(&#034;&#8212;&#8212; \u53e5\u5b50\u5206\u6790\u62a5\u544a &#8212;&#8212;&#034;)<br \/>\n    println(&#034;\u53bb\u6389\u9996\u5c3e\u7a7a\u767d\u540e&#xff1a;[${sentence}]&#034;)<br \/>\n    println(&#034;\u5b57\u8282\u957f\u5ea6&#xff1a;${sentence.size}&#034;)<br \/>\n    println(&#034;\u5b57\u7b26\u4e2a\u6570&#xff1a;${sentence.toRuneArray().size}&#034;)<br \/>\n    println(&#034;\u5168\u5927\u5199&#xff1a;${sentence.toAsciiUpper()}&#034;)<\/p>\n<p>    \/\/ \u4e0d\u533a\u5206\u5927\u5c0f\u5199\u5224\u65ad\u662f\u5426\u5305\u542b cangjie&#xff1a;\u5148\u7edf\u4e00\u8f6c\u5c0f\u5199\u518d contains<br \/>\n    if (sentence.toAsciiLower().contains(&#034;cangjie&#034;)) {<br \/>\n        println(&#034;\u5173\u952e\u8bcd\u68c0\u67e5&#xff1a;\u8fd9\u53e5\u8bdd\u91cc\u63d0\u5230\u4e86 cangjie \u2705&#034;)<br \/>\n    } else {<br \/>\n        println(&#034;\u5173\u952e\u8bcd\u68c0\u67e5&#xff1a;\u6ca1\u6709\u63d0\u5230 cangjie&#034;)<br \/>\n    }<\/p>\n<p>    \/\/ \u6309\u7a7a\u683c\u5207\u8bcd&#xff0c;\u9010\u4e2a\u7f16\u53f7\u5e76\u7edf\u8ba1\u6bcf\u4e2a\u8bcd\u7684\u5b57\u8282\u957f\u5ea6<br \/>\n    let words &#061; sentence.split(&#034; &#034;)<br \/>\n    println(&#034;\u5355\u8bcd\u6570&#xff1a;${words.size}&#034;)<br \/>\n    for ((index, word) in words.enumerate()) {<br \/>\n        println(&#034;  \u7b2c ${index &#043; 1} \u4e2a\u8bcd&#xff1a;${word}&#xff08;${word.size} \u4e2a\u5b57\u8282&#xff09;&#034;)<br \/>\n    }<\/p>\n<p>    \/\/ \u67e5\u627e\u3001\u8fde\u63a5\u4e0e\u66ff\u6362<br \/>\n    println(&#034;\u7b2c\u4e00\u4e2a\u5b57\u6bcd o \u7684\u4f4d\u7f6e&#xff1a;${sentence.indexOf(&#034;o&#034;)}&#034;)<br \/>\n    println(&#034;\u4e0b\u5212\u7ebf\u8fde\u63a5&#xff1a;${String.join(words, delimiter: &#034;_&#034;)}&#034;)<br \/>\n    println(&#034;\u5b57\u6bcd o \u66ff\u6362\u6210 0&#xff1a;${sentence.replace(&#034;o&#034;, &#034;0&#034;)}&#034;)<br \/>\n    return 0<br \/>\n}<\/p>\n<p>\u51e0\u4e2a\u8bbe\u8ba1\u8981\u70b9&#xff1a;<\/p>\n<ul>\n<li>trim() \u7ed9\u8f93\u5165&#034;\u6d17\u6fa1&#034;&#xff1a;\u7528\u6237\u8f93\u5165\u65f6\u624b\u6296\u591a\u6572\u7684\u9996\u5c3e\u7a7a\u683c\u4e0d\u53c2\u4e0e\u5206\u6790&#xff0c;raw \u548c sentence \u5206\u5f00\u4fdd\u5b58\u770b\u5f97\u6700\u6e05\u695a&#xff1b;<\/li>\n<li>\u5927\u5c0f\u5199\u4e0d\u654f\u611f\u7684\u5224\u65ad\u6280\u5de7&#xff1a;\u5148 toAsciiLower() \u6574\u4f53\u8f6c\u5c0f\u5199&#xff0c;\u518d contains(&#034;cangjie&#034;)&#xff0c;\u8fd9\u6837 Cangjie\u3001CANGJIE \u90fd\u80fd\u547d\u4e2d&#xff1b;<\/li>\n<li>enumerate()&#xff1a;\u904d\u5386\u6570\u7ec4\u65f6\u540c\u65f6\u62ff\u5230&#034;\u4e0b\u6807 &#043; \u5143\u7d20&#034;&#xff0c;\u7f16\u53f7\u8f93\u51fa\u65f6\u4e0d\u7528\u81ea\u5df1\u7ef4\u62a4\u8ba1\u6570\u5668&#xff08;\u7b2c 7 \u8bfe\u8fd8\u4f1a\u7528&#xff09;&#xff1b;<\/li>\n<li>indexOf \u53ea\u7528\u4e8e\u5c55\u793a\u4f4d\u7f6e&#xff1a;\u771f\u6b63\u5224\u65ad\u6709\u6ca1\u6709\u51fa\u73b0\u7528\u7684\u662f\u4e0a\u9762\u7684 contains\u3002<\/li>\n<\/ul>\n<h4>8.2 \u8fd0\u884c\u4e0e\u9a8c\u8bc1<\/h4>\n<p>\u6309 Ctrl &#043; R \u8fd0\u884c&#xff0c;\u8f93\u5165  I love Cangjie &#xff08;\u6545\u610f\u5728\u9996\u5c3e\u591a\u6572\u51e0\u4e2a\u7a7a\u683c&#xff09;&#xff1a;<\/p>\n<p>\u8bf7\u8f93\u5165\u4e00\u53e5\u82f1\u6587&#xff1a;  I love Cangjie<br \/>\n&#8212;&#8212; \u53e5\u5b50\u5206\u6790\u62a5\u544a &#8212;&#8212;<br \/>\n\u53bb\u6389\u9996\u5c3e\u7a7a\u767d\u540e&#xff1a;[I love Cangjie]<br \/>\n\u5b57\u8282\u957f\u5ea6&#xff1a;14<br \/>\n\u5b57\u7b26\u4e2a\u6570&#xff1a;14<br \/>\n\u5168\u5927\u5199&#xff1a;I LOVE CANGJIE<br \/>\n\u5173\u952e\u8bcd\u68c0\u67e5&#xff1a;\u8fd9\u53e5\u8bdd\u91cc\u63d0\u5230\u4e86 cangjie \u2705<br \/>\n\u5355\u8bcd\u6570&#xff1a;3<br \/>\n  \u7b2c 1 \u4e2a\u8bcd&#xff1a;I&#xff08;1 \u4e2a\u5b57\u8282&#xff09;<br \/>\n  \u7b2c 2 \u4e2a\u8bcd&#xff1a;love&#xff08;4 \u4e2a\u5b57\u8282&#xff09;<br \/>\n  \u7b2c 3 \u4e2a\u8bcd&#xff1a;Cangjie&#xff08;7 \u4e2a\u5b57\u8282&#xff09;<br \/>\n\u7b2c\u4e00\u4e2a\u5b57\u6bcd o \u7684\u4f4d\u7f6e&#xff1a;Some(3)<br \/>\n\u4e0b\u5212\u7ebf\u8fde\u63a5&#xff1a;I_love_Cangjie<br \/>\n\u5b57\u6bcd o \u66ff\u6362\u6210 0&#xff1a;I l0ve Cangjie<\/p>\n<p>\u53ef\u4ee5\u81ea\u5df1\u518d\u6362\u51e0\u53e5\u8bd5\u8bd5&#xff1a;<\/p>\n<ul>\n<li>\u8f93\u5165\u5168\u4e2d\u6587\u7684\u53e5\u5b50&#xff0c;\u89c2\u5bdf&#034;\u5b57\u8282\u957f\u5ea6&#034;\u548c&#034;\u5b57\u7b26\u4e2a\u6570&#034;\u7684\u5dee\u8ddd&#xff08;\u4e00\u4e2a\u6c49\u5b57 3 \u5b57\u8282&#xff09;&#xff1b;<\/li>\n<li>\u8f93\u5165\u4e0d\u5e26\u4efb\u4f55\u7a7a\u683c\u7684 hello&#xff0c;\u5355\u8bcd\u6570\u5e94\u4e3a 1&#xff1b;<\/li>\n<li>\u8f93\u5165\u4e0d\u542b\u5b57\u6bcd o \u7684\u53e5\u5b50&#xff0c;\u6700\u540e\u4e00\u884c\u4f4d\u7f6e\u4f1a\u663e\u793a None&#xff0c;\u66ff\u6362\u884c\u539f\u6587\u4e0d\u53d8\u3002<\/li>\n<\/ul>\n<p>&#x1f4f8; \u914d\u56fe\u5efa\u8bae&#xff1a;Result \u9762\u677f\u5b8c\u6574\u663e\u793a\u53e5\u5b50\u5206\u6790\u62a5\u544a\u7684\u8fd0\u884c\u622a\u56fe&#xff0c;\u80fd\u770b\u5230 enumerate \u7f16\u53f7\u5217\u8868\u548c Some(3)\u3002<\/p>\n<h4>8.3 \u7528\u8c03\u8bd5\u5668\u89c2\u5bdf\u5b57\u7b26\u4e32\u7684&#034;\u4e0d\u53ef\u53d8&#034;<\/h4>\n<p>\u5b57\u7b26\u4e32\u65b9\u6cd5\u90fd\u8fd4\u56de\u65b0\u4e32\u3001\u4e0d\u6539\u539f\u4e32&#xff0c;\u8fd9\u4e2a\u7279\u6027\u5728\u8c03\u8bd5\u5668\u91cc\u4e00\u76ee\u4e86\u7136&#xff1a;<\/p>\n<li>\u5728 let words &#061; sentence.split(&#034; &#034;) \u4e00\u884c\u6253\u65ad\u70b9&#xff1b;<\/li>\n<li>Shift &#043; F9 \u542f\u52a8\u8c03\u8bd5&#xff0c;\u63a7\u5236\u53f0\u8f93\u5165 I love Cangjie \u540e\u56de\u8f66&#xff1b;<\/li>\n<li>\u65ad\u4f4f\u540e\u5728 Variables \u9762\u677f\u5bf9\u6bd4 raw&#xff08;\u5e26\u7a7a\u683c&#xff09;\u548c sentence&#xff08;trim \u540e\u7684\u65b0\u4e32&#xff09;\u2014\u2014raw \u91cc\u7684\u7a7a\u683c\u4ecd\u7136\u8fd8\u5728&#xff0c;\u8bc1\u660e trim() \u6ca1\u6709\u4fee\u6539\u539f\u503c&#xff1b;<\/li>\n<li>\u5355\u6b65&#xff08;F8&#xff09;\u8d8a\u8fc7 split&#xff0c;\u5c55\u5f00 words \u6570\u7ec4&#xff0c;\u80fd\u770b\u5230\u5207\u51fa\u6765\u7684 3 \u4e2a\u5b57\u7b26\u4e32\u5143\u7d20\u548c\u5b83\u4eec\u7684\u4e0b\u6807&#xff1b;<\/li>\n<li>\u518d\u5355\u6b65\u89c2\u5bdf toAsciiLower()\u3001replace() \u7684\u7ed3\u679c&#xff1a;\u6bcf\u4e00\u6b65\u90fd\u4ea7\u751f\u4e86\u65b0\u5b57\u7b26\u4e32&#xff0c;\u800c sentence \u4ece\u5934\u5230\u5c3e\u6ca1\u53d8\u3002<\/li>\n<p>&#x1f4f8; \u914d\u56fe\u5efa\u8bae&#xff1a;\u65ad\u70b9\u547d\u4e2d\u65f6 Variables \u9762\u677f\u4e2d raw \u5e26\u7a7a\u683c\u3001sentence \u4e0d\u5e26\u7a7a\u683c\u3001words \u542b 3 \u4e2a\u5143\u7d20\u7684\u622a\u56fe\u3002<\/p>\n<p>\u8c03\u8bd5\u7ed3\u675f\u70b9\u505c\u6b62\u6309\u94ae\u3002<\/p>\n<hr \/>\n<h3>\u4e5d\u3001\u5e38\u89c1\u95ee\u9898 FAQ<\/h3>\n<p>Q1&#xff1a;\u4e3a\u4ec0\u4e48 &#034;\u4ed3\u9889\u8bed\u8a00&#034;.size \u662f 12 \u800c\u4e0d\u662f 4&#xff1f; size \u8fd4\u56de\u7684\u662f UTF-8 \u5b57\u8282\u957f\u5ea6&#xff0c;\u6c49\u5b57\u4e00\u4e2a\u5b57\u5360 3 \u4e2a\u5b57\u8282\u3002\u60f3\u8981\u5b57\u6570&#xff0c;\u7528 s.toRuneArray().size\u3002<\/p>\n<p>Q2&#xff1a;for (c in &#034;\u4ed3\u9889&#034;) \u4e3a\u4ec0\u4e48\u6253\u5370\u51fa 228\u3001187 \u8fd9\u79cd\u6570\u5b57&#xff1f; \u76f4\u63a5 for-in \u5b57\u7b26\u4e32\u904d\u5386\u7684\u662f\u5b57\u8282&#xff08;UInt8&#xff09;&#xff0c;228 187 147 \u6b63\u662f&#034;\u4ed3&#034;\u5b57\u7684\u4e09\u4e2a UTF-8 \u5b57\u8282\u3002\u60f3\u9010\u5b57\u7b26\u904d\u5386\u7528 for (ch in s.runes())&#xff0c;\u6216 s.toRuneArray()\u3002<\/p>\n<p>Q3&#xff1a;\u5207\u5b57\u7b26\u4e32\u62a5 IllegalArgumentException: Invalid utf8 byte sequence \u662f\u600e\u4e48\u56de\u4e8b&#xff1f; \u5207\u7247\u4e0b\u6807\u662f\u5b57\u8282\u4e0b\u6807&#xff0c;\u5207\u4e2d\u6587\u65f6\u628a\u4e00\u4e2a\u6c49\u5b57&#xff08;3 \u5b57\u8282&#xff09;\u4ece\u4e2d\u95f4\u5207\u65ad\u4e86&#xff0c;\u4ea7\u751f\u4e86\u4e0d\u5408\u6cd5\u7684 UTF-8 \u6570\u636e\u3002\u5904\u7406\u4e2d\u6587\u8bf7\u5148 toRuneArray() \u8f6c\u6210\u5b57\u7b26\u6570\u7ec4\u518d\u6309\u5b57\u7b26\u4e0b\u6807\u64cd\u4f5c&#xff0c;\u9700\u8981\u5b57\u7b26\u4e32\u65f6\u7528 String(\u6570\u7ec4) \u62fc\u56de\u3002<\/p>\n<p>Q4&#xff1a;\u8c03\u7528 trim() \u7f16\u8bd1\u62a5\u9519&#034;not a member of struct \u2018String\u2019&#034;&#xff1f; trim() \/ trimStart() \/ trimEnd() \u662f std.unicode \u5305\u63d0\u4f9b\u7684\u6269\u5c55\u51fd\u6570&#xff0c;\u6587\u4ef6\u5f00\u5934\u52a0 import std.unicode.* \u5373\u53ef\u3002contains\u3001split \u7b49\u5219\u662f String \u81ea\u5e26\u7684&#xff0c;\u4e0d\u7528 import\u3002<\/p>\n<p>Q5&#xff1a;Windows \u8def\u5f84\u91cc\u7684\u53cd\u659c\u6760\u4e00\u5b9a\u8981\u5199\u4e24\u904d\u5417&#xff1f; \u666e\u901a\u5b57\u7b26\u4e32\u91cc \\\\\\\\ \u624d\u8868\u793a\u4e00\u4e2a\u53cd\u659c\u6760&#xff1b;\u66f4\u7701\u5fc3\u7684\u529e\u6cd5\u662f\u7528 raw \u5b57\u7b26\u4e32 #&#034;C:\\\\Users\\\\name\\\\a.cj&#034;#&#xff0c;\u91cc\u9762\u6240\u6709\u5b57\u7b26\u539f\u6837\u4fdd\u7559&#xff0c;\u8fde ${} \u90fd\u4e0d\u4f1a\u88ab\u63d2\u503c\u3002<\/p>\n<p>Q6&#xff1a;indexOf \u8fd4\u56de\u7684 Some(3)\u3001None \u662f\u4ec0\u4e48&#xff1f;\u80fd\u76f4\u63a5\u5f53\u6570\u5b57\u7528\u5417&#xff1f; \u5b83\u662f Option \u53ef\u9009\u503c&#xff08;\u7b2c 9 \u8bfe\u8be6\u89e3&#xff09;&#xff1a;\u627e\u5230\u65f6 Some(\u5b57\u8282\u4e0b\u6807)&#xff0c;\u627e\u4e0d\u5230\u65f6 None\u3002\u5165\u95e8\u9636\u6bb5\u53ea\u8981\u77e5\u9053&#034;\u770b\u5230 None \u5c31\u662f\u6ca1\u627e\u5230&#034;&#xff1b;\u53ea\u60f3\u5224\u65ad&#034;\u6709\u6ca1\u6709&#034;&#xff0c;\u76f4\u63a5\u7528\u8fd4\u56de Bool \u7684 contains \u66f4\u65b9\u4fbf\u3002<\/p>\n<p>Q7&#xff1a;\u5faa\u73af\u91cc\u7528 &#043;&#061; \u62fc\u5b57\u7b26\u4e32\u4e0d\u884c\u5417&#xff1f; \u80fd\u8dd1&#xff0c;\u4f46 String \u4e0d\u53ef\u53d8&#xff0c;\u6bcf\u6b21 &#043;&#061; \u90fd\u4f1a\u590d\u5236\u6574\u4e2a\u65e7\u5b57\u7b26\u4e32&#xff0c;\u5faa\u73af\u6b21\u6570\u591a\u4e86\u5f88\u6162\u3002\u5c11\u91cf\u62fc\u63a5\u7528\u63d2\u503c&#xff1b;\u5faa\u73af\u91cc\u5927\u91cf\u8ffd\u52a0\u8bf7\u7528 StringBuilder \u7684 append &#043; toString\u3002<\/p>\n<p>Q8&#xff1a;\u600e\u4e48\u628a\u6570\u5b57\u53d8\u6210\u5b57\u7b26\u4e32\u3001\u5b57\u7b26\u4e32\u53d8\u6210\u6570\u5b57&#xff1f; \u6570\u5b57\u8f6c\u5b57\u7b26\u4e32&#xff1a;\u63d2\u503c &#034;${n}&#034; \u6216 n.toString()&#xff1b;\u5b57\u7b26\u4e32\u8f6c\u6570\u5b57&#xff1a;Int64.parse(text)&#xff08;\u9700 import std.convert.*&#xff09;&#xff0c;\u6587\u672c\u4e0d\u662f\u5408\u6cd5\u6570\u5b57\u65f6\u4f1a\u629b\u51fa\u5f02\u5e38&#xff0c;\u7b2c 10 \u8bfe\u9519\u8bef\u5904\u7406\u4f1a\u8bb2\u600e\u4e48\u4f18\u96c5\u5730\u63a5\u4f4f\u5b83\u3002<\/p>\n<hr \/>\n<h3>\u5341\u3001\u8bfe\u540e\u7ec3\u4e60<\/h3>\n<li>\u8ba9\u7528\u6237\u8f93\u5165\u81ea\u5df1\u7684\u540d\u5b57&#xff08;\u53ef\u80fd\u662f\u4e2d\u6587&#xff09;&#xff0c;\u8f93\u51fa\u4e00\u53e5\u95ee\u5019&#xff0c;\u5e76\u5206\u522b\u6253\u5370\u540d\u5b57\u7684\u5b57\u8282\u957f\u5ea6\u548c\u5b57\u7b26\u4e2a\u6570\u3002\u63d0\u793a&#xff1a;size \u4e0e toRuneArray().size \u5bf9\u6bd4\u7740\u770b&#xff1b;\u4e2d\u6587\u540d&#034;\u738b\u9e4f&#034;\u5e94\u662f 6 \u4e2a\u5b57\u8282\u30012 \u4e2a\u5b57\u3002<\/li>\n<li>\u7ed9\u5b9a\u5b57\u7b26\u4e32 let s &#061; &#034;Cangjie is a modern language&#034;&#xff0c;\u8f93\u51fa&#xff1a;\u5355\u8bcd\u4e2a\u6570&#xff08;split(&#034; &#034;)&#xff09;\u3001\u5b57\u6bcd a \u51fa\u73b0\u6b21\u6570&#xff08;count(&#034;a&#034;)&#xff09;\u3001\u662f\u5426\u4ee5 Cangjie \u5f00\u5934\u3001\u6574\u53e5\u7684\u5168\u5927\u5199\u5f62\u5f0f\u3002<\/li>\n<li>\u7528 &#034;&#061;&#034; * 30 \u6253\u5370\u4e00\u6761 30 \u4e2a\u7b49\u53f7\u7684\u5206\u9694\u7ebf&#xff1b;\u518d\u628a &#034;2026-09-15&#034; \u6309 &#034;-&#034; \u5207\u5f00&#xff0c;\u8f93\u51fa&#034;\u5e74&#xff1a;2026&#xff0c;\u6708&#xff1a;09&#xff0c;\u65e5&#xff1a;15&#034;\u3002<\/li>\n<li>\u7528 StringBuilder \u5728\u5faa\u73af\u4e2d\u62fc\u51fa 1, 2, 3, &#8230;, 10&#xff08;\u8981\u6c42\u6700\u540e\u4e00\u4e2a\u6570\u5b57\u540e\u9762\u6ca1\u6709\u591a\u4f59\u9017\u53f7&#xff09;&#xff0c;\u5bf9\u6bd4\u76f4\u63a5\u7528 &#043;&#061; \u7684\u5199\u6cd5&#xff0c;\u601d\u8003\u5982\u679c\u5faa\u73af\u5230 10000 \u6b21\u5dee\u522b\u5728\u54ea\u3002<\/li>\n<li>\u6253\u5f00 8.1 \u7684\u7a0b\u5e8f Shift &#043; F9 \u8c03\u8bd5&#xff0c;\u5728 split \u4e00\u884c\u6253\u65ad\u70b9&#xff0c;\u8f93\u5165 I love Cangjie&#xff0c;\u5728 Variables \u9762\u677f\u786e\u8ba4 raw \u5e26\u7a7a\u683c\u800c sentence \u4e0d\u5e26&#xff1b;\u5355\u6b65\u89c2\u5bdf words \u6570\u7ec4\u7684 3 \u4e2a\u5143\u7d20&#xff0c;\u4ee5\u53ca replace(&#034;o&#034;, &#034;0&#034;) \u6267\u884c\u540e sentence \u672c\u8eab\u6709\u6ca1\u6709\u53d8\u5316&#xff08;\u7b54\u6848\u5e94\u8be5\u662f\u6ca1\u6709&#xff09;\u3002<\/li>\n<hr \/>\n<h3>\u4e0b\u8282\u9884\u544a<\/h3>\n<p>\u8fd9\u8282\u8bfe\u6211\u4eec\u5b66\u4f1a\u4e86\u5904\u7406&#034;\u4e00\u6bb5\u6587\u672c&#034;&#xff0c;\u4f46\u7a0b\u5e8f\u91cc\u7ecf\u5e38\u8981\u5904\u7406\u7684\u662f\u4e00\u6392\u6570\u636e&#xff1a;\u4e00\u4e2a\u73ed 50 \u4e2a\u540c\u5b66\u7684\u6210\u7ee9\u3001\u8d2d\u7269\u8f66\u91cc\u7684\u591a\u4ef6\u5546\u54c1\u3002\u7b2c 7 \u8bfe\u5b66\u4e60 \u6570\u7ec4 Array \u4e0e\u533a\u95f4 Range\u2014\u2014\u628a\u540c\u7c7b\u578b\u7684\u6570\u636e\u6574\u9f50\u5730\u88c5\u8fdb\u4e00\u4e2a\u5bb9\u5668&#xff0c;\u6309\u4e0b\u6807\u5b58\u53d6\u3001\u6574\u4f53\u904d\u5386\u3001\u5207\u7247&#xff0c;\u8fd8\u4f1a\u6b63\u5f0f\u8ba4\u8bc6\u8fd9\u8282\u8bfe\u53cd\u590d\u51fa\u73b0\u7684 split(&#034; &#034;) \u5230\u5e95\u5207\u51fa\u4e86\u4ec0\u4e48\u3002\u6211\u4eec\u4e0b\u8282\u8bfe\u89c1&#xff01;<\/p>\n<hr \/>\n<p>\u7cfb\u5217\u8bf4\u660e&#xff1a;\u672c\u7cfb\u5217\u57fa\u4e8e Windows \u5e73\u53f0 &#043; CIDE &#043; \u4ed3\u9889 SDK&#xff08;1.1.3&#xff09;\u7f16\u5199&#xff0c;\u6240\u6709\u4ee3\u7801\u5747\u5df2\u5b9e\u9645\u7f16\u8bd1\u8fd0\u884c\u901a\u8fc7\u3002\u5982\u9047 SDK \u7248\u672c\u5dee\u5f02\u5bfc\u81f4\u7684\u7ec6\u8282\u51fa\u5165&#xff0c;\u4ee5\u4f60\u672c\u5730\u7248\u672c\u4e3a\u51c6&#xff0c;\u6b22\u8fce\u8bc4\u8bba\u533a\u4ea4\u6d41\u3002<\/p>\n<hr \/>\n<h3>&#xfffd; \u9047\u5230\u95ee\u9898&#xff1f;\u626b\u7801\u8054\u7cfb\u4f5c\u8005<\/h3>\n<p>\u8ddf\u7740\u8bfe\u7a0b\u7ec3\u4e60\u65f6&#xff0c;\u5982\u679c\u5728 SDK \u5b89\u88c5\u3001\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u3001\u7f16\u8bd1\u62a5\u9519\u6216\u8c03\u8bd5\u4e0a\u5361\u4f4f&#xff0c;\u6b22\u8fce\u626b\u7801\u52a0\u4f5c\u8005\u4f01\u4e1a\u5fae\u4fe1\u76f4\u63a5\u54a8\u8be2&#xff08;\u8bf7\u5907\u6ce8&#034;\u4ed3\u9889\u8bfe\u7a0b&#034;&#xff09;&#xff1a;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260915011624-6aa89c6828e30.png\" width=\"200\" alt=\"\u626b\u7801\u52a0\u4f01\u4e1a\u5fae\u4fe1\u8054\u7cfb CIDE \u4f5c\u8005\" \/> <\/p>\n<p>\u79bb\u7ebf\u73af\u5883\u4e0b\u56fe\u7247\u53ef\u80fd\u52a0\u8f7d\u4e0d\u51fa\u6765&#xff0c;\u4e5f\u53ef\u4ee5\u5728 CIDE \u83dc\u5355 Help \u25b8 \u8054\u7cfb\u4f5c\u8005 \/ Contact \u4e2d\u67e5\u770b\u540c\u4e00\u5f20\u4e8c\u7ef4\u7801&#xff08;\u5e94\u7528\u5185\u7f6e\u515c\u5e95\u56fe&#xff0c;\u65e0\u9700\u8054\u7f51&#xff09;\u3002<\/p>\n<hr \/>\n<h3>&#xfffd;&#x1f4e5; \u5de5\u5177\u4e0b\u8f7d<\/h3>\n<p>\u672c\u7cfb\u5217\u5168\u7a0b\u4f7f\u7528\u7684\u4ed3\u9889 IDE \u2014\u2014 CIDE&#xff08;\u514d\u8d39\u5f00\u6e90\u3001\u793e\u533a\u7248&#xff09;&#xff1a;<\/p>\n<ul>\n<li>GitCode \u4ed3\u5e93 \/ \u5b89\u88c5\u5305\u4e0b\u8f7d&#xff1a;https:\/\/gitcode.com\/wp_upala\/cide<\/li>\n<li>\u6253\u5f00\u9875\u9762\u540e\u8fdb\u5165 \u53d1\u884c\u7248&#xff08;Releases&#xff09;&#xff0c;\u4e0b\u8f7d CIDE-&lt;\u7248\u672c&gt;-x64-Setup.exe \u5b89\u88c5\u5373\u53ef<\/li>\n<li>\u4ed3\u9889 SDK \u8bf7\u524d\u5f80\u4ed3\u9889\u7f16\u7a0b\u8bed\u8a00\u5b98\u7f51\u4e0b\u8f7d&#xff1a;https:\/\/cangjie-lang.cn<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u3010\u4ed3\u9889\u8bed\u8a00\u5165\u95e8 \u00b7 \u7b2c6\u8bfe\u3011\u5b57\u7b26\u4e32\u8be6\u89e3\u4e0e\u5b57\u7b26\u4e32\u63d2\u503c \u4e0a\u8282\u8bfe\u6211\u4eec\u7528\u5faa\u73af\u8ba9\u7a0b\u5e8f\u5b66\u4f1a\u4e86\\&#8221;\u91cd\u590d\u5e72\u6d3b\\&#8221;\u3002\u4e0d\u8fc7\u524d\u51e0\u8bfe\u8f93\u51fa\u7684\u8fd8\u90fd\u662f\u5e72\u5df4\u5df4\u7684\u6570\u5b57&#xff0c;\u800c\u771f\u5b9e\u7a0b\u5e8f\u5904\u7406\u5f97\u6700\u591a\u7684\u6570\u636e\u5176\u5b9e\u662f\u6587\u672c&#xff1a;\u7528\u6237\u540d\u3001\u6587\u4ef6\u8def\u5f84\u3001\u4e00\u53e5\u8bdd\u3001\u4e00\u6761\u65e5\u5fd7\u2026\u2026\u7b2c 3 \u8bfe\u6211\u4eec\u7b80\u5355\u7528\u8fc7\u53cc\u5f15\u53f7\u5b57\u7b26\u4e32&#xff0c;\u8fd9\u8282\u8bfe\u628a\u5b83\u5f7b\u5e95\u8bb2\u900f\u2014\u2014\u600e\u4e48\u628a\u53d8\u91cf\u5d4c\u8fdb\u53e5\u5b50\u91cc&#xff08;\u5b57\u7b26\u4e32\u63d2\u503c&#xff09;\u3001\u600e\u4e48\u53d6\u51fa\u5176\u4e2d\u4e00\u90e8\u5206&#xff08;\u5207\u7247&#xff09;\u3001\u82f1\u6587\u548c\u6c49\u5b57\u957f\u5ea6\u4e3a\u4ec0\u4e48\u4e0d\u4e00\u6837&#xff08;UTF-8&amp;<\/p>\n","protected":false},"author":2,"featured_media":105307,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[70,190],"topic":[],"class_list":["post-105308","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ide","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u4ed3\u9889\u8bed\u8a00\u5165\u95e8 \u00b7 \u7b2c6\u8bfe\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/105308.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u4ed3\u9889\u8bed\u8a00\u5165\u95e8 \u00b7 \u7b2c6\u8bfe\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u3010\u4ed3\u9889\u8bed\u8a00\u5165\u95e8 \u00b7 \u7b2c6\u8bfe\u3011\u5b57\u7b26\u4e32\u8be6\u89e3\u4e0e\u5b57\u7b26\u4e32\u63d2\u503c \u4e0a\u8282\u8bfe\u6211\u4eec\u7528\u5faa\u73af\u8ba9\u7a0b\u5e8f\u5b66\u4f1a\u4e86&quot;\u91cd\u590d\u5e72\u6d3b&quot;\u3002\u4e0d\u8fc7\u524d\u51e0\u8bfe\u8f93\u51fa\u7684\u8fd8\u90fd\u662f\u5e72\u5df4\u5df4\u7684\u6570\u5b57&#xff0c;\u800c\u771f\u5b9e\u7a0b\u5e8f\u5904\u7406\u5f97\u6700\u591a\u7684\u6570\u636e\u5176\u5b9e\u662f\u6587\u672c&#xff1a;\u7528\u6237\u540d\u3001\u6587\u4ef6\u8def\u5f84\u3001\u4e00\u53e5\u8bdd\u3001\u4e00\u6761\u65e5\u5fd7\u2026\u2026\u7b2c 3 \u8bfe\u6211\u4eec\u7b80\u5355\u7528\u8fc7\u53cc\u5f15\u53f7\u5b57\u7b26\u4e32&#xff0c;\u8fd9\u8282\u8bfe\u628a\u5b83\u5f7b\u5e95\u8bb2\u900f\u2014\u2014\u600e\u4e48\u628a\u53d8\u91cf\u5d4c\u8fdb\u53e5\u5b50\u91cc&#xff08;\u5b57\u7b26\u4e32\u63d2\u503c&#xff09;\u3001\u600e\u4e48\u53d6\u51fa\u5176\u4e2d\u4e00\u90e8\u5206&#xff08;\u5207\u7247&#xff09;\u3001\u82f1\u6587\u548c\u6c49\u5b57\u957f\u5ea6\u4e3a\u4ec0\u4e48\u4e0d\u4e00\u6837&#xff08;UTF-8&amp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/105308.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-15T01:16:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260915011624-6aa89c6828e30.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/105308.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/105308.html\",\"name\":\"\u3010\u4ed3\u9889\u8bed\u8a00\u5165\u95e8 \u00b7 \u7b2c6\u8bfe\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-15T01:16:25+00:00\",\"dateModified\":\"2026-09-15T01:16:25+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/105308.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/105308.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/105308.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u4ed3\u9889\u8bed\u8a00\u5165\u95e8 \u00b7 \u7b2c6\u8bfe\u3011\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u4ed3\u9889\u8bed\u8a00\u5165\u95e8 \u00b7 \u7b2c6\u8bfe\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/105308.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u4ed3\u9889\u8bed\u8a00\u5165\u95e8 \u00b7 \u7b2c6\u8bfe\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u3010\u4ed3\u9889\u8bed\u8a00\u5165\u95e8 \u00b7 \u7b2c6\u8bfe\u3011\u5b57\u7b26\u4e32\u8be6\u89e3\u4e0e\u5b57\u7b26\u4e32\u63d2\u503c \u4e0a\u8282\u8bfe\u6211\u4eec\u7528\u5faa\u73af\u8ba9\u7a0b\u5e8f\u5b66\u4f1a\u4e86\"\u91cd\u590d\u5e72\u6d3b\"\u3002\u4e0d\u8fc7\u524d\u51e0\u8bfe\u8f93\u51fa\u7684\u8fd8\u90fd\u662f\u5e72\u5df4\u5df4\u7684\u6570\u5b57&#xff0c;\u800c\u771f\u5b9e\u7a0b\u5e8f\u5904\u7406\u5f97\u6700\u591a\u7684\u6570\u636e\u5176\u5b9e\u662f\u6587\u672c&#xff1a;\u7528\u6237\u540d\u3001\u6587\u4ef6\u8def\u5f84\u3001\u4e00\u53e5\u8bdd\u3001\u4e00\u6761\u65e5\u5fd7\u2026\u2026\u7b2c 3 \u8bfe\u6211\u4eec\u7b80\u5355\u7528\u8fc7\u53cc\u5f15\u53f7\u5b57\u7b26\u4e32&#xff0c;\u8fd9\u8282\u8bfe\u628a\u5b83\u5f7b\u5e95\u8bb2\u900f\u2014\u2014\u600e\u4e48\u628a\u53d8\u91cf\u5d4c\u8fdb\u53e5\u5b50\u91cc&#xff08;\u5b57\u7b26\u4e32\u63d2\u503c&#xff09;\u3001\u600e\u4e48\u53d6\u51fa\u5176\u4e2d\u4e00\u90e8\u5206&#xff08;\u5207\u7247&#xff09;\u3001\u82f1\u6587\u548c\u6c49\u5b57\u957f\u5ea6\u4e3a\u4ec0\u4e48\u4e0d\u4e00\u6837&#xff08;UTF-8&amp;","og_url":"https:\/\/www.wsisp.com\/helps\/105308.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-15T01:16:25+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260915011624-6aa89c6828e30.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"10 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/105308.html","url":"https:\/\/www.wsisp.com\/helps\/105308.html","name":"\u3010\u4ed3\u9889\u8bed\u8a00\u5165\u95e8 \u00b7 \u7b2c6\u8bfe\u3011 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-15T01:16:25+00:00","dateModified":"2026-09-15T01:16:25+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/105308.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/105308.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/105308.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u4ed3\u9889\u8bed\u8a00\u5165\u95e8 \u00b7 \u7b2c6\u8bfe\u3011"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/105308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=105308"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/105308\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/105307"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=105308"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=105308"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=105308"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=105308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}