{"id":359432,"date":"2021-02-13T14:32:18","date_gmt":"2021-02-13T06:32:18","guid":{"rendered":"http:\/\/4563.org\/?p=359432"},"modified":"2021-02-13T14:32:18","modified_gmt":"2021-02-13T06:32:18","slug":"python-%e8%b0%83%e7%94%a8-rust-%e6%8c%ba%e9%a6%99%e7%9a%84%ef%bc%8c%e5%90%91%e6%b2%a1%e7%94%a8%e8%bf%87%e7%9a%84%e6%9c%8b%e5%8f%8b%e4%bb%ac%e5%ae%89%e5%88%a9%e4%b8%80%e4%b8%8b","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=359432","title":{"rendered":"Python \u8c03\u7528 Rust \u633a\u9999\u7684\uff0c\u5411\u6ca1\u7528\u8fc7\u7684\u670b\u53cb\u4eec\u5b89\u5229\u4e00\u4e0b"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Python \u8c03\u7528 Rust \u633a\u9999\u7684\uff0c\u5411\u6ca1\u7528\u8fc7\u7684\u670b\u53cb\u4eec\u5b89\u5229\u4e00\u4e0b               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : LeeReamond <\/span>  <span><i><\/i> 9<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u7b80\u5355\u8bf4\u4e00\u4e0b\u5427\uff0cpython \u8bed\u8a00\u6548\u7387\u7684\u95ee\u9898\u4e5f\u662f\u8001\u751f\u5e38\u8c08\u4e86\uff0c\u6211\u4e5f\u662f v2 \u4e0a py \u793e\u533a\u7684\u8001\u9762\u5b54\u4e86<\/p>\n<p>rust \u8fd9\u95e8\u8bed\u8a00\u6211\u6ca1\u63a5\u89e6\u8fc7\uff0c\u6211\u5bf9\u4ed6\u7684\u5370\u8c61\u4e00\u76f4\u662f\u90a3\u79cd\u60f3\u8981\u5e72\u6389\u8001\u8bed\u8a00\u7684\u65b0\u8bed\u8a00\uff0c\u4f46\u662f\u751f\u6001\u4e0d\u884c\u6240\u4ee5\u6ca1\u620f\u3002\u5370\u8c61\u4e2d rust \u662f\u5bf9\u6807 c\/c++\uff0cscala \u5bf9\u6807 java\uff0cjulia \u5bf9\u6807 python\uff0c\u518d\u52a0\u4e00\u4e2a\u4e13\u95e8\u5199\u7f51\u7edc\u670d\u52a1\u7684 go\uff0c\u8fd9\u4f3c\u4e4e\u5c31\u662f\u65b0\u65f6\u4ee3\u7684\u6837\u8c8c\u4e86\u3002\u4f46\u662f\u5176\u5b9e\u8fd9\u56db\u95e8\u8bed\u8a00\u9664\u4e86 go \u4ee5\u5916\u90fd\u51e0\u4e4e\u6ca1\u63a5\u89e6\u8fc7\u3002<\/p>\n<p>\u76f4\u5230\u524d\u51e0\u5929\u8ddf\u670b\u53cb\u804a\u5929\uff0c\u5bf9\u65b9\u5076\u7136\u8bf4\u8d77 python \u8c03\u7528 rust \u53ef\u4ee5\u662f\u4e00\u79cd\u89e3\u51b3\u65b9\u6848\u3002\u6211\u6b63\u597d\u4e5f\u9762\u4e34\u8ba1\u7b97\u5bc6\u96c6\u4efb\u52a1\u7684\u56f0\u6270\uff0c\u5c31\u53bb\u641c\u4e86\u4e00\u4e0b\uff0c\u4e00\u641c\uff0c\u53d1\u73b0\u636e\u8bf4\u5f88\u9999\uff0c\u4e8e\u662f\u8bd5\u7528\u4e86\u4e00\u4e0b\uff0c\u53d1\u73b0\u771f\u7684\u5f88\u9999\uff0c\u4e00\u76f4\u9999\u5230\u7206\u70b8\u4e86\uff0c\u6211\u5c31\u6765 v2 \u53d1\u5e16\u4e86\u3002<\/p>\n<p>=================================<\/p>\n<p>\u5148\u8bf4\u4e00\u4e0b\u76f4\u89c2\u6548\u679c\uff0c\u56e2\u961f\u73b0\u5728\u5728\u505a\u6570\u636e\u7c7b\u670d\u52a1\uff0c\u6709\u5f88\u591a\u5bc6\u96c6\u8ba1\u7b97\u578b\u4efb\u52a1\uff0c\u5e76\u4e14\u4ee5\u540e\u53ef\u80fd\u8d8a\u52a0\u8d8a\u591a\u3002\u521a\u5f00\u59cb\u5199\u7684\u65f6\u5019\u80af\u5b9a\u662f python \u5b9e\u73b0\u7b97\u6cd5\uff0c\u4f46\u662f\u968f\u7740\u6570\u636e\u91cf\u589e\u591a\uff0c\u7b97\u6cd5\u53d8\u590d\u6742\uff0c\u5904\u7406\u65f6\u95f4\u6210\u51e0\u4f55\u500d\u6570\u589e\u52a0\uff0cpy \u5df2\u7ecf\u9876\u4e0d\u4f4f\u4e86\u3002\u6240\u4ee5\u6211\u4eec\u4e4b\u524d\u662f\u628a\u4e00\u4e9b\u6700\u96c6\u4e2d\u7684\u90e8\u5206\u5148\u7528 c++\u62bd\u51fa\u6765\u5199\u6210\u63d2\u4ef6\uff0c\u56e0\u4e3a\u6211\u548c\u53e6\u5916\u4e00\u4e2a\u670b\u53cb\u90fd\u80fd\u5199\u70b9\u7b80\u5355\u7684 c++\uff0c\u8fd9\u4e48\u6682\u65f6\u5148\u51d1\u5408\u7740\uff0c\u539f\u8ba1\u5212\u662f\u8981\u7528 cython \u628a\u7b97\u6cd5\u90e8\u5206\u5b8c\u5168\u91cd\u5199\u7684\u3002<\/p>\n<p>\u524d\u5929\u542c\u8bf4 rust \u80fd\u7528\uff0c\u5f53\u5929\u82b1\u4e86\u51e0\u4e2a\u5c0f\u65f6\u8fc7\u4e86\u4e00\u904d rust \u7684\u8bed\u6cd5\uff0c\u6628\u5929\u628a c++\u7684\u4e1c\u897f\u7528 rust \u5b8c\u5168\u91cd\u5199\u4e86\u4e00\u904d\uff0c\u5927\u6982\u4e00\u5343\u591a\u884c\uff0c\u4eca\u5929\u5df2\u7ecf\u4e0a\u6d4b\u8bd5\u670d\u52a1\u5668\u4e86\u3002\u5e76\u4e14\u7b80\u5355\u8dd1\u4e86\u4e00\u4e0b\u5206\uff0crust \u5d4c\u5165 python \u8868\u73b0\u975e\u5e38\u4f18\u79c0\u3002<\/p>\n<p>\u6211\u4eec\u91cd\u590d\u6267\u884c\u540c\u4e00\u4e2a\u8ba1\u7b97\u4efb\u52a1\uff0c\u539f\u4efb\u52a1\u7528 python \u5b9e\u73b0\u5927\u6982\u8017\u65f6\u5728\u4e00\u5206\u591a\u949f\uff0c\u5207\u6362\u5230 c++\u4e4b\u540e\u5927\u6982\u8017\u65f6\u5728 3100 \u6beb\u79d2\uff0c\u4eca\u5929\u6539\u5199\u6210 rust \u4e4b\u540e\uff0c\u5728\u5b9e\u73b0\u57fa\u672c\u4e0a\u5b8c\u5168\u76f8\u540c\u7684\u60c5\u51b5\u4e0b\uff0c\u5355\u6b21\u6267\u884c\u65f6\u95f4\u7f29\u77ed\u5230\u4e86 2300 \u6beb\u79d2\u5de6\u53f3\uff0c\u4ee4\u4eba\u5f88\u60ca\u559c\u3002<\/p>\n<p>\u800c\u4e4b\u540e\u591a\u7ebf\u7a0b\u538b\u529b\u6d4b\u8bd5\u4e2d\uff0c1600 \u6b21\u4efb\u52a1\uff0cc++\u7248\u672c\u8017\u65f6 720 \u79d2\uff0crust \u7248\u672c\u8017\u65f6 440 \u79d2\u3002\u8fd9\u4e2a\u5dee\u8ddd\u76f8\u5bf9\u4e8e\u5355\u6838\u8fdb\u4e00\u6b65\u62c9\u5927\uff0c\u4f3c\u4e4e\u6570\u636e\u4e2d\u8f6c\u548c\u7ebf\u7a0b\u8c03\u5ea6\u4e0a\uff0c\u76f8\u5bf9\u4e8e cython \u8fd8\u6709\u8fdb\u4e00\u6b65\u7684\u4f18\u52bf\u3002<\/p>\n<p>=================================<\/p>\n<p>\u6240\u4ee5\u6211\u5728\u8fd9\u91cc\u5411\u6240\u6709\u5728 python \u4efb\u52a1\u4e2d\u9047\u5230 cpu \u5bc6\u96c6\u578b\u4efb\u52a1\u74f6\u9888\u7684\u670b\u53cb\u4eec\u63a8\u8350 rust \u8fd9\u95e8\u8bed\u8a00\u548c\u5b83\u914d\u5957\u7684 python \u5d4c\u5165\u65b9\u6848\u3002\u76ee\u524d\u770b\u6765\u51e0\u5929\u7684\u4f7f\u7528\u91cc\uff0c\u5b83\u53ef\u80fd\u5e26\u6765\u7684\u95ee\u9898\u5e76\u4e0d\u591a\u3002\u6211\u4eec\u6d4b\u8bd5\u4e2d\u9047\u5230\u7684\u4e3a\u6570\u4e0d\u591a\u7684\u95ee\u9898\u662f\u4f3c\u4e4e\u5e95\u5c42\u8c03\u7528\u673a\u5236\u4e0e cython \u7684\u5d4c\u5165\u4e0d\u540c\u3002\u5355\u7eaf\u6d4b\u8bd5\u7a7a\u51fd\u6570\u8fd4\u56de\u65f6\u95f4\uff0c\u5982\u679c\u4f7f\u7528 cython \u7f16\u8bd1 python \u51fd\u6570\uff0c\u662f\u53ef\u4ee5\u52a0\u901f\u51fd\u6570\u8fd4\u56de\u7684\uff0c\u4f46\u4f7f\u7528 rust \u5d4c\u5165\u65b9\u6848\u7684\u8bdd\u5374\u4f1a\u8ba9\u8fd4\u56de\u65f6\u95f4\u51cf\u6162\u4e00\u500d\u5de6\u53f3\u3002\u6211\u4e2a\u4eba\u4e5f\u4e0d\u662f\u5f88\u4e86\u89e3\u89e3\u91ca\u5668\u8c03\u7528\u7684\u5b9e\u73b0\u7ec6\u8282\uff0c\u8fd9\u4e2a\u6682\u4e14\u4e0d\u8c08\u3002\u4e0d\u8fc7\u53ea\u8981\u4e0d\u505a\u7279\u522b\u7ec6\u7c92\u5ea6\u7684\u5d4c\u5165\uff0c\u8fd9\u5176\u5b9e\u4e5f\u4e0d\u4f1a\u9020\u6210\u4ec0\u4e48\u56f0\u6270\u3002<\/p>\n<p>\u800c\u4e0e\u95ee\u9898\u76f8\u5bf9\u7684\uff0c\u597d\u5904\u5c31\u5f88\u591a\u4e86\u3002<\/p>\n<p>rust \u7684\u597d\u5904\u5176\u4e00\u662f\u5b83\u7684\u6027\u80fd\u5f3a\uff0c\u4e0e\u539f\u751f C \u6bd4\u80a9\uff0c\u5e76\u4e14\u663e\u7136\u5728\u5b9e\u9645\u751f\u4ea7\u4e2d\u6bd4 c \u66f4\u5feb\u3002\u56e0\u4e3a\u4e00\u822c\u7528 c++\u4e5f\u5c31\u662f\u7528 stl \u4e2d\u7684\u5bb9\u5668\u548c\u7b97\u6cd5\u641e\u4e00\u641e\uff0c\u6211\u4e2a\u4eba\u6bd4\u8f83\u83dc\uff0c\u4e0d\u592a\u6709\u6c34\u5e73\u81ea\u5df1\u5b9e\u73b0\u3002\u5728\u8fd9\u79cd\u6761\u4ef6\u4e0b\uff0crust \u7684\u5185\u7f6e\u5b9e\u73b0\u7684\u51e0\u79cd\u6570\u636e\u7ed3\u6784\u548c\u7b97\u6cd5\uff0c\u662f\u6bd4 c++stl \u66f4\u5feb\u7684\uff0c\u8d77\u5230\u4e86\u5b9e\u9645\u4e0a\u6027\u80fd\u9886\u5148\u7684\u4f5c\u7528\u3002<\/p>\n<p>\u5176\u4e8c\u662f rust \u7684\u5b66\u4e60\u66f2\u7ebf\u975e\u5e38\u5e73\u6ed1\uff0c\u672c\u8eab\u901a\u8fc7\u9650\u5236\u8bed\u6cd5\u81ea\u7531\u5ea6\uff0c\u5728\u8bbe\u8ba1\u4e0a\u5c4f\u853d\u4e86 c++\u4e2d\u4e00\u4e9b\u8ba9\u4eba\u975e\u5e38\u5934\u79c3\u7684\u4e00\u4e9b\u7279\u6027\uff08\u91ce\u6307\u9488\u4e4b\u7c7b\u7684\uff09\uff0c\u52a0\u4e0a\u6709\u6bd4\u8f83\u5b8c\u5584\u7684\u5185\u5efa\u901a\u7528\u6570\u636e\u7ed3\u6784\uff0c\u5bfc\u81f4\u5982\u679c\u4f60\u53ea\u662f\u5355\u7eaf\u7684\u5b9e\u73b0\u7b97\u6cd5\u7684\u8bdd\uff0c\u5411\u6211\u4eec\u4e00\u6837\u7b80\u5355\u5b66\u4e60\u51e0\u5c0f\u65f6\u5c31\u76f4\u63a5\u53ef\u4ee5\u5de5\u4f5c\u4e86\u3002\u5e76\u4e14\u540c\u6837\u7531\u4e8e\u7f16\u8bd1\u5668\u8981\u6c42\u4e25\u683c\uff0c\u4f60\u5199\u51fa\u7684\u4ee3\u7801\u53ea\u8981\u80fd\u8fc7\u7f16\u8bd1\uff0c\u4e00\u822c\u8d28\u91cf\u90fd\u8fd8\u53ef\u4ee5\u3002<\/p>\n<p>\u7b2c\u4e09\u662f rust \u7684\u5de5\u7a0b\u5316\u5f88\u9999\u3002\u4e4b\u524d\u7528 cython \u65b9\u6848\uff0c\u5176\u5b9e\u6574\u4e2a\u76ee\u5f55\u7ed3\u6784\u5de5\u7a0b\u5316\u4e0d\u662f\u5f88\u597d\u505a\uff0c\u56e0\u4e3a cython \u8fd9\u95e8\u4ecb\u4e8e c \u548c py \u4e4b\u95f4\u7684\u8bed\u8a00\uff0c\u8bf4\u4e0d\u597d\u542c\u70b9\u662f\u56db\u4e0d\u50cf\uff0c\u5f88\u591a\u4f3c\u662f\u800c\u975e\u7684\u5751\u9700\u8981\u81ea\u5df1\u8e29\uff0c\u901a\u5e38\u662f c \u7684\u65b9\u6cd5\u4e5f\u4e0d\u884c\uff0cpy \u7684\u65b9\u6cd5\u4e5f\u4e0d\u884c\uff0c\u53ea\u80fd\u6309\u7167 cython \u72ec\u6709\u7684\u89c4\u77e9\u3002\u8fd9\u70b9\u5207\u6362\u5230 rust \u4e4b\u540e\u5c31\u4e0d\u6784\u6210\u70e6\u607c\uff0c\u56e0\u4e3a\u539f\u751f\u6a21\u5757\u5316\u65b9\u6848\u8fd8\u4e0d\u9519\uff0c\u5d4c\u5165 py \u65f6\u53ef\u4ee5\u975e\u5e38\u63a5\u8fd1 py \u5de5\u7a0b\u76ee\u5f55\u7684\u903b\u8f91\u7ed3\u6784\uff0c\u6574\u4e2a\u4ee3\u7801\u89e3\u8026\u975e\u5e38\u8212\u670d\u3002<\/p>\n<p>\u7b2c\u56db\u662f rust \u8fd9\u95e8\u8bed\u8a00\u63cf\u8ff0\u80fd\u529b\u6bd4\u8f83\u5f3a\uff0c\u6bd5\u7adf\u662f\u4e00\u95e8\u5341\u5e74\u5de6\u53f3\u7684\u65b0\u8bed\u8a00\uff0c\u5728\u7f16\u7a0b\u8bed\u8a00\u5927\u5bb6\u5ead\u4e2d\u7b97\u5b59\u5b50\u8f88\u7684\u4e86\u3002\u50cf\u6211\u4eec\u5e73\u5e38\u4f7f\u7528 python \u7684\u539f\u56e0\u4e4b\u4e00\u53ef\u80fd\u5c31\u662f\u56e0\u4e3a py \u7684\u63cf\u8ff0\u80fd\u529b\u5f3a\u5927\uff0c\u76f8\u6bd4\u4e4b\u4e0b\u5982\u679c\u7528\u7eaf c \u8bed\u8a00\u5199\u4e1c\u897f\u7684\u8bdd\u5c31\u4f1a\u611f\u89c9\u5728\u63cf\u8ff0\u80fd\u529b\u4e0a\u675f\u624b\u675f\u811a\u3002\u800c\u5207\u6362\u5230 rust \u5219\u4e0d\u4f1a\u6709\u660e\u663e\u7684\u4e0d\u9002\u611f\uff0c\u867d\u7136\u76f8\u5bf9\u4e8e\u52a8\u6001\u7684 python \u786e\u5b9e\u53d7\u5230\u4e86\u8bf8\u591a\u9650\u5236\uff0c\u4f46\u662f\u672c\u8eab\u8bed\u8a00\u4e5f\u5438\u6536\u4e86\u8fd9\u4e48\u591a\u5e74\u4f18\u79c0\u8bed\u8a00\u7684\u4f18\u79c0\u7279\u6027\uff0c\u4e5f\u52a0\u5165\u4e86\u5f88\u591a\u8bed\u6cd5\u7cd6\uff0c\u6bd4\u5982\u4e0b\u8ff0\u4ee3\u7801\u5b9e\u73b0\u7684\u903b\u8f91<\/p>\n<pre><code>fn main() {     let list = vec![1 , 2 , 3 , 4 , 5];     for i in 0..list.len() {      println!(\"num: {}\" , list[i])     } } <\/code><\/pre>\n<p>\u5373\u4f7f\u4f60\u4ece\u672a\u5b66\u4e60\u8fc7 rust \u7684\u4ee3\u7801\uff0c\u4f60\u4e5f\u4f1a\u53d1\u73b0\u57fa\u672c\u4e0a\u80fd\u770b\u61c2\uff0c\u5e76\u4e14\u8fd9\u79cd\u8bed\u8a00\u5728\u57fa\u7840\u4f7f\u7528\u573a\u666f\u7684\u63cf\u8ff0\u80fd\u529b\u5e76\u4e0d\u5f31\uff0c\u5df2\u7ecf\u5341\u5206\u63a5\u8fd1\u81ea\u7136\u8bed\u8a00\u903b\u8f91\u3002<\/p>\n<p>======================================<\/p>\n<p>\u603b\u4e4b\u80e1\u8a00\u4e71\u8bed\u5199\u4e86\u8fd9\u4e48\u591a\uff0c\u4e0e\u5927\u5bb6\u5206\u4eab\uff0c\u5df2\u7ecf\u5f88\u719f\u6089\u8fd9\u5957\u5de5\u5177\u94fe\u7684\u670b\u53cb\u8bf7\u52ff\u55b7\uff0c\u6211\u76f8\u4fe1\u8fd8\u6709\u5f88\u591a\u548c\u6211\u4e00\u6837\u4e0d\u4e86\u89e3\u7684\u670b\u53cb\uff0c\u6b22\u8fce\u63a2\u8ba8\uff0c\u6211\u4eec\u5171\u540c\u8fdb\u6b65\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>13<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5408212\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shoaly <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8d8a\u6765\u8d8a\u591a\u7684\u573a\u666f \u4f1a\u662f\u591a\u8bed\u8a00\u4e92\u76f8 \u534f\u540c, \u5229\u7528\u5404\u81ea\u4f18\u52bf\u5427&#8230;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5408213\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shoaly <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5bf9\u4e86 ,\u8001\u54e5\u6709\u6ca1\u6709\u6bd4\u8f83\u8fc7 rust \u548c go \u7684\u65f6\u95f4                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5408214\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jokaye <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             for i in 0..list.len() \u2014\u2014 \u54ce\u8fd9\u8bed\u6cd5\u7cd6\u4e00\u8a00\u96be\u5c3d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5408215\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : LeeReamond <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @shoaly \u6211\u4e0d\u4f1a\u7528 python \u8c03 go\uff0c\u6ca1\u7814\u7a76\u8fc7\u3002\u4e0d\u8fc7\u5355\u7eaf\u8bed\u8a00\u6027\u80fd\u7684\u8bdd\u4f60\u53ef\u4ee5\u5728\u7f51\u4e0a\u641c\u5230\u5176\u4ed6\u7684\u8dd1\u5206\u3002\u4e00\u822c\u6765\u8bf4\u540c\u6837\u903b\u8f91 rust \u80af\u5b9a\u6bd4 go \u5feb\uff0c\u53ef\u80fd\u5feb\u51e0\u5230\u51e0\u5341\u767e\u5206\u70b9\u8fd9\u6837\uff0c\u6ca1\u6709\u6570\u91cf\u7ea7\u5dee\u8ddd\u3002\u56e0\u4e3a go \u6709 gc \u800c rust \u6ca1\u6709\uff0c\u4f46\u662f rust \u9999\u5c31\u9999\u5728\u5b83\u6ca1\u6709 gc \u4e00\u6837\u505a\u5230\u4e86\u4f60\u5f00\u53d1\u65f6\u5019\u4e0d\u9700\u8981\u81ea\u5df1\u8003\u8651\u56de\u6536\u7684\u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5408216\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : LeeReamond <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @jokaye \u633a\u597d\u7684\u554a\uff0c\u4e0d\u77e5\u9053\u6709\u5565\u4e00\u8a00\u96be\u5c3d\u7684\uff0c\u6211\u5199\u4e86\u4e00\u5343\u884c rust \u4ee5\u540e\u611f\u89c9\u633a\u9999\u7684\u3002\u6bd5\u7adf for \u592a\u5e38\u7528\u4e86\uff0c\u50cf js \u90a3\u79cd\u8fdb\u5165 es6 \u4ee5\u540e for \u7684\u8bed\u6cd5\u5927\u5e45\u7b80\u5316\uff0c\u4f46\u8fd8\u662f\u8981\u6bd4\u8fd9\u79cd\u5199\u6cd5\u591a\u5199\u4e0d\u5c11\u5b57\u3002rust \u8fd9\u4e2a\u8bed\u6cd5\u7684\u4f18\u5316\u63a5\u8fd1 python \u4e86\uff0c\u4f60\u751a\u81f3\u4e0d\u9700\u8981\u8003\u8651 i \u4ece\u54ea\u6765\u7684\u95ee\u9898\uff0c\u5199\u7801\u7684\u65f6\u5019\u80fd\u4f53\u4f1a\u5230\u4e00\u79cd\u663e\u8457\u7684\u5bf9\u5fc3\u667a\u8d1f\u62c5\u7684\u964d\u4f4e                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5408217\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : itskingname <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @shoaly Python \u8c03\u7528 Golang \u53ef\u4ee5\u770b\u8fd9\u7bc7\u6587\u7ae0\uff1a https:\/\/mp.weixin.qq.com\/s\/H1Fe7BXdKIeEzIxjLxlYBg                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5408218\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Kilerd <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8981\u4e0d\u662f\u770b\u5230\u8fd9 for i in 0..list.len()\uff0c \u6211\u5dee\u70b9\u5c31\u4ee5\u4e3a\u4f60\u61c2 rust \u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5408219\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liprais <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u731c\u4f60\u7684 python \u7b97\u6cd5\u80af\u5b9a\u662f numpy \u548c\u539f\u751f\u7c7b\u578b\u6df7\u7528\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5408220\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzb0909 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5927\u5bb6\u6563\u4e86\u5427\u3002<br \/>\u5efa\u8bae\u4e3b\u62a5\u4e2a\u738b\u57a0\u7684\u73ed\uff0chttps:\/\/www.yinwang.org\/blog-cn\/2021\/02\/16\/cs-reading-course\uff0c\u4ece\u96f6\u5f00\u59cb\u5b66\u4e60\u8ba1\u7b97\u673a\uff0c\u554a\u54c8\u54c8\u4ed6\u7684\u8c03\u8c03\u4f60\u4f1a\u559c\u6b22\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5408221\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jirajine <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             rust \u5bf9\u6807 cpp\uff0c\u63d0\u4f9b\u96f6\u8fd0\u884c\u65f6\u5f00\u9500\u7684\u3001\u5c3d\u53ef\u80fd\u591a\u7684\u62bd\u8c61\u548c\u5404\u79cd\u7279\u6027\u3002<br \/>julia \u5bf9\u6807 c\uff0c\u4fdd\u6301\u7b80\u5355\u3001\u624b\u52a8\u5185\u5b58\u7ba1\u7406\u3001\u65e0\u5b8f\u3001\u65e0\u9690\u5f0f\u7684\u8c03\u7528\u548c\u5206\u914d\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5408222\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : v2exblog <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bdd\u8bf4 python \u600e\u4e48\u548c rust \u901a\u4fe1\u7684\u5440\uff0c\u53ef\u4ee5\u53d1\u4e2a\u94fe\u63a5\u5b66\u4e60\u5b66\u4e60\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5408223\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hsfzxjy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3b\u662f\u7528 pyo3 \u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5408224\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : LeeReamond <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hsfzxjy <br \/>@Jirajine pyo3 \u5f88\u597d\uff0cgh \u76f4\u63a5\u7528\u5c31\u662f\u4e86\u3002rust \u4e5f\u6709 c \u7f16\u8bd1\u7684\u65b9\u5f0f\u5728 py \u91cc\u7528 ctypes \u8c03\uff0c\u4f46\u662f\u8fd9\u7c7b\u901a\u4fe1\u6700\u96be\u89e3\u51b3\u7684\u662f\u7c7b\u578b\u8f6c\u6362\u95ee\u9898\uff0c\u6240\u4ee5\u8fd8\u662f\u6709\u8f6c\u6362\u7684\u7b2c\u4e09\u65b9\u9999                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Python \u8c03\u7528 Rust \u633a\u9999&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/359432"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=359432"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/359432\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=359432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=359432"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=359432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}