{"id":205846,"date":"2025-06-12T08:26:25","date_gmt":"2025-06-12T00:26:25","guid":{"rendered":"https:\/\/server.hk\/cnblog\/205846\/"},"modified":"2025-06-12T08:26:25","modified_gmt":"2025-06-12T00:26:25","slug":"golang-%e5%87%bd%e6%95%b0%e9%93%be%e4%b8%ad%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8%e7%ae%a1%e9%81%93%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/205846\/","title":{"rendered":"Golang \u51fd\u6570\u94fe\u4e2d\u5982\u4f55\u4f7f\u7528\u7ba1\u9053\uff1f"},"content":{"rendered":"<p>\u5b66\u4e60<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">GOLANG<\/span>\u8981\u52aa\u529b\uff0c\u4f46\u662f\u4e0d\u8981\u6025\uff01\u4eca\u5929\u7684\u8fd9\u7bc7\u6587\u7ae0<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aGOLANG \u51fd\u6570\u94fe\u4e2d\u5982\u4f55\u4f7f\u7528\u7ba1\u9053\uff1f\u300b<\/span>\u5c06\u4f1a\u4ecb\u7ecd\u5230<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5982\u679c\u4f60\u60f3\u6df1\u5165\u5b66\u4e60<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">GOLANG<\/span>\uff0c\u53ef\u4ee5\u5173\u6ce8\u6211\uff01\u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u6587\u7ae0\u7684\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u90fd\u80fd\u6709\u6240\u5e2e\u52a9\uff01,\u5728 GOLANG \u51fd\u6570\u94fe\u4e2d\u4f7f\u7528\u7ba1\u9053\u53ef\u4ee5\u9ad8\u6548\u5730\u79fb\u52a8\u6570\u636e\uff0c\u56e0\u4e3a\u7ba1\u9053\u662f\u5e76\u53d1\u539f\u8bed\uff0c\u5141\u8bb8\u534f\u7a0b\u4e4b\u95f4\u5b89\u5168\u4f20\u9012\u6570\u636e\u3002\u7ba1\u9053\u7531\u4e00\u4e2a\u53d1\u9001\u7aef\u548c\u4e00\u4e2a\u63a5\u6536\u7aef\u7ec4\u6210\uff0c\u6570\u636e\u901a\u8fc7\u901a\u9053\u4f20\u9012\uff0c\u901a\u9053\u4f7f\u7528 chan \u5173\u952e\u5b57\u6307\u5b9a\u6570\u636e\u7c7b\u578b\u3002\u8981\u53d1\u9001\u6570\u636e\uff0c\u4f7f\u7528 &lt;- \u8fd0\u7b97\u7b26\uff1b\u8981\u4ece\u901a\u9053\u63a5\u6536\u6570\u636e\uff0c\u4f7f\u7528 -&gt; \u8fd0\u7b97\u7b26\u3002\u5728\u51fd\u6570\u94fe\u4e2d\u4f7f\u7528\u7ba1\u9053\uff0c\u53ea\u9700\u5728\u51fd\u6570\u4e4b\u95f4\u4f20\u9012\u901a\u9053\uff0c\u5e76\u5c06\u901a\u9053\u4f5c\u4e3a\u51fd\u6570\u53c2\u6570\u3002\u7ba1\u9053\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u5927\u6570\u636e\u96c6\u6216\u5e76\u884c\u8ba1\u7b97\uff0c\u4f8b\u5982\uff0c\u4ee3\u7801\u7247\u6bb5\u4f7f\u7528\u7ba1\u9053\u5e76\u884c\u8ba1\u7b97\u7d20\u6570\u3002,<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241027\/1730016706671df5c2f21f1.jpg\" class=\"aligncenter\">,<br \/>\n<strong>\u5728 GOLANG \u51fd\u6570\u94fe\u4e2d\u4f7f\u7528\u7ba1\u9053<\/strong>,\u7ba1\u9053\u662f\u4e00\u4e2a\u5e76\u53d1\u539f\u8bed\uff0c\u5141\u8bb8\u5728\u4e0d\u540c\u7684\u534f\u7a0b\u4e4b\u95f4\u5b89\u5168\u5730\u4f20\u9012\u6570\u636e\u3002\u5b83\u4eec\u5728\u51fd\u6570\u94fe\u4e2d\u7279\u522b\u6709\u7528\uff0c\u56e0\u4e3a\u5b83\u4eec\u53ef\u4ee5\u4f7f\u6570\u636e\u6d41\u5728\u4e0d\u540c\u7684\u51fd\u6570\u4e4b\u95f4\u9ad8\u6548\u5730\u79fb\u52a8\u3002,<br \/>\n<strong>\u7ba1\u9053 basics<\/strong>,\u7ba1\u9053\u7531\u4e24\u4e2a\u90e8\u5206\u7ec4\u6210\uff1a\u4e00\u4e2a\u53d1\u9001\u7aef\u548c\u4e00\u4e2a\u63a5\u6536\u7aef\u3002\u6570\u636e\u901a\u8fc7<br \/>\n<code>chan<\/code> \u5173\u952e\u5b57\u521b\u5efa\u7684\u901a\u9053\u4f20\u9012\uff0c\u5b83\u6307\u5b9a\u901a\u9053\u7684\u6570\u636e\u7c7b\u578b\u3002,\u8981\u53d1\u9001\u6570\u636e\uff0c\u8bf7\u4f7f\u7528<br \/>\n<code>&lt;-<\/code> \u8fd0\u7b97\u7b26\uff1a,\u8981\u4ece\u901a\u9053\u63a5\u6536\u6570\u636e\uff0c\u8bf7\u4f7f\u7528<br \/>\n<code>-&gt;<\/code> \u8fd0\u7b97\u7b26\uff1a,<br \/>\n<strong>\u5728\u51fd\u6570\u94fe\u4e2d\u4f7f\u7528\u7ba1\u9053<\/strong>,\u5728\u51fd\u6570\u94fe\u4e2d\u4f7f\u7528\u7ba1\u9053\u975e\u5e38\u7b80\u5355\u3002\u53ea\u9700\u5728\u51fd\u6570\u4e4b\u95f4\u4f20\u9012\u901a\u9053\uff0c\u5e76\u5c06\u901a\u9053\u4f5c\u4e3a\u51fd\u6570\u53c2\u6570\u3002\u4f8b\u5982\uff1a,\u5728\u8fd9\u91cc\uff0c<br \/>\n<code>ch<\/code> \u901a\u9053\u5728<br \/>\n<code>increment<\/code> \u548c<br \/>\n<code>double<\/code> \u51fd\u6570\u4e4b\u95f4\u4f20\u9012\u3002<br \/>\n<code>go func()<\/code> \u662f\u4e00\u4e2a\u533f\u540d\u51fd\u6570\uff0c\u5b83\u5c06\u6570\u636e\u53d1\u9001\u5230\u901a\u9053\uff0c\u7136\u540e\u7acb\u5373\u8fd4\u56de\u3002,<br \/>\n<strong>\u5b9e\u6218\u6848\u4f8b<\/strong>,\u7ba1\u9053\u8fd8\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u5927\u6570\u636e\u96c6\u6216\u6267\u884c\u5e76\u884c\u8ba1\u7b97\u3002\u4f8b\u5982\uff0c\u4ee5\u4e0b\u4ee3\u7801\u7247\u6bb5\u4f7f\u7528\u7ba1\u9053\u5e76\u884c\u8ba1\u7b97\u7d20\u6570\uff1a,\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u751f\u4ea7\u8005\u534f\u7a0b\u5411<br \/>\n<code>numbers<\/code> \u901a\u9053\u53d1\u9001\u6570\u5b57\uff0c\u7136\u540e\u5173\u95ed\u901a\u9053\u3002\u6d88\u8d39\u8005\u534f\u7a0b\u4ece<br \/>\n<code>numbers<\/code> \u901a\u9053\u63a5\u6536\u6570\u5b57\uff0c\u4f7f\u7528<br \/>\n<code>isPrime<\/code> \u51fd\u6570\u68c0\u67e5\u5b83\u4eec\u662f\u5426\u4e3a\u7d20\u6570\uff0c\u7136\u540e\u5c06\u7ed3\u679c\u53d1\u9001\u5230<br \/>\n<code>results<\/code> \u901a\u9053\u3002,\u597d\u4e86\uff0c\u672c\u6587\u5230\u6b64\u7ed3\u675f\uff0c\u5e26\u5927\u5bb6\u4e86\u89e3\u4e86\u300aGOLANG \u51fd\u6570\u94fe\u4e2d\u5982\u4f55\u4f7f\u7528\u7ba1\u9053\uff1f\u300b\uff0c\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff01\u5173\u6ce8GOLANG\u516c\u4f17\u53f7\uff0c\u7ed9\u5927\u5bb6\u5206\u4eab\u66f4\u591aGOLANG\u77e5\u8bc6\uff01,\u5b66\u4e60<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">GOLANG<\/span>\u8981\u52aa\u529b\uff0c\u4f46\u662f\u4e0d\u8981\u6025\uff01\u4eca\u5929\u7684\u8fd9\u7bc7\u6587\u7ae0<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aGOLANG \u51fd\u6570\u94fe\u4e2d\u5982\u4f55\u4f7f\u7528\u7ba1\u9053\uff1f\u300b<\/span>\u5c06\u4f1a\u4ecb\u7ecd\u5230<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5982\u679c\u4f60\u60f3\u6df1\u5165\u5b66\u4e60<br \/>\n<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">GOLANG<\/span>\uff0c\u53ef\u4ee5\u5173\u6ce8\u6211\uff01\u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u6587\u7ae0\u7684\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u90fd\u80fd\u6709\u6240\u5e2e\u52a9\uff01,<br \/>\n<b><\/b> <\/p>\n<p>\u5f53\u524d\u4f4d\u7f6e\uff1a <span>&gt;<\/span>  <span>&gt;<\/span>  <span>&gt;<\/span>  <span>&gt;<\/span> <span>GOLANG \u51fd\u6570\u94fe\u4e2d\u5982\u4f55\u4f7f\u7528\u7ba1\u9053\uff1f<\/span><\/p>\n<h1>GOLANG \u51fd\u6570\u94fe\u4e2d\u5982\u4f55\u4f7f\u7528\u7ba1\u9053\uff1f<\/h1>\n<p><span>2024-10-27 16:12:02<\/span><br \/>\n<span><i><\/i>0\u6d4f\u89c8<\/span><br \/>\n<span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span> <\/p>\n<p>\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">GOLANG<\/span>\u8981\u52aa\u529b\uff0c\u4f46\u662f\u4e0d\u8981\u6025\uff01\u4eca\u5929\u7684\u8fd9\u7bc7\u6587\u7ae0<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aGOLANG \u51fd\u6570\u94fe\u4e2d\u5982\u4f55\u4f7f\u7528\u7ba1\u9053\uff1f\u300b<\/span>\u5c06\u4f1a\u4ecb\u7ecd\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5982\u679c\u4f60\u60f3\u6df1\u5165\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">GOLANG<\/span>\uff0c\u53ef\u4ee5\u5173\u6ce8\u6211\uff01\u6211\u4f1a\u6301\u7eed\u66f4\u65b0\u76f8\u5173\u6587\u7ae0\u7684\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u90fd\u80fd\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<p>\u5728 GOLANG \u51fd\u6570\u94fe\u4e2d\u4f7f\u7528\u7ba1\u9053\u53ef\u4ee5\u9ad8\u6548\u5730\u79fb\u52a8\u6570\u636e\uff0c\u56e0\u4e3a\u7ba1\u9053\u662f\u5e76\u53d1\u539f\u8bed\uff0c\u5141\u8bb8\u534f\u7a0b\u4e4b\u95f4\u5b89\u5168\u4f20\u9012\u6570\u636e\u3002\u7ba1\u9053\u7531\u4e00\u4e2a\u53d1\u9001\u7aef\u548c\u4e00\u4e2a\u63a5\u6536\u7aef\u7ec4\u6210\uff0c\u6570\u636e\u901a\u8fc7\u901a\u9053\u4f20\u9012\uff0c\u901a\u9053\u4f7f\u7528 chan \u5173\u952e\u5b57\u6307\u5b9a\u6570\u636e\u7c7b\u578b\u3002\u8981\u53d1\u9001\u6570\u636e\uff0c\u4f7f\u7528 &lt;- \u8fd0\u7b97\u7b26\uff1b\u8981\u4ece\u901a\u9053\u63a5\u6536\u6570\u636e\uff0c\u4f7f\u7528 -&gt; \u8fd0\u7b97\u7b26\u3002\u5728\u51fd\u6570\u94fe\u4e2d\u4f7f\u7528\u7ba1\u9053\uff0c\u53ea\u9700\u5728\u51fd\u6570\u4e4b\u95f4\u4f20\u9012\u901a\u9053\uff0c\u5e76\u5c06\u901a\u9053\u4f5c\u4e3a\u51fd\u6570\u53c2\u6570\u3002\u7ba1\u9053\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u5927\u6570\u636e\u96c6\u6216\u5e76\u884c\u8ba1\u7b97\uff0c\u4f8b\u5982\uff0c\u4ee3\u7801\u7247\u6bb5\u4f7f\u7528\u7ba1\u9053\u5e76\u884c\u8ba1\u7b97\u7d20\u6570\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241027\/1730016706671df5c2f21f1.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>\u5728 GOLANG \u51fd\u6570\u94fe\u4e2d\u4f7f\u7528\u7ba1\u9053<\/strong><\/p>\n<p>\u7ba1\u9053\u662f\u4e00\u4e2a\u5e76\u53d1\u539f\u8bed\uff0c\u5141\u8bb8\u5728\u4e0d\u540c\u7684\u534f\u7a0b\u4e4b\u95f4\u5b89\u5168\u5730\u4f20\u9012\u6570\u636e\u3002\u5b83\u4eec\u5728\u51fd\u6570\u94fe\u4e2d\u7279\u522b\u6709\u7528\uff0c\u56e0\u4e3a\u5b83\u4eec\u53ef\u4ee5\u4f7f\u6570\u636e\u6d41\u5728\u4e0d\u540c\u7684\u51fd\u6570\u4e4b\u95f4\u9ad8\u6548\u5730\u79fb\u52a8\u3002<\/p>\n<p><strong>\u7ba1\u9053 basics<\/strong><\/p>\n<p>\u7ba1\u9053\u7531\u4e24\u4e2a\u90e8\u5206\u7ec4\u6210\uff1a\u4e00\u4e2a\u53d1\u9001\u7aef\u548c\u4e00\u4e2a\u63a5\u6536\u7aef\u3002\u6570\u636e\u901a\u8fc7 <code>chan<\/code> \u5173\u952e\u5b57\u521b\u5efa\u7684\u901a\u9053\u4f20\u9012\uff0c\u5b83\u6307\u5b9a\u901a\u9053\u7684\u6570\u636e\u7c7b\u578b\u3002<\/p>\n<pre>ch := make(chan int)<\/pre>\n<p>\u8981\u53d1\u9001\u6570\u636e\uff0c\u8bf7\u4f7f\u7528 <code>&lt;-<\/code> \u8fd0\u7b97\u7b26\uff1a<\/p>\n<pre>ch &lt;- 10 \/\/ \u53d1\u9001\u4e00\u4e2a\u6574\u6570\u5230\u901a\u9053<\/pre>\n<p>\u8981\u4ece\u901a\u9053\u63a5\u6536\u6570\u636e\uff0c\u8bf7\u4f7f\u7528 <code>-&gt;<\/code> \u8fd0\u7b97\u7b26\uff1a<\/p>\n<pre>result := &lt;-ch \/\/ \u4ece\u901a\u9053\u63a5\u6536\u4e00\u4e2a\u6574\u6570<\/pre>\n<p><strong>\u5728\u51fd\u6570\u94fe\u4e2d\u4f7f\u7528\u7ba1\u9053<\/strong><\/p>\n<p>\u5728\u51fd\u6570\u94fe\u4e2d\u4f7f\u7528\u7ba1\u9053\u975e\u5e38\u7b80\u5355\u3002\u53ea\u9700\u5728\u51fd\u6570\u4e4b\u95f4\u4f20\u9012\u901a\u9053\uff0c\u5e76\u5c06\u901a\u9053\u4f5c\u4e3a\u51fd\u6570\u53c2\u6570\u3002\u4f8b\u5982\uff1a<\/p>\n<pre>func increment(n int) int {\n  return n + 1\n}\n\nfunc double(n int) int {\n  return n * 2\n}\n\nfunc main() {\n  ch := make(chan int)\n\n  \/\/ \u5411\u901a\u9053\u53d1\u9001\u6570\u636e\n  go func() { ch &lt;- 2 }( )\n\n  \/\/ \u5728\u51fd\u6570\u94fe\u4e2d\u4f7f\u7528\u7ba1\u9053\n  result := double(increment( &lt;-ch ))\n\n  fmt.Println(result) \/\/ \u8f93\u51fa\uff1a6\n}<\/pre>\n<p>\u5728\u8fd9\u91cc\uff0c<code>ch<\/code> \u901a\u9053\u5728 <code>increment<\/code> \u548c <code>double<\/code> \u51fd\u6570\u4e4b\u95f4\u4f20\u9012\u3002<code>go func()<\/code> \u662f\u4e00\u4e2a\u533f\u540d\u51fd\u6570\uff0c\u5b83\u5c06\u6570\u636e\u53d1\u9001\u5230\u901a\u9053\uff0c\u7136\u540e\u7acb\u5373\u8fd4\u56de\u3002<\/p>\n<p><strong>\u5b9e\u6218\u6848\u4f8b<\/strong><\/p>\n<p>\u7ba1\u9053\u8fd8\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u5927\u6570\u636e\u96c6\u6216\u6267\u884c\u5e76\u884c\u8ba1\u7b97\u3002\u4f8b\u5982\uff0c\u4ee5\u4e0b\u4ee3\u7801\u7247\u6bb5\u4f7f\u7528\u7ba1\u9053\u5e76\u884c\u8ba1\u7b97\u7d20\u6570\uff1a<\/p>\n<pre>func isPrime(n int) bool {\n    for i := 2; i &lt;= int(math.Sqrt(float64(n))); i++ {\n        if n%i == 0 {\n            return false\n        }\n    }\n    return true\n}\n\nfunc main() {\n    numbers := make(chan int, 10) \/\/ \u901a\u9053\u5927\u5c0f\u4e3a 10\n    results := make(chan bool, 10) \/\/ \u901a\u9053\u5927\u5c0f\u4e3a 10\n\n    \/\/ \u751f\u4ea7\u8005\uff1a\u5411\u901a\u9053\u53d1\u9001\u6570\u5b57\n    go func() {\n        for i := 2; i &lt; 100000; i++ {\n            numbers &lt;- i\n        }\n        close(numbers) \/\/ \u5173\u95ed\u901a\u9053\uff0c\u8868\u793a\u6ca1\u6709\u66f4\u591a\u6570\u636e\u53d1\u9001\u4e86\n    }()\n\n    \/\/ \u6d88\u8d39\u8005\uff1a\u4ece\u901a\u9053\u63a5\u6536\u6570\u5b57\uff0c\u5e76\u68c0\u67e5\u5b83\u4eec\u662f\u5426\u4e3a\u7d20\u6570\n    for i := 0; i &lt; 10; i++ {\n        go func() {\n            for n := range numbers { \/\/ \u904d\u5386\u53d1\u9001\u5230\u901a\u9053\u7684\u6570\u636e\n                isPrime := isPrime(n)\n                results &lt;- isPrime\n            }\n        }()\n    }\n\n    \/\/ \u4ece\u7ed3\u679c\u901a\u9053\u63a5\u6536\u5e76\u6253\u5370\n    fmt.Println(\"\u7d20\u6570\uff1a\")\n    for i := 0; i &lt; 100000; i++ {\n        if &lt;-results {\n            fmt.Print(i, \" \")\n        }\n    }\n}<\/pre>\n<p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u751f\u4ea7\u8005\u534f\u7a0b\u5411 <code>numbers<\/code> \u901a\u9053\u53d1\u9001\u6570\u5b57\uff0c\u7136\u540e\u5173\u95ed\u901a\u9053\u3002\u6d88\u8d39\u8005\u534f\u7a0b\u4ece <code>numbers<\/code> \u901a\u9053\u63a5\u6536\u6570\u5b57\uff0c\u4f7f\u7528 <code>isPrime<\/code> \u51fd\u6570\u68c0\u67e5\u5b83\u4eec\u662f\u5426\u4e3a\u7d20\u6570\uff0c\u7136\u540e\u5c06\u7ed3\u679c\u53d1\u9001\u5230 <code>results<\/code> \u901a\u9053\u3002<\/p>\n<p>\u597d\u4e86\uff0c\u672c\u6587\u5230\u6b64\u7ed3\u675f\uff0c\u5e26\u5927\u5bb6\u4e86\u89e3\u4e86\u300aGOLANG \u51fd\u6570\u94fe\u4e2d\u5982\u4f55\u4f7f\u7528\u7ba1\u9053\uff1f\u300b\uff0c\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff01\u5173\u6ce8GOLANG\u516c\u4f17\u53f7\uff0c\u7ed9\u5927\u5bb6\u5206\u4eab\u66f4\u591aGOLANG\u77e5\u8bc6\uff01<\/p>\n<dl>\n<dt>\n <\/dt>\n<dd>\n   \u4f7f\u7528\u8bbe\u8ba1\u6a21\u5f0f\u63d0\u5347Java\u51fd\u6570\u7684\u53ef\u590d\u7528\u6027\uff1a\u5355\u4f8b\u6a21\u5f0f\n <\/dd>\n<\/dl>\n<dl>\n<dt>\n <\/dt>\n<dd>\n   gpu\u8dd1\u5206\u8f6f\u4ef6\u7535\u8111\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u5b66\u4e60 GOLANG\u8981\u52aa\u529b\uff0c\u4f46\u662f\u4e0d&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-205846","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/205846","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=205846"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/205846\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=205846"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=205846"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=205846"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}