{"id":10293,"date":"2018-08-11T01:00:00","date_gmt":"2018-08-10T17:00:00","guid":{"rendered":"http:\/\/swarma.org\/?p=10293"},"modified":"2018-12-05T17:07:28","modified_gmt":"2018-12-05T09:07:28","slug":"julia%e8%af%ad%e8%a8%80%e6%9e%81%e7%ae%80%e5%85%a5%e9%97%a8%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/swarma.org\/?p=10293","title":{"rendered":"Julia\u8bed\u8a00\u6781\u7b80\u5165\u95e8\u6559\u7a0b"},"content":{"rendered":"<div class=\"bpp-post-content\">\n<blockquote>\n<p style=\"margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;color: rgb(178, 178, 178);\">\u672c\u6587\u8f6c\u81ea\u7f57\u79c0\u54f2\u77e5\u4e4e\u4e13\u680f\uff0c<span style=\";\">\u7ecf\u6388\u6743\u8f6c\u8f7d\u3002<\/span><\/span><\/p>\n<p><span style=\"font-size: 15px;color: rgb(178, 178, 178);\">\u539f\u6587\uff1a<\/span><\/p>\n<p><span style=\"font-size: 15px;color: rgb(178, 178, 178);\">https:\/\/www.zhihu.com\/people\/luo-xiu-zhe\/activities<\/span><\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><img class=\"\"      style=\"\" src=\"http:\/\/swarma.org\/wp-content\/uploads\/2018\/08\/swarma8-1534399164.jpg\" alt=\"\u96c6\u667aAI\u5b66\u56ed\" title=\"\u96c6\u667aAI\u5b66\u56ed\"  \/><\/p>\n<p style=\"margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;\"><\/span><br  \/><\/p>\n<p style=\"margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6ca1\u6709\u94f6\u5f39\uff0cJulia\u7684\u7279\u6027\u66f4\u591a\u4e0d\u4f1a\u6709Python\u597d\u5b66\u3002\u4f46\u662f\u4e0d\u7528\u62c5\u5fc3\uff0c\u4e0a\u624b\u662f\u975e\u5e38\u5bb9\u6613\u7684\u3002\u4e4b\u524d\u56e0\u4e3a\u51c6\u5907\u7528\u6237\u89c1\u9762\u4f1a\uff08Julia User Meet Up\uff09\u51c6\u5907\u4e86\u4e00\u4e2a\u6559\u7a0b\uff0c\u8fd9\u4e2a\u6559\u7a0b\u5f88\u5927\u4e00\u90e8\u5206\u6765\u81ea\u4e8e\uff1a<\/span><\/p>\n<blockquote>\n<p style=\"margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">https:\/\/github.com\/Roger-luo\/TutorialZH.jl<\/span><\/p>\n<\/blockquote>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4f46\u662f\u56e0\u4e3a\u4e0d\u662f\u6240\u6709\u7684\u4f9d\u8d56\u90fd\u652f\u6301\u4e861.0\uff0c\u6240\u4ee5\u8fd9\u4e2a\u6559\u7a0b\u4f1a\u5728\u4e0b\u6708\u66f4\u65b0\u4e00\u6b21\u3002\u8fd9\u91cc\u4ec5\u4ec5\u662f\u4ecb\u7ecd\u4e00\u4e9b\u57fa\u672c\u8bed\u6cd5\uff0c\u5e2e\u52a9\u5927\u5bb6\u5feb\u901f\u4e0a\u624b\u3002\u8fd9\u4e2a\u6559\u7a0b\u4ee5\u53ca\u96c6\u667a\u4ff1\u4e50\u90e8\u7684\u89c6\u9891\uff1a<\/span><\/p>\n<blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">https:\/\/www.bilibili.com\/video\/av28248187\/<\/span><\/p>\n<\/blockquote>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u90fd\u53ef\u4ee5<span style=\"font-size: 15px;font-weight: 600;\">\u4efb\u610f\u8f6c\u8f7d\u548c\u4fee\u6539<\/span>\u3002\u5e0c\u671b\u6ce8\u660e\u51fa\u5904\uff0c\u4e5f\u5e0c\u671b\u53ef\u4ee5\u5e2e\u5fd9\u5ba3\u4f20\u4e00\u4e0b\u4e2d\u6587\u793e\u533a\uff08\u5f53\u7136\u8fd9\u4e5f\u5e76\u4e0d\u662f\u5f3a\u5236\u7684\uff09\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"color: rgb(236, 137, 33);font-size: 16px;\"><strong>\u4e00\u4e9b\u8d44\u6599<\/strong><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u77e5\u4e4e\u4e0a\u7684\u8bddJulia\u6709\u5f88\u591a\u4e13\u680f\uff0c\u8fd9\u4e2a\u4e13\u680f\u66f4\u65b0\u7684\u6bd4\u8f83\u52e4\u53ef\u4ee5\u770b\u770b\uff0c\u4e5f\u6b22\u8fce\u5927\u5bb6\u7ed9\u8fd9\u4e2a\u4e13\u680f\u6295\u7a3f\uff1a<\/span><\/p>\n<blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">https:\/\/zhuanlan.zhihu.com\/julia<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7136\u540e\u4e66\u7684\u8bdd\uff0c\u6211\u6709\u610f\u613f\u4e4b\u540e\u7b49\u4e2d\u6587\u793e\u533a\u4eba\u591a\u4e00\u4e9b\u7ec4\u7ec7\u4e00\u4e2a\u5f00\u6e90\u56fe\u4e66\u7684\u9879\u76ee\uff0c\u4f46\u662f\u8fd9\u4e2a\u53ef\u80fd\u6700\u8fd1\u8fd8\u5b9e\u73b0\u4e0d\u4e86\uff0c\u4e00\u4e2a\u662f\u6211\u7cbe\u529b\u6709\u9650\uff0c\u7b2c\u4e8c\u662f\u4eba\u624b\u4e0d\u8db3\u3002\u6211\u81ea\u5df1\u7684\u4e13\u680fHalf Integer\u662f\u5f53blog\u7528\u7684\uff0c\u56e0\u4e3a\u6211\u4e5f\u4f7f\u7528\u5f88\u591a\u522b\u7684\u8bed\u8a00\u548c\u6280\u672f\uff0c\u4e0d\u4f1a\u5355\u72ec\u5206\u4eabJulia\u7684\u5185\u5bb9\uff0c\u6b64\u5916\u6211\u4e5f\u66f4\u503e\u5411\u4e8e\u5199\u4e00\u4e9b\u66f4\u5e72\u7684\u4e1c\u897f\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7136\u540e\u5982\u679c\u4f60\u82f1\u6587\u53ef\u4ee5\u7684\u8bdd\uff0c\u6709\u5f88\u591a\u5f88\u68d2\u7684\u82f1\u6587\u8d44\u6599\u8fd8\u6709\u8bfe\u7a0b\uff0c\u6211\u63a8\u8350\u4f60\u5230\u8fd9\u91cc\u770b\u770b\uff1a<\/span><\/p>\n<blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">https:\/\/julialang.org\/learning\/<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);text-align: left;line-height: 1.75em;\"><span style=\"font-size: 15px;\"><strong mpa-from-tpl=\"t\" style=\"color: rgb(236, 137, 33);font-size: 14px;text-align: center;white-space: normal;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/strong><\/span><\/strong><\/span><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);text-align: left;line-height: 1.75em;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"color: rgb(236, 137, 33);font-size: 14px;text-align: center;white-space: normal;max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><br  \/><\/span><\/strong><\/strong><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);text-align: left;line-height: 1.75em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"color: rgb(236, 137, 33);font-size: 16px;\"><strong>\u6709\u95ee\u9898\u53bb\u54ea\u91cc\u95ee<\/strong><\/span><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);text-align: left;line-height: 1.75em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"color: rgb(236, 137, 33);font-size: 16px;\"><strong><br  \/><\/strong><\/span><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);text-align: left;line-height: 1.75em;box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"font-size: 15px;\">\u6211\u9996\u5148\u63a8\u8350\u7684\u662f\u4e2d\u6587\u548c\u82f1\u6587\u7684discourse\u8bba\u575b\uff0c\u5b83\u4eec\u7684\u94fe\u63a5\u4e5f\u90fd\u53ef\u4ee5\u5728\u5b98\u7f51\u627e\u5230\uff0c\u5730\u5740\u5206\u522b\u5982\u4e0b\uff1a<\/span><\/p>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e2d\u6587\u8bba\u575b\uff1a<\/span><\/p>\n<blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">https:\/\/discourse.juliacn.com\/<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u82f1\u6587\u8bba\u575b\uff08\u8fd9\u4e2a\u4eba\u6bd4\u8f83\u591a\uff09\uff1a<\/span><\/p>\n<blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">https:\/\/discourse.julialang.org\/<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7136\u540e\u4f60\u53ef\u4ee5\u52a0Julia\u7684\u5176\u4ed6\u793e\u533a\uff1a<\/span><br  \/><\/p>\n<blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">https:\/\/julialang.org\/community\/<\/span><\/p>\n<\/blockquote>\n<p style=\"line-height: 1.75em;\"><span style=\"background-color: rgb(255, 255, 255);color: rgb(26, 26, 26);\">\u4e5f\u751a\u81f3\u53ef\u4ee5\u76f4\u63a5\u53bbGitHub\u63d0\u4ea4issue\uff0c\u6574\u4e2aJulia\u8bed\u8a00\u7684\u5f00\u53d1\u90fd\u662f\u5728GitHub\u4e0a\u7684\uff1a<\/span><br  \/><\/p>\n<blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">https:\/\/github.com\/julialang\/julia\/issues<\/span><\/p>\n<\/blockquote>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;background-color: rgb(255, 255, 255);color: rgb(26, 26, 26);\"><br  \/><\/span><\/p>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;background-color: rgb(255, 255, 255);color: rgb(26, 26, 26);\">\u7136\u540e\u4f60\u4e5f\u53ef\u4ee5\u5728\u77e5\u4e4e\u4e0a\u63d0\u95ee\uff0c\u77e5\u4e4e\u4e0a\u4e5f\u6709\u5f88\u591aJulia\u7684\u6df1\u5ea6\u7528\u6237\uff08\u867d\u7136\u8fd8\u5f88\u5c11\uff09\u3002<\/span><\/p>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;background-color: rgb(255, 255, 255);color: rgb(26, 26, 26);\"><br  \/><\/span><\/p>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;background-color: rgb(255, 255, 255);color: rgb(26, 26, 26);\">\u6700\u540e\u4f60\u4e5f\u53ef\u4ee5\u52a0\u6211\u4eec\u4e2d\u6587\u793e\u533a\u7684QQ\u7fa4\uff0c\u4f46\u662f\u8fd9\u662f\u6700\u4e0d\u63a8\u8350\u7684\uff0c\u56e0\u4e3aQQ\u6ca1\u6709\u4ee3\u7801\u9ad8\u4eae\uff0c\u4e5f\u4e0d\u80fd\u50cfslack\u4e00\u6837\u652f\u6301\u5404\u79cd\u65b9\u4fbf\u6280\u672f\u8ba8\u8bba\u7684\u7279\u6027\u3002\u4e00\u822cQQ\u4e3b\u8981\u7528\u4e8e\u8ba8\u8bba\u6587\u6863\u7ffb\u8bd1\u5de5\u4f5c\u7684\u4e00\u4e9b\u95ee\u9898\u548c\u793e\u533a\u5efa\u8bbe\u3002\u5bf9\u4e8e\u6bd4\u8f83\u7d27\u6025\u7684\u95ee\u9898\u5e0c\u671b\u4f60\u53ef\u4ee5\u5728discourse\uff08\u4e2d\u82f1\u6587\u7686\u53ef\uff09\u4e0a\u53d1\u4e86\u5e16\u5b50\u4e4b\u540e\u628a\u94fe\u63a5\u53d1\u5230QQ\u7fa4\u91cc\u6765\u3002<\/span><\/p>\n<p style=\"max-width: 100%;min-height: 1em;color: rgb(51, 51, 51);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"color: rgb(236, 137, 33);\"><strong><span style=\"font-size: 16px;\">\u4e2d\u6587\u8bba\u575b\u7684\u8bbf\u95ee\u95ee\u9898<\/span><\/strong><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e2d\u6587\u8bba\u575b\u76ee\u524d\u7531\u4e8e\u57df\u540d\u5907\u6848\u8fd8\u6ca1\u6709\u5b8c\u6210\uff08\u5c06\u4f1a\u6682\u65f6\u6302\u9760\u5728\u96c6\u667a\u4ff1\u4e50\u90e8\u540d\u4e0b\uff09\u4e5f\u8fd8\u6ca1\u6709\u914d\u7f6eCDN\uff0c\u5c06\u4f1a\u4ece\u9999\u6e2f\u8df3\u8f6c\uff0c\u53ef\u80fd\u7b2c\u4e00\u6b21\u8bbf\u95ee\u901f\u5ea6\u8f83\u6162\uff0c\u4e4b\u540e\u5c31\u597d\u4e86\uff0c\u8fd9\u662f\u6b63\u5e38\u7684\u6211\u4eec\u4e5f\u5728\u6162\u6162\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/span><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u5b98\u65b9\u56e2\u961f\u4e5f\u5728\u5bfb\u627e\u600e\u4e48\u52a0\u901f\u56fd\u5185\u8bbf\u95ee\u5b98\u7f51&nbsp;julialang.org&nbsp;\u7684\u95ee\u9898\uff0c\u6211\u4eec\u65e5\u540e\u4e5f\u4f1a\u8003\u8651\u76f4\u63a5\u4f7f\u7528julialang.org&nbsp;\u3002\u5305\u62ec\u5728\u5883\u5185\u7ef4\u62a4\u955c\u50cf\u4e0b\u8f7d\u7b49\u3002\u4f46\u662f\u56e0\u4e3a\u76ee\u524d\u771f\u7684\u975e\u5e38\u7f3a\u4e4f\u4eba\u624b\uff0c\u4e5f\u5e0c\u671b\u5927\u5bb6\u53ef\u4ee5\u53c2\u4e0e\u5230\u793e\u533a\u5efa\u8bbe\u91cc\u6765\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"color: rgb(236, 137, 33);\"><strong><span style=\"font-size: 16px;\">\u5173\u4e8e\u4e2d\u6587\u793e\u533a<\/span><\/strong><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e2d\u6587\u793e\u533a\u662f\u53d7\u5230Julia\u5f00\u53d1\u56e2\u961f\u652f\u6301\u7684\u4f17\u591a\u672c\u5730\u5316\u7ec4\u7ec7\u4e4b\u4e00\uff0c\u975e\u76c8\u5229\u662f\u57fa\u672c\u51c6\u5219\u3002\u503c\u5f97\u81ea\u8c6a\u7684\u662f\uff0c\u5728Julia\u53ea\u67090.3\u7684\u65f6\u5019\u572824\u4e2a\u8d21\u732e\u8005\u7684\u52aa\u529b\u4e0b\uff0c\u5c31\u6709\u4e860.3\u7684\u4e2d\u6587\u6587\u6863\u30021.0\u7684\u4e2d\u6587\u6587\u6863\u4e5f\u6b63\u5728\u8fdb\u884c\u4e2d\uff0c\u6211\u4eec\u4e5f\u5229\u7528Julia\u7684\u6587\u6863\u7cfb\u7edf\u5c1d\u8bd5\u652f\u6301doc string\u3002\u65e9\u671f\u7684\u6210\u5458\u91cc\u6709Jiahao Chen\uff0cYichao Yu\uff0ci2300\u7b49Julia\u56e2\u961f\u7684\u6210\u5458\u3002<\/span><br  \/><\/p>\n<blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">GitHub\u5730\u5740\uff1aJuliaCN<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7f51\u5740\uff1a<\/span>http:\/\/juliacn.com\/<\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8bba\u575b\u5730\u5740\uff1ahttp:\/\/discourse.juliacn.com\/<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">JuliaCN\u76ee\u524d\u6682\u65f6\u4e0d\u63a5\u53d7\u4efb\u4f55\u4e2a\u4eba\u6350\u8d60\uff08\u56e0\u4e3a\u8fd9\u53ef\u80fd\u5e76\u4e0d\u5408\u6cd5\uff09\uff0c\u4f46\u662f\u5982\u679c\u4f60\u613f\u610f\u8d44\u52a9Julia\u8bed\u8a00\u7684\u53d1\u5c55\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b98\u7f51\u7684\u6350\u8d60\u6309\u94ae\u8fdb\u884c\u6350\u8d60\u5b98\u7f51\u7684\u5730\u5740\u5728\u8fd9\u91cc\uff0c\u4f46\u662f\u4e5f\u5e0c\u671b<span style=\"font-size: 15px;font-weight: 600;\">\u5bf9Julia\u8bed\u8a00\u611f\u5174\u8da3\u7684\u516c\u53f8\u548c\u673a\u6784\u80fd\u591f\u5e2e\u52a9\u8fd9\u6837\u4e00\u4e2a\u771f\u6b63\u5f00\u6e90\u7684\uff0c\u7531\u793e\u533a\u6210\u5458\u81ea\u53d1\u7ec4\u7ec7\u8d77\u6765\u7684\u7ec4\u7ec7\u6210\u957f\u8d77\u6765\uff0c\u867d\u7136\u53d1\u8d77\u4eba\u5df2\u7ecf\u4e0d\u77e5\u9053\u662f\u8c01\u4e86\uff08\u5e76\u4e0d\u662f\u6211\uff09\uff0c\u4f46\u662f\u76ee\u524d\u5177\u4f53\u5408\u4f5c\u4e8b\u5b9c\u90fd\u53ef\u4ee5\u8054\u7cfb\u6211<\/span>\u3002\u4e5f\u975e\u5e38\u5e0c\u671b\u6709\u66f4\u591a\u7684\u673a\u6784\u53ef\u4ee5\u8d5e\u52a9\u6211\u4eec\u7684\uff08\u751a\u81f3\u662f\u63a5\u4e0b\u6765\u7684\uff09\u6d3b\u52a8\u548c\u670d\u52a1\u5668\u7b49\u5f00\u652f\u3002\u5982\u679c\u6709Julia\u7684\u62db\u8058\u5c97\u4f4d\u4e5f\u6b22\u8fce\u6765\u793e\u533a\u505a\u5e7f\u544a\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><strong style=\"font-size: 16px;\"><span style=\"color: rgb(236, 137, 33);\"><br  \/><\/span><\/strong><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><strong style=\"font-size: 16px;\"><span style=\"color: rgb(236, 137, 33);\">\u5199\u5728\u524d\u9762<\/span><\/strong><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u4e24\u5929\u7684\u5a92\u4f53\u62a5\u9053\u53ef\u80fd\u8ba9\u4e00\u4e9b\u4eba\u6709\u4e86\u6050\u614c\uff0c\u4f46\u662f\u6211\u73b0\u5728\u6709\u4e00\u4e2a\u8bda\u6073\u7684\u5efa\u8bae\u5c31\u662f\u5982\u679c\u4f60\u5b8c\u5168\u6ca1\u6709\u7f16\u7a0b\u57fa\u7840\uff0c\u65f6\u95f4\u4e5f\u4e0d\u591a\u7684\u8bdd\uff08\u65f6\u95f4\u591a\u4e86\u4e0d\u662f\u60f3\u5b66\u5565\u5b66\u5565\uff09\uff0c\u6211\u5efa\u8bae\u4f60\u5148\u5b66\u4e00\u4e0bPython\uff0c\u8fd9\u5e76\u4e0d\u51b2\u7a81\uff0c\u56e0\u4e3aJulia\u7684\u8bed\u6cd5\u672c\u4e66\u548cPython\u5f88\u50cf\uff0c1.0\u4e4b\u540e\u4e5f\u4e13\u95e8\u589e\u52a0\u4e86\u4e00\u4e9bfeature\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u4ecePython\u8f6c\u5411Julia\u3002\u6b64\u5916\u56e0\u4e3aJulia\u521a\u521a\u6709\u4e86\u7b2c\u4e00\u4e2a\u957f\u671f\u652f\u6301\u7248\u672c\uff0c\u8fd9\u8fd8\u4e0d\u610f\u5473\u7740\u8fd9\u4e2a\u8bed\u8a00\u5df2\u7ecf<span style=\"font-size: 15px;font-weight: 600;\">\u5b8c\u5168\u6210\u719f<\/span>\uff0c\u6211\u60f3\u6b64\u65f6\u7684Julia\u66f4\u50cf\u662f\u5f7c\u65f6\u7684Python 2.0\uff0c\u8fd8\u6709\u5f88\u957f\u4e00\u6bb5\u8def\u8981\u8d70\uff0c\u4f46\u662f\u5df2\u7ecf\u975e\u5e38\u7684\u6709\u524d\u666f\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u90a3\u4e48\u4ec0\u4e48\u4eba\u6211\u4f1a\u5efa\u8bae\u5b66\u4e60Julia\u5462\uff1f\u6216\u8005Julia\u5728\u4ec0\u4e48\u573a\u666f\u4e0b\u4e5f\u8bb8\u80fd\u591f\u6709\u4f18\u52bf\u5462\uff1f\u6211\u4e2a\u4eba\u7684\u4f53\u9a8c\u662f\u4ee5\u4e0b\u8fd9\u91cc\u4e00\u7c7b\uff1a<\/span><\/p>\n<ul style=\"\" class=\"list-paddingleft-2\">\n<li>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e4b\u524d\u4f7f\u7528Python\u4f46\u662f\u56e0\u4e3a\u6027\u80fd\u95ee\u9898\uff0c\u7ecf\u5e38\u9700\u8981\u4f7f\u7528numba\/Cython\/C API\/ctypes\/etc.\u7b49\u65b9\u5f0f\u8fdb\u884c\u4f18\u5316\u7684\u4eba\u3002Julia\u6216\u8bb8\u80fd\u591f\u5e2e\u52a9\u4f60\u89e3\u51b3\u4e24\u8bed\u8a00\u95ee\u9898\uff0c\u5e76\u4e14\u83b7\u5f97\u53ef\u8bfb\u6027\u66f4\u597d\uff0c\u66f4\u5bb9\u6613\u7ef4\u62a4\u7684\u4ee3\u7801\u3002<\/span><\/p>\n<\/li>\n<li>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e4b\u524d\u4f7f\u7528MATLAB\uff0c\u4f46\u662f\u88ab\u4e00\u4e9b\u4ed8\u8d39\u529f\u80fd\u56f0\u6270\u7684\u7528\u6237\uff08MATLAB 2018\u4e5f\u662f\u4e0d\u9519\u7684\uff0c\u4f46\u662f\u8981\u652f\u6301\u6b63\u7248\u54c8\uff09<\/span><\/p>\n<\/li>\n<li>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e4b\u524d\u4f7f\u7528Fortran\u548cR\u7684\u7528\u6237\uff0c\u5f3a\u70c8\u5efa\u8bae\u4f7f\u7528Julia\uff08\u53ef\u4ee5\u7ed3\u5408\u7740\u7528\u4e5f\uff0cFFI\u662f\u5f88\u4e0d\u9519\u7684\uff09<\/span><\/p>\n<\/li>\n<li>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e4b\u524d\u4f7f\u7528Sage\/Octave\u7684\u7528\u6237\uff0c\u4e0d\u59a8\u5c1d\u8bd5\u4e00\u4e0b\u8fd9\u4e2a\u65b0\u73a9\u610f\u513f<\/span><\/p>\n<\/li>\n<li>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e4b\u524d\u4f7f\u7528Mathematica\u4f46\u662f\u60f3\u5f00\u59cb\u505a\u4e00\u4e9b\u6570\u503c\u7684\u7528\u6237\uff0cMathematica\u4e0d\u662f\u4e0d\u80fd\u505a\u6570\u503c\uff0c\u4e5f\u53ef\u4ee5\u8c03\u7528C\/C++\u4f46\u662fJulia\u4e0d\u59a8\u662f\u76f8\u6bd4\u5176\u5b83\u5de5\u5177\u66f4\u5e73\u6ed1\u7684\u9009\u62e9\u3002<\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5982\u679c\u4f60\u4e4b\u524d\u7684\u5de5\u4f5c\u4ec5\u4ec5\u4f7f\u7528Python\u5c31\u8db3\u4ee5\u80dc\u4efb\uff0c<span style=\"font-size: 15px;font-weight: 600;\">\u90a3\u4e48\u4e0d\u5fc5\u7740\u6025\uff0c\u4e5f\u4e0d\u5fc5\u6050\u614c<\/span>\uff0c\u4e0d\u59a8\u5728\u611f\u5174\u8da3\u7684\u65f6\u5019\u8bd5\u8bd5\u8fd9\u4e2a\u65b0\u4e1c\u897f\uff0c\u4f46\u662f\u4e5f\u5b8c\u5168\u53ef\u4ee5\u7b49\u5230Julia\u88ab\u5927\u89c4\u6a21\u4f7f\u7528\u7684\u65f6\u5019\u518d\u8ddf\u8fdb\u3002\u5b9e\u9645\u4e0a\u4ece\u4e00\u5f00\u59cb\u50cfMXNet\u8fd9\u6837\u7684\u6df1\u5ea6\u5b66\u4e60\u6846\u67b6\u5c31\u5b98\u65b9\u652f\u6301\u4e86\uff0c\u8fd9\u4e9b\u6846\u67b6\u7684Python\u7528\u6237\u8f6c\u79fb\u8fc7\u6765\u4e5f\u5e76\u4e0d\u662f\u4ec0\u4e48\u96be\u4e8b\uff0c\u4f46\u662f\u5982\u679c\u4f60\u65e0\u987b\u9ad8\u5ea6\u5b9a\u5236\u81ea\u5df1\u7684\u7a0b\u5e8f\uff0c\u90a3\u4e48\u5176\u5b9e\u4e0d\u4f1a\u4f53\u4f1a\u5230\u4ec0\u4e48\u4e0d\u540c\u548c\u4f18\u52bf\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6b64\u5916\uff0c\u4e5f\u8981\u518d\u4e09\u58f0\u660e\uff0c\u867d\u7136Julia\u53ef\u4ee5\u5199\u51fa\u9ad8\u6027\u80fd\u7684\u4ee3\u7801\uff0c\u4f46\u662f\u5199\u51fa\u9ad8\u6027\u80fd\u7684\u4ee3\u7801\u8fd9\u4ef6\u4e8b\u60c5\u672c\u8eab\u5c31\u5f88\u56f0\u96be\u3002\u867d\u7136\u5199\u8d77\u6765\u50cfPython\uff0c\u8fd0\u884c\u901f\u5ea6\u50cfC\u662f\u6211\u4eec\u7684\u68a6\u60f3\uff0c\u4f46\u662f\u5728\u73b0\u5728\u8fd9\u4e2a\u9636\u6bb5\uff0c<\/span><span style=\"font-size: 15px;font-weight: 600;\">\u5e76\u4e0d\u662f\u968f\u4fbf\u5199\u4e00\u6bb5Julia\u4ee3\u7801\u5c31\u771f\u7684\u80fd\u8fbe\u5230C\u7684\u3002Julia\u53ea\u662f\u7ed9\u4f60\u63d0\u4f9b\u4e86\u5145\u5206\u4f18\u5316\u7684\u7a7a\u95f4\uff0c\u548c\uff08\u8fbe\u5230\u9ad8\u6027\u80fd\u4ee3\u7801\u7684\uff09\u76f8\u5bf9\u5bb9\u6613\u7684\u7f16\u7a0b\u4f53\u9a8c\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;font-weight: 600;\"><br  \/><\/span><\/p>\n<section class=\"\"    style=\"max-width: 100%;color: rgb(51, 51, 51);\">\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">1.\u4e0b\u8f7d\u548c\u5b89\u88c5Julia<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;color: rgb(51, 51, 51);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u76ee\u524d\u56e0\u4e3a\u5b98\u7f51\u7684\u670d\u52a1\u5668\u53ea\u6709AWS s3\uff08\u4ed6\u4eec\u4e5f\u5f88\u7a77\uff09\u3002\u6240\u4ee5\u56fd\u5185\u7684\u4e00\u4e9b\u5730\u533a\u4e0b\u8f7d\u901f\u5ea6\u5f88\u6162\uff1a<\/span><br  \/><\/p>\n<blockquote>\n<p style=\"line-height: 1.75em;\">https:\/\/julialang.org\/downloads\/<\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5927\u5bb6\u53ef\u4ee5\u8bd5\u4e00\u8bd5\uff0c\u7136\u540e\u4e5f\u53ef\u4ee5\u53bbJulia Computing\u516c\u53f8\u63d0\u4f9b\u7684Julia\u5168\u5bb6\u6876\uff08\u4f60\u53ef\u4ee5\u628a\u5b83\u7406\u89e3\u4e3aJulia\u7248\u672c\u7684Anaconda\uff09\uff0c\u6700\u5de6\u8fb9\u7684JuliaPro\u662f\u514d\u8d39\u7684\uff1a<\/span><\/p>\n<blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">https:\/\/juliacomputing.com\/<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e4b\u524d\u6d59\u5927\u7684LUG\u642d\u5efa\u4e86\u4e00\u4e2a\u955c\u50cf\uff0c\u4f46\u662f\u7ef4\u62a4\u7684\u540c\u5b66\u6700\u8fd1\u6709\u4e00\u4e9b\u5fd9\uff0c\u6240\u4ee5\u76ee\u524d\u8fd8\u6ca1\u6709\u66f4\u65b0\u52301.0\u3002\u4f46\u662f\u5176\u5b9e\u4f60\u5982\u679c\u65e0\u6cd5\u4ece\u4ee5\u4e0a\u9014\u5f84\u4e0b\u8f7d\uff0c\u90a3\u4e48\u4ece\u5883\u5185\u7684\u6e90\u91cc\u4e0b\u8f7dJulia 0.6\u4e5f\u5176\u5b9e\u5e76\u4e0d\u5f71\u54cd\u4f60\u5148\u719f\u6089\u4e00\u4e9b\u57fa\u672c\u8bed\u6cd5\uff08\u8fd9\u662f\u8fd9\u4e2a\u6559\u7a0b\u7684\u4e3b\u8981\u76ee\u7684\uff09\uff0c\u5883\u5185\u7684\u6e90\u7684\u4e0b\u8f7d\u5730\u5740\u5728\u8fd9\u91cc\uff1a<\/span><\/p>\n<blockquote>\n<p style=\"line-height: 1.75em;\">http:\/\/juliacn.com\/downloads\/<\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6211\u4eec\u4e5f\u4f1a\u5c3d\u5feb\u66f4\u65b0\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7136\u540e\u8fd8\u6709\u4e00\u4e2a\u53eb\u505aJulia Box\u7684\u4e91\u670d\u52a1\u5f88\u65b9\u4fbf\u53ef\u4ee5\u4f7f\u7528\uff0c\u91cc\u9762\u6709\u5f88\u591a\u6559\u7a0b\uff0c\u90fd\u662fjupyter notebook\uff0c\u6253\u5f00\u5373\u7528\uff0c\u5168\u90e8\u90fd\u662f\u5728\u7ebf\u7684\u4e0d\u7528\u5b89\u88c5\u3002\u4f46\u662f\u552f\u4e00\u7684\u7f3a\u70b9\u5c31\u662f\u56fd\u5185\u53ef\u80fd\u4e0d\u4e00\u5b9a\u80fd\u591f\u6b63\u5e38\u8bbf\u95ee\u5230\u3002<\/span><\/p>\n<blockquote>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 16px;color: rgb(0, 0, 0);\">http:\/\/juliabox.com<\/span><\/p>\n<\/blockquote>\n<p style=\"line-height: 1.75em;\"><br  \/><\/p>\n<p style=\"max-width: 100%;color: rgb(51, 51, 51);line-height: 1.75em;\"><br  \/><\/p>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">2.\u4f7f\u7528\u4ec0\u4e48\u7f16\u8f91\u5668<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u8bed\u8a00\u7684\u793e\u533a\u4e0d\u591f\u5927\uff0c\u6b64\u5916\u7531\u4e8e\u4e0d\u662f\u50cfrust\u8fd9\u6837\u7684\u9759\u6001\u7f16\u8bd1\u8bed\u8a00\uff0c\u4e5f\u4e0d\u662f\u50cfCPython\u8fd9\u6837\u7684\u89e3\u91ca\u578b\u7f16\u8bd1\u5668\uff0c\u5728\u542f\u52a8\u7684\u65f6\u5019\u6709\u6bd4\u8f83\u660e\u663e\u7684overhead\uff0c\u8fd9\u4e2a\u95ee\u9898\u4e00\u76f4\u5728\u4f18\u5316\uff08REPL\u7684\u542f\u52a8\u65f6\u95f4\u5df2\u7ecf\u4ece\u66fe\u7ecf\u76841.0s\u5230\u4e86\u73b0\u5728\u76840.2s\uff0c\u4f9d\u7136\u548cIPython\u8fd9\u6837\u7684\u6709\u660e\u663e\u5dee\u8ddd\uff09\uff0c\u6709PL\u7684\u670b\u53cb\u79c1\u4e0b\u548c\u6211\u8bf4\u662fLLVM\u7684JIT\u4e0d\u662f\u90a3\u4e48\u597d\uff08\u50cfnodejs\u7684V8\u8fd9\u4e2a\u95ee\u9898\u5c31\u4e0d\u662f\u5f88\u660e\u663e\uff09<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6240\u4ee5\u5728\u8fd9\u4e2a\u9636\u6bb5\u9009\u62e9\u4e00\u4e2a\u5408\u9002\u7684\u5f00\u53d1\u5de5\u5177\u662f\u975e\u5e38\u5fc5\u8981\u7684\u3002\u76ee\u524d\u652f\u6301\u6700\u597d\uff0cbug\u6700\u5c11\u7684\u662fAtom\u4e0a\u7684Juno\u63d2\u4ef6\uff0c\u5982\u679c\u4f60\u4e0b\u8f7dJulia Pro\u90a3\u4e48\u4f1a\u81ea\u5e26\u8fd9\u4e2a\u7f16\u8f91\u5668\u3002\u5982\u679c\u4f60\u60f3\u9009\u62e9\u624b\u52a8\u5b89\u88c5\uff0c\u90a3\u4e48\u53ef\u4ee5\u5728\u8fd9\u91cc\u4e0b\u8f7dAtom\uff1a<\/span><\/p>\n<blockquote>\n<p style=\"line-height: 1.75em;\">https:\/\/atom.io\/<\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5b89\u88c5\u65b9\u6cd5\uff1a<\/span><\/p>\n<blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">http:\/\/docs.junolab.org\/latest\/man\/installation.html<br  \/><\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6216\u8005\u6211\u4e5f\u63a8\u8350\u4f60\u5b89\u88c5IJulia\u4e4b\u540e\uff0c\u4f7f\u7528jupyter notebook\u548cjupyter lab\u8fdb\u884c\u5f00\u53d1\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5176\u5b83\u7684\u5e73\u53f0\u4e5f\u6709\u652f\u6301\uff0c\u4f8b\u5982Jetbrain\u7684\u5404\u4e2aIDE\u90fd\u53ef\u4ee5\u4f7f\u7528\u7531&nbsp;<\/span><strong><span style=\"color: rgb(23, 81, 153);font-size: 15px;\">@\u8003\u53e4\u5b66\u5bb6\u5343\u91cc\u51b0\u5c01<\/span><\/strong><span style=\"font-size: 15px;\">\u7b49\u5f00\u53d1\u7684\u63d2\u4ef6\u3002VS code\u4e5f\u6709Julia\u63d2\u4ef6\uff0c\u4ee5\u53caVim\u4e5f\u662f\u6709\u652f\u6301\u7684\u3002\u4f46\u662f\u4ed6\u4eec\u90fd\u8fd8\u6ca1\u6709\u652f\u6301\u9010\u884c\u6267\u884c\u548c\u5355\u72ec\u6267\u884c\u67d0\u4e00\u5757\u4ee3\u7801\u7684\u529f\u80fd\uff0c\u8fd9\u5bf9\u4e8e\u672c\u8eab\u88ab\u8bbe\u8ba1\u5f97\u5f88\u50cfMathematica\u7684Julia\u6765\u8bf4\u6ca1\u6709\u6267\u884c\u4e00\u4e2acell\u7684\u652f\u6301\u5f00\u53d1\u8d77\u6765\u4f1a\u65f6\u5e38\u88abJIT\u7684\u9884\u70ed\u65f6\u95f4\u6240\u56f0\u6270\u3002<\/span><\/p>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;background-color: rgb(255, 255, 255);color: rgb(26, 26, 26);\"><br  \/><\/span><\/p>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;background-color: rgb(255, 255, 255);color: rgb(26, 26, 26);\">\u7136\u540e\u4e3a\u4e86\u514b\u670dJIT\u7684\u9884\u70ed\uff0c\u907f\u514d\u91cd\u590d\u542f\u52a8\u7f16\u8bd1\u5668\u3002\u5982\u679c\u4f60\u4e0d\u91cd\u65b0\u5b9a\u4e49\uff08re-define\uff09\u7c7b\u578b\u7684\u8bdd\uff0c\u53ef\u4ee5\u8bd5\u8bd5 Revise.jl :<\/span><br  \/><\/p>\n<blockquote>\n<p style=\"line-height: 1.75em;\"><span style=\"color: rgb(0, 0, 0);font-size: 16px;\">https:\/\/github.com\/timholy\/Revise.jl<\/span><\/p>\n<\/blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u662f\u4e00\u4e2a\u7528\u4e8e\u70ed\u52a0\u8f7dJulia\u4ee3\u7801\u7684\u5de5\u5177\uff0c1.0\u5df2\u7ecf\u652f\u6301\u65b9\u6cd5\uff08method\uff09\u7684\u5220\u9664\u4e86\u3002\u6240\u4ee5\u4e5f\u80fd\u591f\u65b9\u4fbf\u4f60\u7684\u5f00\u53d1\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5176\u5b9e\u548cPython\u4e00\u6837\uff0c\u5728\u6211\u65e5\u5e38\u4f7f\u7528\u4e2d\uff0c\u4f5c\u4e3a\u52a8\u6001\u8bed\u8a00\uff0c\u4ee5\u53ca\u56e0\u4e3a\u8bed\u6cd5\u672c\u8eab\u9002\u5408\u5206\u5757\u6267\u884c\uff0c\u6211\u5176\u5b9e\u5f88\u5c11\u4f1a\u7528\u5230\u65ad\u70b9\u548c\u4e13\u95e8\u7684debugger\uff0c\u6b64\u5916\u867d\u7136\u6709\u76f8\u5173\u7684\u5305\uff0c\u57281.0\u7684\u7f16\u8bd1\u5668\u91cc\u4e5f\u4e3a\u672a\u6765\u52a0\u5165debugger\u63d0\u4f9b\u4e86\u76f8\u5173\u529f\u80fd\uff0c\u4f46\u662f\u76ee\u524d\u8fd8\u6ca1\u6709\u5b8c\u5584\uff0c\u4f60\u4e5f\u8bb8\u53ef\u4ee5\u8bd5\u8bd5\uff08\u4f46\u662f\u6211\u4e0d\u63a8\u8350\uff09\uff1a<\/span><\/p>\n<blockquote>\n<p style=\"line-height: 1.75em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">https:\/\/github.com\/Keno\/Gallium.jl<\/span><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">https:\/\/github.com\/timholy\/Rebugger.jl<\/span><\/p>\n<\/blockquote>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">3.\u600e\u6837\u77e5\u9053\u8981\u7528\u4ec0\u4e48\u5305<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u6709\u4e00\u4e2a\u7531\u793e\u533a\u7ef4\u62a4\u7684\u7f51\u7ad9\u7528\u6765\u5e2e\u52a9\u4f60\u4ece1900\u591a\u4e2a\u5305\u91cc\u627e\u51fa\u7b26\u5408\u4f60\u9700\u6c42\u7684Julia\u5305\uff1a<\/span><\/p>\n<blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">https:\/\/juliaobserver.com\/<\/span><\/p>\n<\/blockquote>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e00\u822c\u6765\u8bf4\u7528\u6bd4\u8f83\u65b0\u7684\uff0cstar\u6bd4\u8f83\u591a\u7684\u5305\u4f1a\u597d\u4e00\u4e9b\u3002\u7136\u540e\u5982\u679c\u4f60\u89c9\u5f97\u67d0\u4e2a\u5305\u4e0d\u9519\uff0c\u4e5f\u8bf7\u5728GitHub\u4e0a\u7ed9\u4e00\u4e2astar\u3002<\/span><\/p>\n<p style=\"max-width: 100%;color: rgb(51, 51, 51);line-height: 1.75em;\"><br  \/><\/p>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">4.\u57fa\u672c\u64cd\u4f5c<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5f53\u4f60\u4e0b\u8f7d\u597d\u4e86Julia\u4e4b\u540e\uff0c\u4e0d\u8bba\u662fJulia Pro\u8fd8\u662f\u5355\u72ec\u7684Julia\u7f16\u8bd1\u5668\uff0c\u4f60\u90fd\u53ef\u4ee5\u5148\u6253\u5f00\u4e00\u4e2aREPL\uff08\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u73af\u5883\uff09\uff0c\u7c7b\u4f3c\u4e8eIPython\u4e4b\u4e8ePython\uff0cJulia\u7684REPL\u652f\u6301\u4e86\u57fa\u672c\u7684\u4ee3\u7801\u9ad8\u4eae\uff0c\u6587\u6863\u67e5\u770b\u7b49\u529f\u80fd\u3002\u4f46\u662fJulia\u7684REPL\u66f4\u5f3a\u5927\uff08\u8fd9\u4ef6\u4e8b\u7a0d\u540e\u518d\u8bf4\uff09\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Windows\/Mac\u7528\u6237\uff1a<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u53cc\u51fbJulia\u7684\u4e09\u8272\u56fe\u6807\uff0c\u5c31\u80fd\u6253\u5f00REPL\u3002\u5728Atom\u91cc\u9762\u7684\u8bdd\u5728\u5de6\u4e0a\u89d2\u6709Julia\u4e00\u680f\uff0c\u70b9\u51fb\u91cc\u9762\u7684open terminal\u5373\u53ef\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Linux\u7528\u6237\uff1a<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e0b\u8f7d\u597d\u4ee5\u540e\u53bb\u627e\u5230bin\u6587\u4ef6\u5939\uff0c\u7136\u540e\u628a\u5b83\u52a0\u5165\u4f60\u7684 PATH \u73af\u5883\u53d8\u91cf\u91cc\u53bb\uff0c\u4ee5\u540e\u5c31\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u91cc\u76f4\u63a5\u901a\u8fc7 `julia` \u547d\u4ee4\u542f\u52a8REPL\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6811\u8393\u6d3e\u7528\u6237\u548c\u8d85\u7b97\u7528\u6237\uff1a<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6211\u76f8\u4fe1\u4f60\u4eec\u662f\u4e13\u4e1a\u7684\uff0c\u8bf7\u9605\u8bfb\u5b98\u7f51\u7684\u6559\u7a0b\u5427\u3002\u6ce8\u610f\u8d85\u7b97\u7528\u6237\u4e0d\u7528\u8981\u6c42\u7ba1\u7406\u5458\u5b89\u88c5\u4e5f\u53ef\u4ee5\u5b89\u88c5\u5230\u81ea\u5df1\u7684\u7528\u6237\u76ee\u5f55\u4e0b\u7684\uff0c\u8bbe\u7f6e\u597d\u73af\u5883\u53d8\u91cf\u5373\u53ef\u3002\u7136\u540e\u6709\u4e00\u4e9b\u8d85\u7b97\uff08\u6bd4\u5982\u4e2d\u56fd\u79d1\u5b66\u6280\u672f\u5927\u5b66\u7684\u8d85\u7b97\u4e2d\u5fc3\uff09Julia\u7f16\u8bd1\u5668\u662f\u5f88\u65e9\u5c31\u88c5\u597d\u7684\uff0c\u4f46\u662f\u53ef\u80fd\u4f7f\u7528module load\u52a0\u8f7d\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd0\u884cJulia\u7684\u7a0b\u5e8f\u603b\u7684\u6765\u8bf4\u53ef\u4ee5\u6709\u4e09\u79cd\u65b9\u5f0f\uff08\u5176\u5b9e\u539f\u7406\u4e0a\u5b83\u4eec\u90fd\u57fa\u672c\u662f\u7b49\u4ef7\u7684\uff09<\/span><\/p>\n<ol style=\"\" class=\"list-paddingleft-2\">\n<li>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6267\u884c\u4e00\u4e2aJulia\u811a\u672c\uff0c\u548c\u5176\u5b83Julia\u8bed\u8a00\u4e00\u6837\uff0c\u4f60\u53ef\u4ee5\u7528\u5982\u4e0b\u547d\u4ee4\u6267\u884cJulia\u811a\u672c\uff0c\u4e00\u822c\u6765\u8bf4Julia\u811a\u672c\u90fd\u4ee5 `.jl` \u4f5c\u4e3a\u6269\u5c55\u540d\u3002<\/span><\/p>\n<\/li>\n<\/ol>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">julia script.jl<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u4e2a\u6267\u884c\u51fa\u6765\u662f\u6ca1\u6709\u62a5\u9519\u9ad8\u4eae\u7684\uff0c\u9700\u8981\u989c\u8272\u8bf7\u7528\u4ee5\u4e0b\u547d\u4ee4\u6267\u884c<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">julia --color=yes script.jl<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">2. \u5982\u679c\u76f4\u63a5\u542f\u52a8Julia\u4f1a\u8fdb\u5165\u5230REPL\u91cc\u53bb<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">julia<\/span><\/code><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;\">\u4f60\u4f1a\u770b\u5230<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _  &nbsp; _ &nbsp; &nbsp; &nbsp; _ _(_)_ &nbsp; &nbsp; | &nbsp;Documentation: https:\/\/docs.julialang.org  &nbsp;(_) &nbsp; &nbsp; | (_) (_) &nbsp; &nbsp;|  &nbsp; _ _ &nbsp; _| |_ &nbsp;__ _ &nbsp; | &nbsp;Type \"?\" for help, \"]?\" for Pkg help.  &nbsp;| | | | | | |\/ _` | &nbsp;|  &nbsp;| | |_| | | | (_| | &nbsp;| &nbsp;Version 1.0.0 (2018-08-08)  _\/ |__'_|_|_|__'_| &nbsp;| |__\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |  julia&gt;<\/span><\/code><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;\">\u4e5f\u53ef\u4ee5\u5728\u8fd9\u91cc\u8fd0\u884cJulia\u547d\u4ee4\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;\">\u5728REPL\u91cc\u9762\u53ef\u4ee5\u76f4\u63a5\u67e5\u6587\u6863\uff0c\u6309 \uff1f\u5c31\u4f1a\u8df3\u5230help\u6a21\u5f0f\uff0c\u57280.7\u4e4b\u540e\uff08\u5305\u62ec1.0\uff09\uff0c\u6309 ] \u5c31\u4f1a\u8fdb\u5165pkg\u6a21\u5f0f\uff0c\u5728\u8fd9\u4e2a\u6a21\u5f0f\u4e0b\u6309 \uff1f\u5c31\u4f1a\u663e\u793a\u76f8\u5173\u6587\u6863<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">(v1.0) pkg&gt; ?  &nbsp;Welcome to the Pkg REPL-mode. To return to the julia&gt; prompt, either press backspace  &nbsp;when the input line is empty or press Ctrl+C.   &nbsp;Synopsis   &nbsp;pkg&gt; [--env=...] cmd [opts] [args]   &nbsp;Multiple commands can be given on the same line by interleaving a ; between the  &nbsp;commands.   &nbsp;Environment   &nbsp;The --env meta option determines which project environment to manipulate. By default,  &nbsp;this looks for a git repo in the parents directories of the current working directory,  &nbsp;and if it finds one, it uses that as an environment. Otherwise, it uses a named  &nbsp;environment (typically found in ~\/.julia\/environments) looking for environments named  &nbsp;v$(VERSION.major).$(VERSION.minor).$(VERSION.patch),  &nbsp;v$(VERSION.major).$(VERSION.minor), v$(VERSION.major) or default in order.   &nbsp;Commands   &nbsp;What action you want the package manager to take:   &nbsp;help: show this message   &nbsp;status: summarize contents of and changes to environment   &nbsp;add: add packages to project   &nbsp;develop: clone the full package repo locally for development   &nbsp;rm: remove packages from project or manifest   &nbsp;up: update packages in manifest   &nbsp;test: run tests for packages   &nbsp;build: run the build script for packages   &nbsp;pin: pins the version of packages   &nbsp;free: undoes a pin, develop, or stops tracking a repo.   &nbsp;instantiate: downloads all the dependencies for the project   &nbsp;resolve: resolves to update the manifest from changes in dependencies of developed  &nbsp;packages   &nbsp;generate: generate files for a new project   &nbsp;preview: previews a subsequent command without affecting the current state   &nbsp;precompile: precompile all the project dependencies   &nbsp;gc: garbage collect packages not used for a significant time   &nbsp;activate: set the primary environment the package manager manipulates<\/span><\/code><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;\">\u67e5\u770b\u5177\u4f53\u67d0\u4e2a\u547d\u4ee4\u7684\u6587\u6863\u53ef\u4ee5<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">(v1.0) pkg&gt; ?add  &nbsp;add pkg[=uuid] [@version] [#rev] ...   &nbsp;Add package pkg to the current project file. If pkg could refer to multiple different  &nbsp;packages, specifying uuid allows you to disambiguate. @version optionally allows  &nbsp;specifying which versions of packages. Versions may be specified by @1, @1.2, @1.2.3,  &nbsp;allowing any version with a prefix that matches, or ranges thereof, such as  &nbsp;@1.2-3.4.5. A git-revision can be specified by #branch or #commit.   &nbsp;If a local path is used as an argument to add, the path needs to be a git repository.  &nbsp;The project will then track that git repository just like if it is was tracking a  &nbsp;remote repository online.   &nbsp;Examples   &nbsp;pkg&gt; add Example  &nbsp;pkg&gt; add Example@0.5  &nbsp;pkg&gt; add Example#master  &nbsp;pkg&gt; add Example#c37b675  &nbsp;pkg&gt; add https:\/\/github.com\/JuliaLang\/Example.jl#master  &nbsp;pkg&gt; add git@github.com:JuliaLang\/Example.jl.git  &nbsp;pkg&gt; add Example=7876af07-990d-54b4-ab0e-23690620f79a<\/span><\/code><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;\">\u5b89\u88c5\u5305\u57280.7\u4e4b\u540e\u90fd\u7528pkg\u6a21\u5f0f\u6765\u5b89\u88c5\uff0c\u56e0\u4e3a\u8fd9\u4e2a\u66f4\u65b9\u4fbf\uff0c\u4f46\u662f\u548c0.6\u4e00\u6837\uff0c\u5982\u679c\u4f60\u60f3\u4f7f\u7528\u4ee3\u7801\u6765\u5b89\u88c5\u4e5f\u662f\u53ef\u4ee5\u7684\uff0c\u4f46\u662f\u57280.7\u4e4b\u540e\u9700\u8981\u52a0\u8f7d Pkg \u6a21\u5757\uff080.6\u4e0d\u7528\uff09<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">using Pkg<\/span><\/code><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;\">\u7136\u540e\u5b89\u88c5\u4f60\u60f3\u8981\u7684\u5305<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">Pkg.add(\"Example\")<\/span><\/code><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;\">Julia\u7684REPL\u6269\u5c55\u6027\u5f88\u5f3a\uff0c\u6bd4\u8f83\u6709\u540d\u7684\u6bd4\u5982OhMyREPL<\/span><\/p>\n<figure style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><img class=\"origin_image zh-lightbox-thumb lazy\"     style=\"display: block;margin-right: auto;margin-left: auto;cursor: zoom-in;\" width=\"669\" src=\"http:\/\/swarma.org\/wp-content\/uploads\/2018\/08\/swarma8-1534399165.jpeg\" alt=\"\u96c6\u667aAI\u5b66\u56ed\" title=\"\u96c6\u667aAI\u5b66\u56ed\"  \/><\/figure>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;\">\u751a\u81f3\u8fd8\u53ef\u4ee5\u5728Julia\u7684REPL\u91cc\u628aC++\u5f53\u6210\u52a8\u6001\u8bed\u8a00\u6765\u5199\uff0c\u6309 &lt; \u952e\u8fdb\u5165C++\u6a21\u5f0f\uff08Julia\u7684C++ FFI\uff1aCxx.jl\uff0c\u6682\u65f6\u8fd8\u6ca1\u66f4\u65b0\u52301.0\uff0c\u9700\u89810.6\uff09<\/span><\/p>\n<figure style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><img class=\"origin_image zh-lightbox-thumb lazy\"     style=\"display: block;margin-right: auto;margin-left: auto;cursor: zoom-in;\" width=\"1078\" src=\"http:\/\/swarma.org\/wp-content\/uploads\/2018\/08\/swarma6-1534399165.jpeg\" alt=\"\u96c6\u667aAI\u5b66\u56ed\" title=\"\u96c6\u667aAI\u5b66\u56ed\"  \/><\/figure>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">3. \u7b2c\u4e09\u79cd\u65b9\u5f0f\u5c31\u662f\u5728Atom\u8fd9\u6837\u652f\u6301cell\u7684\u7f16\u8f91\u5668\u91cc\uff08notebook\u4e5f\u662f\u7c7b\u4f3c\u7684\uff09\uff0c\u5728Atom\u4e2d\u5728\u67d0\u4e00\u884c\u6309 shift+enter \u4f1a\u5355\u72ec\u6267\u884c\u8fd9\u4e00\u884c\uff0c\u7ed3\u679c\u4f1a\u6253\u5370\u5728\u8fd9\u4e00\u884c\u7684\u540e\u9762\u3002\u5982\u679c\u6709\u591a\u884c\u7684\u7ed3\u679c\u4f60\u53ef\u4ee5\u7528\u9f20\u6807\u70b9\u51fb\u4ee5\u4e0b\uff0c\u5c31\u4f1a\u5c55\u5f00\u3002\u5982\u679c\u4f60\u9009\u4e2d\u4e86\u5f88\u591a\u884c\uff0c\u90a3\u4e48\u5c31\u4f1a\u6267\u884c\u4f60\u9009\u4e2d\u7684\u90e8\u5206\uff0c\u7ed3\u679c\u663e\u793a\u5728\u9009\u4e2d\u7684\u90e8\u5206\u6700\u540e\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">notebook\u91cc\u9762\u7684\u4f7f\u7528\u65b9\u6cd5\u4e5f\u662fshift + enter\u548cPython\u7b49\u5176\u5b83\u8bed\u8a00\u7c7b\u4f3c\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e0b\u9762\u7684\u90e8\u5206\u4f60\u53ef\u4ee5\u5728\u4ee5\u4e0a\u4e09\u79cd\u65b9\u5f0f\u91cc\u7684\u4efb\u610f\u4e00\u79cd\u91cc\u6267\u884c\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u672c\u6559\u7a0b\u53ea\u662f\u5e2e\u52a9\u719f\u6089\u8bed\u6cd5\uff0c\u60f3\u8981\u638c\u63e1Julia\u8fd8\u8bf7\u8ba4\u771f\u9605\u8bfb\u624b\u518c\uff08\u4e2d\u6587\u624b\u518c\u8fd8\u5728\u7ffb\u8bd1\u4e2d\uff09\uff1a<\/span><\/p>\n<blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">https:\/\/docs.julialang.org\/en\/stable\/manual\/getting-started\/<\/span><\/p>\n<\/blockquote>\n<p><br  \/><\/p>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">5.\u57fa\u672c\u8bed\u6cd5<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6b63\u5982\u6240\u6709\u7684\u7ecf\u5178\u6559\u7a0b\u4e00\u6837\uff0c\u6211\u4eec\u5148\u6765\u5b66\u4e60\u600e\u4e48\u5199hello world\uff1a<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728Julia\u91cc\u9762\u5199hello world\u53ef\u4ee5\u8fd9\u6837\u5199<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-jlcon\" style=\"border-radius: 0px;\"><span style=\"color: gray;font-size: 15px;\">&gt; println(\"Hello World\")<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;font-weight: 600;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"font-size: 15px;font-weight: 600;\">\u6ce8\u610f&nbsp;<\/span>\u5728Julia\u91cc\u4e3a\u4e86\u4fdd\u8bc1\u58f0\u660e\u53ef\u4ee5\u5e2e\u52a9\u4f60\u533a\u5206\u7c7b\u578b\uff0cString\u662f\u9700\u8981\u53cc\u5f15\u53f7\u7684\uff0c\u5b57\u7b26\u4f7f\u7528\u5355\u5f15\u53f7\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u7684\u5b57\u7b26\u4e32\u7ee7\u627f\u4e86Perl\u7684\u5b57\u7b26\u4e32\u5dee\u503c\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u7b49\uff0cStefan\u7684\u8bc4\u4ef7\u662f\u4ed6\u89c9\u5f97Perl\u7684\u5b57\u7b26\u4e32\u5904\u7406\u662f\u6700\u6f02\u4eae\u7684\uff0c\u4e8e\u662f\u5c31\u6284\u4e86\u8fc7\u6765\u3002<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; name = \"Roger\" &gt; println(\"Hello $name\")<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u91ccname\u662f\u4e00\u4e2a\u53d8\u91cf\uff0cJulia\u548cPython\u4e00\u6837\uff0c\u4e0d\u9700\u8981\u58f0\u660e\u53d8\u91cf\uff0c\u56e0\u4e3a\u6240\u6709\u7684\u53d8\u91cf\u90fd\u53ea\u662f\u7ed9\u503c\u7ed1\u5b9a\u4e86\u4e00\u4e2a\u540d\u5b57\u800c\u5df2\u3002\u7136\u540e\u5bf9\u4e8e\u53d8\u91cf\u63d2\u5165\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 $ \u7b26\u53f7\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u5c06\u6253\u5370\u51fa<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">Hello Roger<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5f53\u7136\u5bf9\u4e8e\u6bd4\u8f83\u957f\u7684\u8868\u8fbe\u5f0f\u4f60\u4e5f\u53ef\u4ee5\u4f7f\u7528\u62ec\u53f7<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; println(\"1 + 1 = $(1 + 1)\")<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u5c06\u6253\u5370\u51fa<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">1 + 1 = 2<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6211\u4eec\u4e0a\u9762\u63d0\u5230\u4e86\u600e\u4e48\u7ed1\u5b9a\u4e00\u4e2a\u53d8\u91cf\u540d\uff1a<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; x = \"Roger\"<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u7684\u53d8\u91cf\u540d\u9664\u4e86ASCII\u5b57\u7b26\u4ee5\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5305\u62ec\u4f46\u4e0d\u9650\u4e8eUTF-8\u7684unicode\uff0c\u6bd4\u5982\u751a\u81f3\u662f\u4e2d\u6587<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; \u4f60\u597d = \"Hello!\"<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd8\u53ef\u4ee5\u662fEmoji\uff0c\u8f93\u5165 `:smile` \u7136\u540e\u518d\u6309 `tab`<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; ? = \"smile\"<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u522b\u5fd8\u4e86\u8fd9\u662f\u4e00\u4e2a\u4e3a\u79d1\u5b66\u5bb6\u4eec\u6253\u9020\u7684\u8bed\u8a00\uff0c\u8fd8\u53ef\u4ee5\u5229\u7528LaTeX\u6765\u8f93\u5165\u7279\u522b\u7684\u6570\u5b66\u7b26\u53f7\uff0c\u5728notebook\u6216\u8005REPL\u91cc\u8f93\u5165 &#8220; + `epsilon` \u6309 `tab` \u952e<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; \u03f5 = 2.2<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u8fd8\u5229\u7528\u4e86LLVM\u7684\u4e00\u4e9b\u5e38\u6570\uff08\u65e0\u9650\u7cbe\u5ea6\uff09\uff1a<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; \u03c0 \u03c0 = 3.1415926535897...<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">6.\u51fd\u6570\u58f0\u660e<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6211\u4eec\u5199\u4e00\u4e2a\u975e\u5e38\u7b80\u5355\u7684\u6c42\u548c\u51fd\u6570\uff0c\u5b83\u4f1a\u5bf9\u4e00\u4e2a\u5411\u91cf A \u6c42\u548c<\/span><br  \/><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">function mysum(A)  &nbsp; &nbsp;s = 0.0 # s = zero(eltype(A))  &nbsp; &nbsp;for a in A  &nbsp; &nbsp; &nbsp; &nbsp;s += a  &nbsp; &nbsp;end  &nbsp; &nbsp;s end<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u51fd\u6570\u58f0\u660e\u4f7f\u7528 function \u5173\u952e\u5b57\u5f00\u5934\u642d\u914d end \u5173\u952e\u5b57\uff0c\u4e5f\u8bb8\u4e00\u5f00\u59cb\u4f60\u5bf9\u8fd9\u4e2a end \u4e0d\u662f\u5f88\u559c\u6b22\uff0c\u6216\u8bb8\u4f1a\u95ee\u4e3a\u4ec0\u4e48\u4e0d\u50cfPython\u4e00\u6837\u5462\uff1f\u4e3a\u4ec0\u4e48\u4e0d\u7528 {} \u5462\uff1f\u522b\u7740\u6025\u540e\u9762\u5728\u5143\u7f16\u7a0b\u7684\u90e8\u5206\u544a\u8bc9\u4f60 end \u7684\u597d\u5904\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7136\u540e for \u5faa\u73af\u4e5f\u662f\u4e00\u6837\u7684\uff0c\u4f7f\u7528for\u5173\u952e\u5b57\uff0c\u7136\u540e\u53ef\u4ee5\u642d\u914d in \u6765\u904d\u5386\u4e00\u4e2a\u6570\u7ec4\uff08\u662f\u4e0d\u662f\u51e0\u4e4e\u548cPython\u4e00\u6837\uff1f\uff09\uff0c\u4f46\u662f\u522b\u5fd8\u8bb0\u4e86\u6240\u6709\u7684\u4ee3\u7801\u5757\u90fd\u6700\u540e\u8981\u5199\u4e00\u4e2aend<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5f53\u7136 in \u5173\u952e\u5b57\u53ef\u4ee5\u5355\u72ec\u4f7f\u7528\uff0c\u7528\u4e8e\u5224\u65ad\u67d0\u4e2a\u96c6\u5408\u7c7b\uff08collection\uff0c\u4f8b\u5982\u4e00\u4e2a\u6570\u7ec4\uff09\u91cc\u9762\u662f\u5426\u5305\u542b\u67d0\u4e2a\u5143\u7d20<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; 1 in [1, 2, 3] true<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6ce8\u91ca\u65b9\u5f0f\u548cPython\u4e00\u6837\uff0c\u4e5f\u4f7f\u7528 #\uff0c\u800c\u591a\u884c\u6ce8\u91ca\u4f7f\u7528<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">#=  xxx =#<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4f46\u662f\u9664\u6b64\u4e4b\u5916\uff0cJulia\u662f\u6709\u7c7b\u578b\u7684\uff0c\u4e5f\u53ef\u4ee5\u6807\u6ce8\u7c7b\u578b\uff08\u800c\u4e0d\u662f\u58f0\u660e\uff09\uff0c\u800c\u5bf9\u4e8e\u77ed\u5c0f\u7684\u51fd\u6570\u58f0\u660e\u4e5f\u53ef\u4ee5\u66f4\u52a0\u7684\u8d34\u8fd1\u6570\u5b66\u8bed\u8a00\u3002\u4f8b\u5982\u6211\u4eec\u60f3\u8981\u5224\u65ad\u67d0\u4e2a\u6570\u5b57\u662f\u5947\u6570\u8fd8\u662f\u5076\u6570<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">is_even(x::Int) = x % 2 == 0<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u4f7f\u7528 :: \u6765\u6807\u6ce8\u7c7b\u578b \uff08\u5b66\u8fc7Python3\u7684\u670b\u53cb\u53ef\u80fd\u77e5\u9053Python\u4e5f\u6709\u7c7b\u4f3c\u7684\u7c7b\u578b\u6807\u6ce8\u4f46\u662f\u662f\uff1a\uff09<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u4e2a\u65f6\u5019\u5982\u679c\u8f93\u5165\u4e86\uff0c\u4f8b\u5982\u6d6e\u70b9\u6570\u90a3\u4e48\u5c31\u4f1a\u62a5\u9519<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; is_even(2.0) MethodError: no method matching is_even(::Float64) Closest candidates are:  &nbsp;is_even(!Matched::Int64) at In[3]:1  Stacktrace:  [1] top-level scope at none:0<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7136\u540e\u591a\u5199\u6587\u6863\u662f\u4e2a\u597d\u4e60\u60ef\uff0c\u8ba9\u6211\u4eec\u7ed9is_even\u548cmysum\u52a0\u4e0a\u6587\u6863\uff0c\u5bf9\u4e8e\u5df2\u7ecf\u5b9a\u4e49\u8fc7\u7684\u4e1c\u897f\uff0c\u53ef\u4ee5\u76f4\u63a5\u8fd9\u6837\u52a0\u6587\u6863<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">\"\"\"  &nbsp; &nbsp;is_even(x::Int) -&gt; Bool  \u5224\u65ad\u4e00\u4e2a\u6574\u6570 `x` \u662f\u5426\u662f\u5076\u6570 \"\"\" is_even  \"\"\"  &nbsp; &nbsp;mysum(A) -&gt; Number  \u5bf9 `A` \u6c42\u548c\u3002 \"\"\" mysum<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4f46\u662f\u4e5f\u53ef\u4ee5\u5728\u58f0\u660e\u7684\u65f6\u5019\u52a0<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">\"\"\"  &nbsp; &nbsp;is_even(x::Int) -&gt; Bool  \u5224\u65ad\u4e00\u4e2a\u6574\u6570 `x` \u662f\u5426\u662f\u5076\u6570 \"\"\" is_even(x::Int) = x % 2 == 0   \"\"\"  &nbsp; &nbsp;mysum(A) -&gt; Number  \u5bf9 `A` \u6c42\u548c\u3002 \"\"\" function mysum(A)  &nbsp; &nbsp;s = 0.0 # s = zero(eltype(A))  &nbsp; &nbsp;for a in A  &nbsp; &nbsp; &nbsp; &nbsp;s += a  &nbsp; &nbsp;end  &nbsp; &nbsp;s end<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u7684\u6587\u6863\u7cfb\u7edf\u4f7f\u7528 Documenter.jl \uff0c\u6240\u6709\u6587\u6863\u90fd\u7528markdown\u7f16\u5199\uff0c\u8fd9\u79cdmarkdown\u662fJulia flavor\u7684\uff0c\u5177\u4f53\u7ec6\u5219\u975e\u5e38\u7b80\u5355\u8fd8\u8bf7\u53c2\u89c1\uff1a<\/span><\/p>\n<blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">https:\/\/docs.julialang.org\/en\/stable\/manual\/documentation\/#Markdown-syntax-1<\/span><\/p>\n<\/blockquote>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u91cc\u7684\u5206\u652f\u9884\u6d4b\u4e5f\u5f88\u7b80\u5355\uff0c\u548c\u5f88\u591a\u8bed\u8a00\u90fd\u975e\u5e38\u50cf<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">if cond1 # blabla elseif cond2 # blabla else # blabla end<\/span><\/code><\/p><\/pre>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><br  \/><\/span><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><br  \/><\/span><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">7.\u591a\u7ef4\u6570\u7ec4<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u4e5f\u6709\u539f\u751f\u652f\u6301\u7684\u591a\u7ef4\u6570\u7ec4\uff08\u800c\u4e0d\u662fList\uff09\u751a\u81f3\u6709\u975e\u5e38\u5b8c\u5584\u7684Array Interface\u3002\u8fd9\u8868\u73b0\u4e3aJulia\u62e5\u6709\u5927\u91cf\u7684\u9488\u5bf9\u4e0d\u540c\u60c5\u51b5\u8bbe\u8ba1\u7684\u6570\u7ec4\u7c7b\u578b\uff0c\u4f8b\u5982\uff1a\u53ef\u5171\u4eab\u6570\u7ec4\uff0c\u4f9b\u5e76\u884c\u8ba1\u7b97\u4f7f\u7528\uff1b\u9759\u6001\u6570\u7ec4\uff0c\u9002\u5408\u7ed9\u5c0f\u7684\u6570\u7ec4\u52a0\u901f\uff1b\u7a00\u758f\u6570\u7ec4\uff0c\u5b9e\u73b0\u4e0a\u76ee\u524d\u53ea\u6709\u7a00\u758f\u77e9\u9635\uff1b\u5206\u5e03\u5f0f\u6570\u7ec4\uff0c\u7528\u4e8e\u5206\u5e03\u5f0f\u8ba1\u7b97\uff1bCUDA\u6570\u7ec4CuArray\uff0c\u7528\u4e8e\u5728N\u5361\u4e0a\u8ba1\u7b97\uff0c\u7b49\u7b49\uff0c\u5c31\u4e0d\u4e00\u4e00\u5217\u4e3e\u4e86\u5b83\u4eec\u4e4b\u4e2d\u9664\u4e86\u81ea\u5e26\u7684\u6570\u7ec4\uff08\u7c7b\u4f3c\u4e8enumpy\u7684\u591a\u7ef4\u6570\u7ec4\uff09\u4ee5\u5916\u90fd\u5728\u5916\u90e8\u652f\u6301\u7684\u5305\u91cc\uff0c\u800c\u6240\u6709\u7684\u8fd9\u4e9b\u6570\u7ec4\u90fd\u9002\u7528\u4e86\u540c\u6837\u7684Interface\u3002\u4ed6\u4eec\u5728\u4f7f\u7528\u4f53\u9a8c\u4e0a\u51e0\u4e4e\u6ca1\u6709\u5dee\u522b\u3002<\/span><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6bd4\u5982\u53ef\u4ee5\u4ea7\u751f\u4e00\u4e2a\u968f\u673a\u6570\u7ec4<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; rand(10)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u5c06\u5f97\u5230\u4e00\u4e2a\u5411\u91cf\uff0c\u91cc\u9762\u670910\u4e2a\u5143\u7d20\uff0c\u6bcf\u4e2a\u5143\u7d20\u7684\u7c7b\u578b\u662f\u9ed8\u8ba4\u7684Float64\u7c7b\u578b\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4ea7\u751f\u4e00\u4e2a\u968f\u673a\u77e9\u9635\uff08\u8ddf\u968f\u4f60\u7684\u76f4\u89c9\u5c31\u597d\uff09<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; rand(10, 20)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4ea7\u751f\u4e00\u4e2a\u4e09\u7ef4\u7684\u5f20\u91cf<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; rand(10, 20, 30)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">&#8230;<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u90a3\u4e48\u5982\u679c\u8981\u58f0\u660eInt\u7c7b\u578b\u7684\u6570\u7ec4\u5462\uff1f<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; rand(Int, 10) &gt; rand(Int, 10, 20) &gt; rand(Int, 10, 20, 30)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u90a3\u4e48\u5982\u4f55\u58f0\u660e\u521d\u59cb\u5316\u4e3a0\u7684\u6570\u7ec4\u5462\uff1f\u73b0\u5728\u544a\u8bc9\u4f60\u51fd\u6570\u540d\u79f0\u662f zeros \u548cMATLAB\u4ee5\u53canumpy\u5b8c\u5168\u4e00\u6837\uff0c\u770b\u4e86\u4e0a\u9762 rand \u7684\u7528\u6cd5\uff0c\u731c\u731c\u8fd9\u4e2a\u600e\u4e48\u7528\uff1f<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u90a3\u4e48\u5982\u679c\u6211\u9700\u8981\u66f4\u590d\u6742\u7684\u6784\u9020\u5462\uff1fPython\u7684List\u6709\u4e00\u4e2a\u5f88\u8457\u540d\u7684List Comprehension\u65b9\u6cd5\uff0cJulia\u4e5f\u6709\u3002<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; [i for I in 1:10]<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u5c06\u83b7\u5f97<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u548cPython\u7684List Comprehension\u662f\u4e0d\u662f\u4e00\u6837\uff1f\u4f46\u662f\u7b49\u7b49\uff0c\u8fd8\u4e0d\u6b62\u5982\u6b64\uff0cJulia\u5bf9\u591a\u7ef4\u6570\u7ec4\u7684\u652f\u6301\u662f\u975e\u5e38\u597d\u7684\uff0cComprehension\u5bf9\u4e8e\u591a\u7ef4\u6570\u7ec4\u4e5f\u53ef\u4ee5\u7528\uff0c\u7528\u9017\u53f7\u5206\u9694\u5373\u53ef<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">[(i, j) for i in 1:5, j in 1:6]  5\u00d76 Array{Tuple{Int64,Int64},2}:  (1, 1) &nbsp;(1, 2) &nbsp;(1, 3) &nbsp;(1, 4) &nbsp;(1, 5) &nbsp;(1, 6)  (2, 1) &nbsp;(2, 2) &nbsp;(2, 3) &nbsp;(2, 4) &nbsp;(2, 5) &nbsp;(2, 6)  (3, 1) &nbsp;(3, 2) &nbsp;(3, 3) &nbsp;(3, 4) &nbsp;(3, 5) &nbsp;(3, 6)  (4, 1) &nbsp;(4, 2) &nbsp;(4, 3) &nbsp;(4, 4) &nbsp;(4, 5) &nbsp;(4, 6)  (5, 1) &nbsp;(5, 2) &nbsp;(5, 3) &nbsp;(5, 4) &nbsp;(5, 5) &nbsp;(5, 6)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u5c06\u5f97\u5230\u4e00\u4e2a\u7531Tuple\u6784\u6210\u7684\u77e9\u9635\uff0c\u90a3\u4f60\u5df2\u7ecf\u770b\u5230\u4e86Julia\u91cc\u9762\u5143\u7ec4\u4f7f\u7528\u62ec\u53f7\u6765\u58f0\u660e\u3002\u800c\u9664\u4e86\u8fd9\u79cd\u5143\u7ec4\u8fd8\u6709\u4e00\u79cd\u79f0\u4e3a\u547d\u540d\u5143\u7ec4\uff08NamedTuple\uff09\u7684\u4e1c\u897f\uff0c\u8fd9\u662f1.0\u7684\u65b0\u7279\u6027<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">info = (name=\"Roger\", age=\"0\", wechat=\"\u4e0d\u544a\u8bc9\u4f60\")<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4f60\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7 . \u7b97\u7b26\u6765\u8bbf\u95ee<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; info.name \"Roger\"  &gt; info.age \"0\"  &gt; info.wechat \"\u4e0d\u544a\u8bc9\u4f60\"<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 16px;color: rgb(236, 137, 33);\"><strong>\u5e7f\u64ad\uff08broadcast\uff09<\/strong><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u591a\u7ef4\u6570\u7ec4\u7684\u5e7f\u64ad\u662f\u4e00\u4e2a\u5f88\u91cd\u8981\u7684\u7279\u6027\uff0c\u4e5f\u662fJulia\u591a\u7ef4\u6570\u7ec4\u7684\u6807\u51c6\u63a5\u53e3\uff08Interface\uff09\u4efb\u4f55Julia\u7684\u6570\u7ec4\u90fd\u53ef\u4ee5\u4f7f\u7528\u5e7f\u64ad\u3002Julia\u4eceMATLAB\u5b66\u6765\u4e86 . \u7b97\u7b26\u3002\u4efb\u4f55\u88ab\u70b9\u7b97\u7b26\u4f5c\u7528\u7684\u51fd\u6570\u548c\u5176\u5b83\u7b97\u7b26\u90fd\u53ef\u4ee5\u88ab\u5e7f\u64ad\u3002\u4f8b\u5982<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; sin.(A)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5c06\u5e7f\u64adsin\u51fd\u6570\u5230A\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\u3002\u4ec0\u4e48\u662f\u5e7f\u64ad\u7b80\u5355\u6765\u8bf4\u5c31\u662f\u5c06\u4e00\u4e2a\u51fd\u6570\u4f5c\u7528\u5728\u591a\u7ef4\u6570\u7ec4\uff0c\u5143\u7ec4\uff0c\u6807\u91cf\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\u4e0a\u53bb\u3002\u8fd9\u6709\u70b9\u50cf\u662f\u51fd\u6570\u5f0f\u7f16\u7a0b\u91ccmap\u7684\u6982\u5ff5\uff0c\u4f46\u662f\u4e0d\u5b8c\u5168\u4e00\u6837\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5e7f\u64ad\u8fd0\u7b97\u5bf9\u4efb\u4f55\u51fd\u6570\u90fd\u662f\u652f\u6301\u7684\uff0c\u6bd4\u5982<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">&gt; foo.(A, B, c)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u91ccA\u548cB\u65f6\u4e24\u4e2a\u6570\u7ec4\uff0cc\u662f\u4e00\u4e2a\u6807\u91cf\u90a3\u4e48foo\u5c06\u4f1a\u4ee5 foo(a, b, c) \u7684\u5f62\u5f0f\u4f5c\u7528\u5728\u6bcf\u4e00\u4e2aA\uff0cB\u7684\u5143\u7d20a, b \u4e0a\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">8.\u7c7b\u578b\uff1a\u4e00\u5207\u90fd\u662f\u5bf9\u8c61<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u548c\u5f88\u591a\u5176\u5b83\u7684\u9762\u5411\u5bf9\u8c61\u8bed\u8a00\u4e00\u6837\uff0cJulia\u91cc\u6240\u6709\u7684\u4e1c\u897f\u90fd\u662f\u5bf9\u8c61\uff0c\u6216\u8005\u8bf4\u662f\u67d0\u4e2a\u7c7b\u578b\u7684\u5b9e\u4f8b\uff0c\u4f46\u975e `class` \u7684\u5b9e\u4f8b\uff0cJulia\u6ca1\u6709 `class`\uff0c\u4f46\u662f\u6709\u66f4\u8f7b\u91cf\u7ea7\u7684\u7c7b\u578b\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><span style=\"font-size: 15px;font-weight: 600;\">\u5b9a\u4e49\u4e00\u4e2a\u590d\u6570\u7c7b\u578b<\/span>&nbsp;\u590d\u6570\u662f\u5f88\u591a\u6570\u503c\u8ba1\u7b97\u548c\u6570\u636e\u5206\u6790\u7b97\u6cd5\u90fd\u4f1a\u7528\u5230\u7684\u7c7b\u578b\uff0c\u7136\u800c\u4e00\u822c\u7684\u5904\u7406\u5668\u4e0a\u5e76\u4e0d\u662f\u81ea\u5e26\u590d\u6570\u7c7b\u578b\u7684\uff0c\u6211\u4eec\u5f80\u5f80\u4f7f\u7528\u4e24\u500d\u7cbe\u5ea6\u7684\u6d6e\u70b9\u6570\u6765\u6a21\u62df\u4e00\u4e2a\u590d\u6570\uff0c\u4f8b\u5982\u5728 `C` \u8bed\u8a00\u91cc\uff0c\u53cc\u7cbe\u5ea6\u7684\u590d\u6570\u53ef\u4ee5\u5199\u4f5c\uff1a<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">double _Complex a;<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6216\u8005\u5728 `C++` \u4e2d\uff0c\u53cc\u7cbe\u5ea6\u7684\u590d\u6570\u53ef\u4ee5\u5199\u4f5c\uff1a<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">std::complex&lt;double&gt; a;<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728 `Python` \u91cc\uff0c\u6ca1\u6709\u663e\u793a\u7c7b\u578b\uff0c\u4f46\u662f\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528 `j`\uff1a<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">In [1]: 1 + 1.j Out[1]: (1+1j)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u91cc\u6709\u81ea\u5e26\u7684 Complex\u7c7b\u578b\uff0c\u548cPython\u7c7b\u4f3c\uff0c\u7528 im \u8868\u793a\u865a\u6570\u5355\u4f4d<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">1 + 1im<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Complex\u662f\u7eafJulia\u5b9e\u73b0\u7684\u6570\u503c\u7c7b\u578b\u3002\u6240\u4ee5\u6211\u4eec\u7528\u8fd9\u4e2a\u4f5c\u4e3a\u4f8b\u5b50\u6765\u770b\u770b\u600e\u4e48\u5b9a\u4e49\u4e00\u4e2a\u7c7b\u578b<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">struct MyComplex  &nbsp; &nbsp;real::Float64  &nbsp; &nbsp;imag::Float64 end  # \u4e00\u4e2a\u590d\u6570\u5c31\u662f MyComplex \u7c7b\u578b\u7684\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u4e5f\u5c31\u662f\u4e00\u79cd\u5bf9\u8c61 a = MyComplex(1.0, 2.0)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u800c\u5b9e\u9645\u4e0a\u548c<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">C<\/span><\/code><span style=\"font-size: 15px;\">\/<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">C++<\/span><\/code><span style=\"font-size: 15px;\">\u4e00\u6837\uff0cJulia\u7684\u590d\u6570\u7c7b\u578b\u4e5f\u662f\u7eafJulia\u5b9e\u73b0\u7684\uff0c\u6211\u4eec\u8fd9\u91cc\u4f1a\u7b80\u5355\u5730\u5b9e\u73b0\u4e00\u4e2a\u590d\u6570\u7c7b\u578b<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">MyComplex<\/span><\/code><span style=\"font-size: 15px;\">\u3002Julia\u7684\u7c7b\u578b\u4f7f\u7528<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">struct<\/span><\/code><span style=\"font-size: 15px;\">\u5173\u952e\u5b57\uff0c\u7136\u540e\u7528<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">end<\/span><\/code><span style=\"font-size: 15px;\">\u8868\u793a\u8fd9\u4e00\u6bb5\u8868\u8fbe\u5f0f\u7684\u7ed3\u675f\u3002\u6bcf\u4e2aJulia\u7c7b\u578b\u6709\u4e00\u4e2a\u9ed8\u8ba4\u7684\u6784\u9020\u51fd\u6570\uff0c\u8fd9\u4e2a\u6784\u9020\u51fd\u6570\u7684\u53d8\u91cf\u5373\u4e3a\u7c7b\u578b\u58f0\u660e\u7684\u6210\u5458\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4f46\u662f\u4ec5\u4ec5\u58f0\u660e\u4e86\u7c7b\u578b\u8fd8\u8fdc\u8fdc\u4e0d\u591f\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u5bf9\u590d\u6570\u5b9a\u4e49\u590d\u6570\u8fd0\u7b97\uff0c\u65b9\u4fbf\u8d77\u89c1\u6211\u4eec\u8fd9\u91cc\u4ec5\u91cd\u8f7d&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">*<\/span><\/code><span style=\"font-size: 15px;\">\u7b97\u7b26\uff1a<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\uff08a+b\u00b7i)\uff08c+d\u00b7i)=(ac-bd)+(ad+bc)\u00b7i<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9996\u5148\u6211\u4eec\u9700\u8981\u5c06\u8981\u91cd\u8f7d\u7684\u4e1c\u897f\u4ece&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">Base<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u6a21\u5757\u4e2d\u62ff\u51fa\u6765\uff08\u800c\u4e0d\u662f\u81ea\u5df1\u58f0\u660e\u4e00\u4e2a\u65b0\u7684\uff0c\u4e3a\u4ec0\u4e48\uff1f\u7559\u7ed9\u5927\u5bb6\u4e4b\u540e\u601d\u8003\uff0c\u8fd9\u5bf9\u4f60\u7406\u89e3\u4ec0\u4e48\u662fJulia\u7684\u591a\u91cd\u6d3e\u53d1\u5f88\u6709\u5e2e\u52a9\uff09\uff0c\u5728Julia\u91cc\uff0c<span style=\"font-weight: 600;\">\u8fd0\u7b97\u7b26<\/span>&nbsp;\u53ea\u662f\u4e00\u79cd\u7279\u6b8a\u7684\u51fd\u6570\uff0c\u5e76\u4e0d\u4f1a\u88ab\u7279\u522b\u5bf9\u5f85<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">import Base: *  *(a::MyComplex, b::MyComplex) = MyComplex(a.real * b.real - a.imag * b.imag, a.real * b.imag + a.imag * b.real)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7136\u540e\u8bd5\u8bd5\uff1f<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">b = MyComplex(1.0, 3.0)  a * b<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u73b0\u5728\u8f93\u51fa\u4e0d\u662f\u5f88\u597d\u770b\uff0c\u6211\u4eec\u91cd\u8f7d\u4e00\u4e0b<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">show<\/span><\/code><span style=\"font-size: 15px;\">\u65b9\u6cd5\u628a\u9ed8\u8ba4\u6253\u5370\u51fa\u6765\u7684\u5b57\u7b26\u4e32\u4fee\u6539\u4e00\u4e0b\uff0c\u8fd9\u91cc\u5b57\u7b26\u4e32\u91cc\u7684<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">$<\/span><\/code><span style=\"font-size: 15px;\">\u662f\u5b57\u7b26\u4e32\u63d2\u5165\uff0c\u53ef\u4ee5\u5c06\u4e00\u4e2aJulia\u8868\u8fbe\u5f0f\u7684\u8f93\u51fa\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff08<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">String<\/span><\/code><span style=\"font-size: 15px;\">\u7c7b\u578b\uff09\u7136\u540e\u63d2\u5165\u5230\u5b57\u7b26\u4e32\u91cc\u3002<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">import Base: show  show(io::IO, ::MIME\"text\/plain\", x::MyComplex) = print(io, \"$(x.real) + $(x.imag)im\")<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">9.\u4efb\u610f\u7cbe\u5ea6\u7684\u590d\u6570\u7c7b\u578b<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6211\u4eec\u5df2\u7ecf\u6709\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u590d\u6570\u7c7b\u578b\uff0c\u4f46\u662f\u5b9e\u9645\u4e0a\u771f\u6b63\u5728\u7528\u7684\u65f6\u5019\uff0c\u6211\u4eec\u53ef\u80fd\u4f1a\u9700\u8981\u4e0d\u540c\u7cbe\u5ea6\u7684\u590d\u6570\u7c7b\u578b\uff0c\u4f8b\u5982\u4f7f\u7528&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">32<\/span><\/code><span style=\"font-size: 15px;\">\u4f4d\u6d6e\u70b9\u7cbe\u5ea6\u7684\u590d\u6570\u7c7b\u578b\u3002\u4e3a\u4e86\u80fd\u591f\u4f7f\u7528\u4e0d\u540c\u7684\u590d\u6570\u7c7b\u578b\uff0c\u6211\u4eec\u9700\u8981\u4f7f\u7528\u53c2\u6570\u7c7b\u578b\uff0c\u800c\u590d\u6570\u7684\u5b9e\u90e8\u548c\u865a\u90e8\u90fd\u662f\u5b9e\u6570\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u9650\u5236\u5176\u7c7b\u578b\u8303\u56f4<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">struct MyComplex2{T &lt;: Real}  &nbsp; &nbsp;real::T  &nbsp; &nbsp;imag::T end<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u91ccReal\u662f\u81ea\u5e26\u7684\u62bd\u8c61\u7c7b\u578b\uff0c\u6211\u4eec\u4e4b\u540e\u4f1a\u8bb2\u4ec0\u4e48\u662f\u62bd\u8c61\u7c7b\u578b\u3002\u800cT\u5219\u662f\u4e00\u4e2a\u53c2\u6570\u3002\u53c2\u6570\u7c7b\u578b\u4e5f\u6709\u9ed8\u8ba4\u7684\u6784\u9020\u51fd\u6570\u3002<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">MyComplex2{Float32}(1.0f0, 2.0f0)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4f46\u662f\u5b9e\u9645\u4e0a\u4f60\u8fd8\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e9b\u81ea\u5df1\u7684\u6784\u9020\u51fd\u6570\uff0c\u5728 Julia \u91cc\u56e0\u4e3a\u662f\u6ca1\u6709<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">class<\/span><\/code><span style=\"font-size: 15px;\">\u7684\uff0c\u9664\u4e86<span style=\"font-size: 15px;font-weight: 600;\">\u6784\u9020\u51fd\u6570<\/span>\u4ee5\u5916\u7684\u65b9\u6cd5\u90fd\u4e0d\u80fd\u5199\u5728\u7c7b\u578b\u58f0\u660e\u5185\u90e8\u3002\u800c\u4e00\u65e6\u4f60\u5728\u7c7b\u578b\u58f0\u660e\u4e2d\u58f0\u660e\u4e86\u4e00\u4e2a\u81ea\u5df1\u7684\u6784\u9020\u51fd\u6570\uff0c<span style=\"font-size: 15px;font-weight: 600;\">\u9ed8\u8ba4\u7684\u6784\u9020\u5c06\u88ab\u8986\u76d6<\/span>\u3002\u6bd4\u5982\u8bd5\u8bd5\u4e0b\u9762\u8fd9\u4e2a\u4f8b\u5b50<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">struct MyComplex3{T &lt;: Real}  &nbsp; &nbsp;real::T  &nbsp; &nbsp;imag::T   &nbsp; &nbsp;MyComplex3(real::T) where {T &lt;: Real} = new{T}(real, 0) end  MyComplex3(1.0)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">10.\u5185\u3001\u5916\u90e8\u6784\u9020\u51fd\u6570<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5185\u90e8\u6784\u9020\u51fd\u6570\u5f80\u5f80\u662f\u4e3a\u4e86\u5728\u751f\u6210\u8fd9\u4e2a\u5b9e\u4f8b\u524d\u505a\u4e00\u4e9b\u9884\u5904\u7406\uff08\u4f8b\u5982\u5224\u65ad\u8f93\u5165\u53d8\u91cf\u662f\u5426\u7b26\u5408\u8981\u6c42\u7b49\uff09\u66f4\u8be6\u7ec6\u7684\u4f8b\u5b50\u8bf7\u53c2\u89c1\u6587\u6863<\/span><br  \/><\/p>\n<blockquote>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\">https:\/\/docs.julialang.org\/en\/latest\/manual\/constructors\/<\/p>\n<\/blockquote>\n<p style=\"max-width: 100%;color: rgb(51, 51, 51);line-height: 1.75em;\"><br  \/><\/p>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">11.\u591a\u91cd\u6d3e\u53d1\u548cJulia\u7684\u9762\u5bf9\u5bf9\u8c61<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u8bed\u8a00\u662f\u6ca1\u6709&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">class<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u7684\uff0c\u4f46\u8fd9\u5e76\u4e0d\u610f\u5473\u7740 Julia \u65e0\u6cd5\u9762\u5411\u5bf9\u8c61\uff0cJulia\u5bf9\u8c61\u7684\u65b9\u6cd5\uff08method\uff09\u901a\u8fc7&nbsp;<span style=\"font-size: 15px;font-weight: 600;\">\u591a\u91cd\u6d3e\u53d1<\/span>&nbsp;\u548c&nbsp;<span style=\"font-size: 15px;font-weight: 600;\">\u7c7b\u578b\u6811<\/span>&nbsp;\u8fdb\u884c\u5206\u914d\uff0c\u800c\u4e0d\u4f9d\u8d56\u4e8e&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">class<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u8fd9\u79cd\u7ed3\u6784\u3002\u4e0b\u9762\u8fd9\u4e00\u90e8\u5206\u4e0d\u4f1a\u5f71\u54cd\u4f60\u4f7f\u7528Julia\u7684\u591a\u91cd\u6d3e\u53d1\u7279\u6027\uff0c\u56e0\u4e3a\u5b83\u975e\u5e38\u7684\u76f4\u89c9\u5316\uff0c\u4f46\u662f\u5982\u679c\u4f60\u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762Python\u548cC++\u7684\u4f8b\u5b50\u4e86\u89e3\u5230\u5230\u5e95\u4ec0\u4e48\u662f\u591a\u91cd\u6d3e\u53d1\u548c\u5355\u91cd\u6d3e\u53d1\uff0c\u90a3\u4e48\u4e5f\u5c06\u662f\u975e\u5e38\u6709\u76ca\u7684\u3002<\/span><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u60f3\u4e86\u89e3\u4ec0\u4e48\u662f\u591a\u91cd\u6d3e\u53d1\uff0c\u6211\u4eec\u8981\u5148\u4ece<span style=\"font-size: 15px;font-weight: 600;\">\u5355\u91cd\u6d3e\u53d1\uff08single dispatch\uff09<\/span>&nbsp;\u8bf4\u8d77\uff0c\u5927\u90e8\u5206\u652f\u6301&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">class<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u7684\u8bed\u8a00\u90fd\u662f\u5355\u91cd\u6d3e\u53d1\uff0c\u6211\u518d\u7528&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">Python<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u4e3e\u4e2a\u4f8b\u5b50\uff0cPython 3.4\u6709\u4e00\u4e2a\u7684\u63d0\u6848\uff08<span style=\"font-size: 15px;border-bottom: 1px dashed gray;\">PEP 443<\/span>\uff09\u91cc\u6709\u4e00\u4e2a\u5bf9\u5355\u91cd\u6d3e\u53d1\u901a\u7528\u51fd\u6570\u7684\u63d0\u6848\uff1a<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">from functools import singledispatch  @singledispatch def fun(arg, verbose=Falase):  &nbsp; &nbsp;print(arg)  &nbsp; &nbsp; @fun.register(int) def _(arg, verbose=False):  &nbsp; &nbsp;print(arg)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6240\u8c13\u5355\u91cd\u6d3e\u53d1\u5c31\u662f\u53ea\u80fd\u6309\u7167\u51fd\u6570\u53c2\u6570\u7684\u4e00\u4e2a\u7c7b\u578b\u8fdb\u884c\u6d3e\u53d1\u65b9\u6cd5\uff0c\u4ece\u800c\u5b9e\u73b0\u591a\u6001\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u987e\u540d\u601d\u4e49\uff0c\u591a\u91cd\u6d3e\u53d1\u5c31\u662f\u6839\u636e\u6240\u6709\u53c2\u6570\u7684\u7c7b\u578b\u8fdb\u884c\u6d3e\u53d1\u65b9\u6cd5\u3002C++\u7684\u51fd\u6570\u91cd\u8f7d\u5176\u5b9e\u5c31\u662f\u4e00\u79cd\u9759\u6001\u7684\u591a\u91cd\u6d3e\u53d1\uff08static multiple dispatch\uff09\u3002\u4f46\u662f\u5230\u4e86\u52a8\u6001\u7c7b\u578b\u5c31\u4e0d\u884c\u4e86\uff0c\u6bd4\u5982\u4e0b\u9762\u8fd9\u4e2a\u6765\u81eaStackOverflow\u7684\u4f8b\u5b50<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">#include &lt;iostream&gt;  struct A {}; struct B : public A {};  class Foo { public:  &nbsp; &nbsp;virtual void wooo(A *a, A *b) { std::cout &lt;&lt; \"A\/A\" &lt;&lt; std::endl; };  &nbsp; &nbsp;virtual void wooo(A *a, B *b) { std::cout &lt;&lt; \"A\/B\" &lt;&lt; std::endl; }; };  void CallMyFn(Foo *p, A *arg1, A *arg2) {  &nbsp; &nbsp;p-&gt;wooo(arg1, arg2); }  int main(int argc, char const *argv[]) {  &nbsp; &nbsp;Foo *f = new Foo();  &nbsp; &nbsp;A *a = new A(); B *b = new B();  &nbsp; &nbsp;CallMyFn(f, a, b);  &nbsp; &nbsp;return 0; }<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd0\u884c\u4e0a\u9762\u7684&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">C++<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u4ee3\u7801\u5c06\u4f1a\u5f97\u5230<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">A\/A<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u800c\u6211\u4eec\u9884\u671f\u7684\u662f<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">A\/B<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u662f\u56e0\u4e3a&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">C++<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u53ea\u652f\u6301 Single Dispatch (\u591a\u91cd\u6d3e\u53d1\u5728\u63d0\u6848\u4e2d\uff1a<span style=\"font-size: 15px;border-bottom: 1px dashed gray;\">Report on language support for Multi-Methods and Open-Methods for C++<\/span>)\uff0c\u5bf9\u4e8e\u52a8\u6001\u7c7b\u578b\uff0c\u7f16\u8bd1\u5668\u53ea\u80fd\u901a\u8fc7&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">class<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u540d\u79f0\u51b3\u5b9a\u8c03\u7528\u7684\u65b9\u6cd5\uff0c\u5f53\u9700\u8981\u6839\u636e\u53c2\u6570\u7b49\u4fe1\u606f\u51b3\u5b9a\u65b9\u6cd5\u7684\u65f6\u5019\u5c31\u65e0\u80fd\u4e3a\u529b\u4e86\u3002\u6ce8\u610f\uff0c\u591a\u91cd\u6d3e\u53d1\u662f\u4e00\u4e2a\u52a8\u6001\u7c7b\u578b\u7684\u7279\u6027\uff0c\u8fd9\u91cc&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">A<\/span><\/code><span style=\"font-size: 15px;\">\uff0c<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">B<\/span><\/code><span style=\"font-size: 15px;\">\u90fd\u662f\u505a\u6210\u4e86\u52a8\u6001\u7c7b\u578b\uff0c\u4e8e\u51fd\u6570\u91cd\u8f7d\u4e0d\u540c\uff0c\u4e00\u4e9b\u7c7b\u4f3c\u4e8e\u591a\u91cd\u6d3e\u53d1\u5728<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">C++<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u4e2d\u5b9e\u9645\u4e0a\u662f\u51fd\u6570\u91cd\u8f7d\uff0c\u51fa\u73b0\u6b67\u4e49\uff08ambiguous\uff09\u662f\u7531\u4e8e&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">C++<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u7684\u9690\u5f0f\u7c7b\u578b\u8f6c\u6362\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u987e\u540d\u601d\u4e49\uff0c\u5c31\u662f\u4f1a\u6839\u636e\u6240\u6709\u7684\u53c2\u6570\u6765\u8fdb\u884c\u6d3e\u53d1\u3002\u4f8b\u5982\u8ba9\u6211\u4eec\u5728Julia\u91cc\u91cd\u65b0\u5b9e\u73b0<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">C++<\/span><\/code><span style=\"font-size: 15px;\">\u91cc\u7684\u4f8b\u5b50\uff0c\u6ce8\u610f\u7531\u4e8e Julia \u6ca1\u6709\u7ee7\u627f\uff0c\u6211\u4eec\u5728\u8fd9\u91cc\u7528\u62bd\u8c61\u7c7b\u578b\u4ee3\u66ff\u3002Julia\u4f1a\u5339\u914d\u53c2\u6570\u7c7b\u578b\u6700\u7b26\u5408\u7684\u65b9\u6cd5\uff0c\u7136\u540e\u8c03\u7528\u3002\u5728Julia\u91cc\uff0c\u7531\u4e8eJulia\u672c\u8eab\u662f\u52a8\u6001\u8bed\u8a00\uff0c\u51fd\u6570\u7684\u91cd\u8f7d\uff08overload\uff09\u4e0e\u591a\u91cd\u6d3e\u53d1\u662f\u4e00\u4e2a\u610f\u601d\uff0c\u4f46\u662f\u5b9e\u9645\u4e0aJulia\u7684\u6d3e\u53d1\u4f1a\u53d1\u751f\u5728\u8fd0\u884c\u65f6\u548c\u7f16\u8bd1\u65f6\uff0c\u800c\u8fd9\u5728\u5f88\u5c11\u7684\u60c5\u51b5\u4e0b\u6709\u53ef\u80fd\u5f71\u54cd\u6027\u80fd\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">abstract type TypeA end  struct TypeB &lt;: TypeA end struct TypeC &lt;: TypeA end  wooo(a1::TypeA, a2::TypeA) = println(\"A\/A\") wooo(a::TypeA, b::TypeB) = println(\"A\/B\")  callme(a1::TypeA, a2::TypeA) = wooo(a1, a2)  b = TypeB(); c = TypeC(); callme(c, b)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728Julia\u91cc\uff0c\u4e0a\u9762\u7684 wooo\u79f0\u4e3a\u4e00\u4e2a\u901a\u7528\u51fd\u6570\uff08generic function\uff09\u800c\u5bf9\u67d0\u4e9b\u7c7b\u578b\u7684\u5177\u4f53\u5b9e\u73b0\uff0c\u4f8b\u5982<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">wooo(a1::TypeA, a2::TypeA) = println(\"A\/A\")<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u79f0\u4e3a method\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e0b\u9762\u6765\u8bf4\u8bf4Julia\u7684\u7c7b\u578b\u7cfb\u7edf\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">12.\u7c7b\u578b\u7cfb\u7edf<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u7684\u7c7b\u578b\u4e3b\u8981\u5206\u4e3a\u62bd\u8c61\u7c7b\u578b\uff08Abstract Type\uff09\u548c\u5b9e\u4f53\u7c7b\u578b\uff08Concrete Type\uff09\uff0c\u5b9e\u4f53\u7c7b\u578b\u4e3b\u8981\u5206\u4e3a\u53ef\u53d8\u7c7b\u578b\uff08Mutable Type\uff09\u548c\u4e0d\u53ef\u53d8\u7c7b\u578b\uff08Immutable Type\uff09<\/span><br  \/><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">abstract type AbstractType end  struct ImmutableType &lt;: AbstractType end  mutable struct MutableType &lt;: AbstractType end<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u62bd\u8c61\u7c7b\u578b\u4f7f\u7528 abstract type \u5173\u952e\u5b57 \u5339\u914d end\u58f0\u660e\u3002\u9ed8\u8ba4\u7684\u5408\u6210\u7c7b\u578b\u90fd\u662f\u4e0d\u53ef\u53d8\u7c7b\u578b\uff0c\u4f7f\u7528 struct \u642d\u914d end \u58f0\u660e\u3002\u800c\u53ef\u53d8\u7c7b\u578b\u5728 struct \u524d\u9762\u589e\u52a0 mutable \u5173\u952e\u5b57\u5373\u53ef\u3002\u67d0\u4e2a\u5b9e\u4f53\u7c7b\u578b\uff08concrete type\uff09\u662f\u53e6\u5916\u4e00\u4e2a\u62bd\u8c61\u7c7b\u578b\uff08abstract type\uff09\u6216\u8005\u62bd\u8c61\u7c7b\u578b\u662f\u53e6\u5916\u4e00\u4e2a\u62bd\u8c61\u7c7b\u578b\u7684<span style=\"font-size: 15px;font-weight: 600;\">\u5b50\u7c7b<\/span>\uff0c\u8fd9\u6837\u7684\u5173\u7cfb\u4f7f\u7528 &lt;: \u6765\u58f0\u660e\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e00\u4e2a\u62bd\u8c61\u7c7b\u578b\u7684\u6240\u6709\u5b50\u7c7b\u578b\u4f1a\u6784\u6210\u4e00\u9897\u6811\uff0c\u5176\u4e2d\u5b9e\u4f53\u7c7b\u578b\u4e00\u5b9a\u5728\u6811\u7684\u53f6\u5b50\u7ed3\u70b9\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4e0b\u9762\u8fd9\u4e2a&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">view_tree<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u51fd\u6570\u4f1a\u5bf9\u4e00\u9897\u7c7b\u578b\u6811\u8fdb\u884c\u6df1\u5ea6\u4f18\u5148\u904d\u5386\uff08DFS\uff09<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">using InteractiveUtils # 0.7 \u4e4b\u540e\u9700\u8981\u8c03\u7528\u8fd9\u4e2a\u6807\u51c6\u5e93  function view_tree(T, depth=0)  &nbsp; &nbsp;println(\" &nbsp;\"^depth, T)  &nbsp; &nbsp;for each in subtypes(T)  &nbsp; &nbsp; &nbsp; &nbsp;view_tree(each, depth+1)  &nbsp; &nbsp;end end  view_tree(AbstractType)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd0\u884c\u4f1a\u5f97\u5230AbstractType\u4f5c\u4e3a\u7236\u8282\u70b9\u7684\u7c7b\u578b\u6811<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">AbstractType  &nbsp;ImmutableType  &nbsp;MutableType<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u518d\u770b\u4e00\u4e2a\u590d\u6742\u4e00\u4e9b\u7684\u4f8b\u5b50\uff08\u81ea\u5df1\u8fd0\u884c\u4e00\u4e0b\u8bd5\u8bd5\uff09\uff1a<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">abstract type AbstractAnimal end  abstract type AbstractBird &lt;: AbstractAnimal end abstract type AbstractDog &lt;: AbstractAnimal end abstract type AbstractCat &lt;: AbstractAnimal end  struct Sparrow &lt;: AbstractBird end struct Kitty &lt;: AbstractCat end struct Snoope &lt;: AbstractDog end  view_tree(AbstractAnimal)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u800cJulia\u5728\u5206\u53d1\u4e00\u4e2a\u51fd\u6570\u7684\u65b9\u6cd5\u7684\u65f6\u5019\uff0c\u4f1a\u5c3d\u53ef\u80fd\u5339\u914d\u6700\u5177\u4f53\u7684\u7c7b\u578b\uff0c\u4e5f\u5c31\u662f\u5c3d\u53ef\u80fd\u5339\u914d\u8fd9\u9897\u6811\u7684\u53f6\u5b50\u7ed3\u70b9\u3002\u601d\u8003\u4e00\u4e0b\u4e0b\u9762\u8fd9\u6bb5\u4ee3\u7801\u7684\u8fd0\u884c\u7ed3\u679c<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">combine(a::AbstractAnimal, b::AbstractAnimal, c::AbstractAnimal) = \"three animals get together!\" # method 1 combine(a::Sparrow, b::AbstractCat, c::AbstractAnimal) = \"a sparrow, a cat and some animal\" # method 2  combine(Sparrow(), Kitty(), Sparrow()) # \u8fd9\u4e2a\u4f1a\u5339\u914d\u65b9\u6cd52<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7c7b\u578b\u5728 Julia \u91cc\u662f\u975e\u5e38\u5ec9\u4ef7\u7684\uff0c\u5229\u7528\u591a\u91cd\u6d3e\u53d1\u548c\u5ec9\u4ef7\u7684\u7c7b\u578b\uff0c\u6211\u4eec\u53ef\u4ee5\u9488\u5bf9\u6570\u5b66\u5bf9\u8c61\u5b9e\u73b0\u66f4\u8be6\u7ec6\u7684\u4f18\u5316\uff0c\u4f8b\u5982\u5bf9\u4e8e\u6ee1\u8db3\u4e0d\u540c\u6027\u8d28\u7684\u77e9\u9635\uff0c\u6211\u4eec\u6709\u5bf9\u5b83\u4eec\u4e4b\u95f4\u4e92\u76f8\u4e58\u79ef\u7684\u4f18\u5316\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06\u90e8\u5206\u64cd\u4f5c\u4f5c\u4e3a\u61d2\u60f0\u6c42\u503c\uff08Lazy Evaluation\uff09\u52a0\u5165\u8fd0\u7b97\u4e2d\uff0c\u7136\u540e\u518d\u4e3a\u6ee1\u8db3\u4e0d\u540c\u6027\u8d28\u7684\u77e9\u9635\u6d3e\u53d1\u7cbe\u7ec6\u7684\u4f18\u5316\u65b9\u6cd5\uff1a<\/span><\/p>\n<ul style=\"\" class=\"list-paddingleft-2\">\n<li>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5bf9\u6ee1\u8db3 ATA=I \u7684\u77e9\u9635\uff0c\u5982\u679c\u9047\u5230\u4e86\u81ea\u5df1\u7684\u8f6c\u7f6e\u53ef\u4ee5\u4ec0\u4e48\u90fd\u4e0d\u7b97<\/span><\/p>\n<\/li>\n<li>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5bf9\u6ee1\u8db3\u4e0a\u4e09\u89d2\u7684\u77e9\u9635\uff08\u6216\u8005\u4e0b\u4e09\u89d2\u77e9\u9635\uff09\uff0c\u5728\u4e00\u4e9b\u77e9\u9635\u5206\u89e3\u7b49\u64cd\u4f5c\u7684\u65f6\u5019\u53ef\u4ee5\u8c03\u7528\u66f4\u5feb\u7684\u6570\u503c\u65b9\u6cd5<\/span><\/p>\n<\/li>\n<li>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u800c\u5bf9\u4e8e\u5355\u4f4d\u77e9\u9635\uff0c\u6211\u4eec\u603b\u53ef\u4ee5\u4ec0\u4e48\u90fd\u4e0d\u7b97<\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5b9e\u9645\u4e0aJulia\u5728\u6807\u51c6\u5e93\u91cc\u5df2\u7ecf\u8fd9\u4e48\u505a\u4e86 \uff08\u867d\u7136\u5b9e\u9645\u4e0a\u4f9d\u7136\u8fd8\u6709\u66f4\u591a\u7684\u7279\u6b8a\u77e9\u9635\uff0c\u4f60\u4e5f\u8bb8\u53ef\u4ee5\u5728<span style=\"font-size: 15px;border-bottom: 1px dashed gray;\">JuliaArrays<\/span>&nbsp;\u91cc\u627e\u5230\u4f60\u9700\u8981\u7684\u77e9\u9635\u7c7b\u578b\uff09\uff0c\u4e0d\u540c\u7c7b\u578b\u7684\u77e9\u9635\u4f1a\u88ab\u6d3e\u53d1\u5230\u4e0d\u540c\u7c7b\u578b\u7684\u65b9\u6cd5\u4e0a\u53bb\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8bd5\u8bd5\u5bf9Julia\u81ea\u5e26\u7684\u62bd\u8c61\u7c7b\u578b AbstractMatrix \u8fd0\u884c\u8fd9\u4e2a\u4ee3\u7801<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">view_tree(AbstractMatrix)<\/span><\/code><\/p><\/pre>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<p style=\"color: rgb(51, 51, 51);max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br  \/><\/p>\n<\/section>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u6709\u8fd9\u6837\u7684\u7279\u70b9\uff1a<span style=\"font-size: 15px;font-weight: 600;\">\u5ec9\u4ef7\u7684\u7c7b\u578b<\/span>\u548c<span style=\"font-size: 15px;font-weight: 600;\">\u591a\u91cd\u6d3e\u53d1<\/span>+<span style=\"font-size: 15px;font-weight: 600;\">\u7c7b\u578b\u6811<\/span>\u7684\u7ed3\u6784\uff0c\u6211\u4eec\u53ef\u4ee5<span style=\"font-size: 15px;font-weight: 600;\">\u7ee7\u627f\u7c7b\u578b\u7684\u884c\u4e3a\uff08behavior\uff09<\/span>\u800c\u4e0d\u80fd<span style=\"font-size: 15px;font-weight: 600;\">\u7ee7\u627f\u7c7b\u578b\u7684\u6210\u5458<\/span>\uff0c\u800c\u591a\u91cd\u6d3e\u53d1\u8ba9\u6240\u6709Julia\u7c7b\u578b\u5f88\u81ea\u7136\u5730\u53d8\u6210\u4e86\u9e2d\u5b50\u7c7b\u578b\uff08Duck Type\uff09\uff0c\u6211\u4eec\u53ea\u8981\u5b9a\u4e49\u597d\u4e0d\u540c\u7684<span style=\"font-size: 15px;font-weight: 600;\">\u63a5\u53e3<\/span>\/<span style=\"font-size: 15px;font-weight: 600;\">interface<\/span>\u5c31\u8db3\u4ee5\u5b9a\u4e49\u7c7b\u578b\u7684\u884c\u4e3a\u3002<\/span><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5b9e\u9645\u4e0a\u7531\u4e8e\u4e25\u683c\u4fdd\u6301\u4e86\u6811\u7684\u7ed3\u6784\uff0cJulia\u4e5f\u4e0d\u5141\u8bb8\u591a\u91cd\u7ee7\u627f\uff0c\u4e5f\u4e0d\u5b58\u5728\u6df7\u5165\uff08mixin\uff09\u8fd9\u6837\u7684\u8bbe\u8ba1\u6a21\u5f0f\uff0c\u8fd9\u907f\u514d\u4e86<span style=\"font-size: 15px;font-weight: 600;\">\u94bb\u77f3\u7ee7\u627f\u7684\u95ee\u9898<\/span>\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9700\u8981\u8bf4\u660e\u7684\u662f\uff0c\u4ee5\u4e0a\u4ec5\u4ec5\u662fJulia\u7684\u7279\u70b9\uff0c\u5b83\u5e26\u6765\u4e86\u4e00\u4e9b\u597d\u5904\uff0c\u4e5f\u540c\u65f6\u5e26\u6765\u4e86\u4e00\u4e9b\u7f3a\u70b9\u3002\u9650\u4e8e\u7bc7\u5e45\u6682\u4e14\u4e0d\u8868\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u95ee\u9898\uff1a\u60f3\u60f3\u8fd9\u51e0\u79cd&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">rand<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u7684\u63a5\u53e3\uff0c\u4f8b\u5982&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">rand(1:10)<\/span><\/code><span style=\"font-size: 15px;\">\uff0c<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">rand(Bool)<\/span><\/code><span style=\"font-size: 15px;\">,&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">rand(Bool, 2, 2)<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u7b49\u662f\u600e\u4e48\u5b9e\u73b0\u7684\uff1f<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">13.\u5728Julia\u91cc\u8c03\u7528Python<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728\u5f53\u4e0b\uff0c\u5982\u679c\u6709\u4eba\u8bf4\u653e\u5f03 Python \u90a3\u4e00\u5b9a\u662f\u4e00\u4e2a\u5f88\u611a\u8822\u7684\u51b3\u5b9a\uff0c\u6b63\u5982\u5f00\u5934\u6240\u8bf4\uff0cPython \u548c Julia \u5404\u81ea\u6709\u5176\u4f18\u7f3a\u70b9\uff0c\u800c\u6211\u4eec\u5728\u8fc1\u79fb\u5230 Julia \u4e4b\u540e\u4f9d\u7136\u53ef\u4ee5\u8c03\u7528\u6211\u4eec\u7684\u4e00\u4e9b\u5386\u53f2\u4f9d\u8d56\uff0c\u5e76\u4e14\u4e5f\u4f9d\u7136\u53ef\u4ee5\u5c06\u65b0\u5199\u7684\u66f4\u5feb\u66f4\u7b80\u5355\u7684\u4ee3\u7801\u4f5c\u4e3a Python \u7684\u5305\u63d0\u4f9b\u7ed9 Python \u793e\u533a\u3002\u6240\u4ee5\u4f60\u53ef\u4ee5\u9009\u62e9<\/span><br  \/><\/p>\n<ul style=\"\" class=\"list-paddingleft-2\">\n<li>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7528Julia\u7ed9Python\u52a0\u901f<\/span><\/p>\n<\/li>\n<li>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6574\u4f53\u8fc1\u79fb\u5230Julia\u4e0a\u6765\uff0c\u4f46\u662f\u8c03\u7528\u81ea\u5df1\u7684\u5386\u53f2\u4ee3\u7801\u3002<\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u4e3b\u8981\u9700\u8981\u4f9d\u8d56\u4e8e\u4e24\u4e2a\u5305\uff1a<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">PyCall.jl<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u548c&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">pyjulia<\/span><\/code><span style=\"font-size: 15px;\">\u3002\u8fd9\u4e00\u90e8\u5206\u6211\u4eec\u4e3b\u8981\u8bb2&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">PyCall.jl<\/span><\/code><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u76ee\u524dPyCall\u8fd8\u6ca1\u6709\u66f4\u65b0\u52301.0\u4f46\u662f\u57280.6\u548c0.7\u90fd\u662f\u6ca1\u6709\u95ee\u9898\u7684\u3002\u5982\u679c\u4f60\u6ca1\u6709\u5b89\u88c5&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">PyCall<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u6a21\u5757\uff0c\u8bf7\u4f7f\u7528Julia\u7684\u5305\u7ba1\u7406\u5668\u5b89\u88c5&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">PyCall<\/span><\/code><span style=\"font-size: 15px;\">\uff0c\u5982\u679c\u4f60\u7684\u73af\u5883\u91cc\u6ca1\u6709\u5b89\u88c5&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">python<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u6216\u8005\u4e0d\u5728\u6807\u51c6\u8def\u5f84\u4e2d\uff0c\u90a3\u4e48Julia\u5c06\u4f1a\u4e0b\u8f7d\u4e00\u4e2a miniconda \u6765\u5b89\u88c5 python \u73af\u5883\u3002\u5982\u679c\u4f60\u60f3\u4f7f\u7528\u4f60\u5df2\u7ecf\u5b89\u88c5\u7684&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">python<\/span><\/code><span style=\"font-size: 15px;\">\uff0c\u8bf7\u5728Julia\u7684\u73af\u5883\u53d8\u91cf&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">ENV<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u4e2d\u8bbe\u7f6e&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">python<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u8def\u5f84\uff1a<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">julia&gt; ENV[\"PYTHON\"] = \"... python \u8def\u5f84 ...\"  julia&gt; Pkg.build(\"PyCall\")<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5b89\u88c5\u597d\u4e4b\u540e&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">PyCall<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u7684\u4f7f\u7528\u65b9\u6cd5\u548c\u539f\u751f Python \u7684\u8bed\u6cd5\u5f88\u63a5\u8fd1 \uff08\u591a\u4e8f\u4e86Julia\u7684\u5b8f\uff01\uff09<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">using PyCall  @pyimport numpy as np  np.zeros(10)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u81ea\u5e26\u7684\u591a\u7ef4\u6570\u7ec4\u7c7b\u578b&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">Array<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u548c&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">numpy<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u53ef\u4ee5\u5171\u4eab\u4e00\u5757\u5185\u5b58\uff0c\u6240\u4ee5\u5f53\u4f7f\u7528&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">numpy<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u5728 Python \u4e2d\u5f97\u5230\u4e86\u4e00\u4e2a&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">numpy.ndarray<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u540e\u5728Julia\u91cc\u4f1a\u770b\u5230\u4e00\u4e2a\u65b0\u7684&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">Array<\/span><\/code><span style=\"font-size: 15px;\">\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9664\u4e86\u50cf&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">@pyimport<\/span><\/code><span style=\"font-size: 15px;\">,&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">@pydef<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u8fd9\u6837\u7684\u5b8f\u4ee5\u5916\uff0c\u548c\u5176\u5b83FFI\uff08\u5916\u90e8\u51fd\u6570\u63a5\u53e3\uff09\u7684\u6a21\u5757\u4e00\u6837\uff0c<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">PyCall<\/span><\/code><span style=\"font-size: 15px;\">\u4e5f\u6709python\u7684\u5b57\u7b26\u4e32\u5b57\u9762\u91cf\uff0c\u5b83\u5c06\u4f1a\u6267\u884c\u4e00\u884cpython\u4ee3\u7801\/\u6216\u8005\u5728&nbsp;<\/span><code style=\"margin-right: 2px;margin-left: 2px;padding: 3px 4px;border-radius: 3px;\"><span style=\"font-size: 15px;\">__main__<\/span><\/code><span style=\"font-size: 15px;\">&nbsp;\u6a21\u5757\u91cc\u6267\u884c\u4e00\u6bb5 Python \u4ee3\u7801\uff0c\u7136\u540e\u5c06\u5176\u8f6c\u6362\u4e3aJulia\u5bf9\u8c61\u3002\u8bd5\u8bd5\u8fd9\u4e2a<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">py\"sum([1, 2, 3])\"<\/span><\/code><\/p><\/pre>\n<p><br  \/><\/p>\n<h2 style=\"margin-bottom: 0.83333em;line-height: 1.75em;\"><span style=\"font-size: 15px;\">Julia\u7684\u5143\u7f16\u7a0b\uff08\u770b\u4e0d\u61c2\u4e5f\u6ca1\u5173\u7cfb\uff09<\/span><\/h2>\n<p style=\"max-width: 100%;color: rgb(51, 51, 51);line-height: 1.75em;\"><br  \/><\/p>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">14.Julia\u7684\u5143\u7f16\u7a0b<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4f5c\u4e3a\u4e00\u4e2a\u5177\u6709Lisp\u8840\u7edf\u7684\u8bed\u8a00\uff0c\u5143\u7f16\u7a0b\u662f\u7ed5\u4e0d\u8fc7\u53bb\u7684\u8bdd\u9898\u3002\u4f46\u662fJulia\u5728\u5b8f\u4e0a\u7684\u7ee7\u627f\u5176\u5b9e\u662f\u76f8\u5bf9\u514b\u5236\u7684\u3002\u5143\u7f16\u7a0b\u5c5e\u4e8e\u6bd4\u8f83\u6df1\u5165\u7684\u5185\u5bb9\uff0c\u8fd9\u91cc\u6211\u53ea\u4f1a\u7b80\u5355\u5730\u4ecb\u7ecd\u4e00\u4e0b\uff0c\u60f3\u8981\u6df1\u5165\u4e86\u89e3\u53ef\u4ee5\u770b\u770b\u6587\u6863\u548cLazy.jl\u8fd9\u4e2a\u975e\u5e38\u7b80\u5355\u7684\u5e93\u662f\u600e\u4e48\u5b9e\u73b0\u7684\uff0c\u8fd9\u90e8\u5206\u770b\u4e0d\u61c2\u4e0d\u4f1a\u5f71\u54cd\u4f60\u7684\u4f7f\u7528\u3002<\/span><\/p>\n<p style=\"max-width: 100%;color: rgb(51, 51, 51);line-height: 1.75em;\"><br  \/><\/p>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">15.\u4e00\u5207\u90fd\u662f\u8868\u8fbe\u5f0f<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728Julia\u91cc\uff0c\u6240\u6709\u7684\u4e1c\u897f\u4e0d\u4ec5\u4ec5\u53ef\u4ee5\u662f<span style=\"font-size: 15px;font-weight: 600;\">\u5bf9\u8c61<\/span>\uff0c\u4ed6\u4eec\u4e5f\u90fd\u662f<span style=\"font-size: 15px;font-weight: 600;\">\u8868\u8fbe\u5f0f<\/span>\uff0c\u5f53\u7136<span style=\"font-size: 15px;font-weight: 600;\">\u8868\u8fbe\u5f0f<\/span>\u4e5f\u662f<span style=\"font-size: 15px;font-weight: 600;\">\u5bf9\u8c61<\/span>\u3002\u4e5f\u8bb8\u4f60\u4e00\u5f00\u59cb\u8fd8\u5728\u8ba8\u538cJulia\u7684 end \u4e0d\u591f\u7b80\u6d01\uff0c\u4f46\u662f\u5b66\u4e86\u8fd9\u4e00\u90e8\u5206\uff0c\u4f60\u5c31\u4f1a\u53d1\u73b0 end \u5173\u952e\u5b57\u7684\u5999\u5904\u4e86\u3002<\/span><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728 Julia \u91cc\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u8bed\u8a00\u672c\u8eab\u7684\u8bed\u6cd5\u6765\u5904\u7406 Julia \u81ea\u5df1\u7684\u8868\u8fbe\u5f0f\uff0c\u8fd9\u88ab\u79f0\u4e3a\u5143\u7f16\u7a0b\uff08Meta Programming\uff09\uff0c\u90a3\u4e48\u5143\u7f16\u7a0b\u6709\u4ec0\u4e48\u7528\u5462\uff1f<\/span><\/p>\n<ul style=\"\" class=\"list-paddingleft-2\">\n<li>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4ee3\u7801\u751f\u6210\uff0c\u4ea7\u751f\u66f4\u52a0\u9ad8\u6548\u7684\u4ee3\u7801\uff08\u4f4e\u62bd\u8c61\u7684\u4ee3\u7801\uff09<\/span><\/p>\n<\/li>\n<li>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u9884\u5904\u7406\u8868\u8fbe\u5f0f\uff0c\u63d0\u9ad8\u4ee3\u7801\u53ef\u8bfb\u6027\uff08\u4f8b\u5982\u5b9e\u73b0\u4e00\u4e2aDSL\uff09<\/span><\/p>\n<\/li>\n<li>\n<p style=\"line-height: 1.75em;\"><span style=\"font-size: 15px;\">etc.<\/span><\/p>\n<\/li>\n<\/ul>\n<p style=\"line-height: 1.75em;\"><br  \/><\/p>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">16.\u5b9a\u4e49\u81ea\u5df1\u7684\u5b57\u7b26\u4e32\u5b57\u9762\u91cf<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5b57\u7b26\u4e32\u7684\u5b57\u9762\u91cf\u662f\u533a\u5206\u4e0d\u540c\u7c7b\u578b\u7684\u5b57\u7b26\u4e32\u7684\u4e00\u79cd\u975e\u5e38\u65b9\u4fbf\u7684\u65b9\u6cd5\uff0c\u5728Python\u91cc\uff0c\u6211\u4eec\u6709\u6b63\u5219\u8868\u8fbe\u5f0f\u5b57\u9762\u91cf r&#8221;(.*)&#8221;\uff0c\u683c\u5f0f\u5316\u5b57\u9762\u91cf f&#8221;hello {who}&#8221;\u3002\u800c\u5728Julia\u91cc\uff0c\u5219\u53ef\u4ee5\u901a\u8fc7\u5b8f\u5b9a\u4e49\u81ea\u5df1\u7684\u5b57\u7b26\u4e32\u5b57\u9762\u91cf\uff0c\u53ea\u9700\u58f0\u660e\u4ee5 _str \u4e3a\u7ed3\u5c3e\u7684\u5b8f\u5373\u53ef\u3002<\/span><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8bd5\u8bd5\u8fd9\u6bb5\u4ee3\u7801<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">struct MyStr &lt;: AbstractString  &nbsp; &nbsp;data::String end  Base.show(io::IO, s::MyStr) = print(io, \"My String is: \", s.data)  macro my_str(s)  &nbsp; MyStr(s) &nbsp; &nbsp; end  my\"hello!\"<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fd9\u5927\u5927\u65b9\u4fbf\u4e86\u9700\u8981\u505a\u5927\u91cf\u5b57\u7b26\u4e32\u5904\u7406\u7684\u4efb\u52a1\uff0c\u4f8b\u5982\u751f\u7269\u4fe1\u606f\u7b49\u3002\u6b64\u5916\u8fd9\u4e5f\u4f7f\u5f97Julia\u5f88\u5bb9\u6613\u5728\u6587\u6863\u91cc\u652f\u6301LaTeX\uff0cMarkdown\u7b49\u591a\u79cd\u4e0d\u540c\u7684\u683c\u5f0f\uff0c\u5e76\u4e14\u6309\u7167\u7edf\u4e00\u7684\u63a5\u53e3\uff08Interface\uff09\u7ed9\u5b83\u4eec\u6d3e\u53d1\u4e0d\u540c\u7684\u65b9\u6cd5\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8bd5\u8bd5\u81ea\u5e26\u7684markdown string literal \uff08markdown\u5b57\u7b26\u4e32\u5b57\u9762\u91cf\uff09<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">import Base.Markdown: @md_str  md\"\"\" # Header 1 ## Header 2 ### Header 3 #### Header 4 \"\"\"<\/span><\/code><\/p><\/pre>\n<p style=\"max-width: 100%;color: rgb(51, 51, 51);line-height: 1.75em;\"><br  \/><\/p>\n<p style=\"max-width: 100%;color: rgb(51, 51, 51);line-height: 1.75em;\"><br  \/><\/p>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">17.\u5982\u4f55\u83b7\u5f97Julia\u7684\u8868\u8fbe\u5f0f<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5728Julia\u91cc\u83b7\u5f97\u8868\u8fbe\u5f0f\u7684\u65b9\u6cd5\u88ab\u79f0\u4e3a\u5f15\u7528\uff08quote\uff09\uff0c\u53ef\u4ee5\u6709\u4e24\u79cd\u65b9\u6cd5\u8fdb\u884c\u5f15\u7528<\/span><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5bf9\u4e8e\u77ed\u5c0f\u7684\u8868\u8fbe\u5f0f\u4f7f\u7528<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u8fdb\u884c\u5f15\u7528\uff1a<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">ex = :(a + b)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5bf9\u4e8e\u5927\u6bb5\u7684\u8868\u8fbe\u5f0f\uff0c\u4f7f\u7528quote\u5173\u952e\u5b57\u8fdb\u884c\u5f15\u7528<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">quote  &nbsp; &nbsp;a + b  &nbsp; &nbsp;b + c end<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5230\u4e86\u8fd9\u91cc\u4f60\u4e5f\u8bb8\u5df2\u7ecf\u53d1\u73b0\u4e86\uff0c\u5b9e\u9645\u4e0a\u4efb\u4f55\u4e00\u90e8\u5206Julia\u4ee3\u7801\u90fd\u662f\u8868\u8fbe\u5f0f\uff0c\u800c\u4e0d\u540c\u7684\u8868\u8fbe\u5f0f\u6709\u4e0d\u540c\u7684tag\u800c\u6b63\u662f\u56e0\u4e3a\u4f7f\u7528\u4e86end\u624d\u80fd\u591f\u548c\u5404\u79cd\u4e0d\u540c\u7684\u4ee3\u7801\u5757\u8fdb\u884c\u5339\u914d\u3002\u4f8b\u5982\u5b9e\u9645\u4e0a\u51fd\u6570\u5173\u952e\u5b57function\u548cend\u672c\u8eab\u5b9a\u4e49\u4e86\u4e00\u4e2a\u4ee3\u7801\u5757<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">ex = quote  &nbsp; &nbsp;function foo()  &nbsp; &nbsp; &nbsp; &nbsp;println()  &nbsp; &nbsp;end end  ex.args<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u6240\u6709\u7684\u8868\u8fbe\u5f0f\u90fd\u662fExpr\uff0cQuoteNode\uff0cSymbol\u4e09\u79cd\u7c7b\u578b\u4e4b\u4e00\u3002<\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);\"><br  \/><\/p>\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">18.\u7528\u5b8f\u5b9e\u73b0\u51fd\u6570\u7684\u5408\u6210<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p><br  \/><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5f53\u6211\u4eec\u6709\u5f88\u591a\u4e2a\u51fd\u6570\u5d4c\u5957\u8c03\u7528\u7684\u65f6\u5019\u4f1a\u9700\u8981\u6253\u5f88\u591a\u62ec\u53f7\uff0c\u73b0\u5728\u60f3\u8981\u6bd4\u8f83\u65b9\u4fbf\u5730\u7528\u7a7a\u683c\u8868\u793a\u51fd\u6570\u5408\u6210\u4f8b\u5982\uff1ag f k l \u21d2 g(f(k(l(x))))\uff0c\u6211\u4eec\u5c06\u5728\u8fd9\u91cc\u5b9e\u73b0\u4e00\u4e2a\u975e\u5e38\u7b80\u5355\u7684\uff08\u5355\u53d8\u91cf\uff09\u51fd\u6570\u5408\u6210\u7684\u5b8f @&gt;<\/span><br  \/><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">fa(x) = (println(\"call a\"); x) fb(x) = (println(\"call b\"); x) fc(x) = (println(\"call c\"); x)  macro &gt;(fs...)  &nbsp; &nbsp;fs end<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u4f7f\u7528@macroexpand\u67e5\u770b\u4f60\u7684\u5b8f\u6240\u4ea7\u751f\u7684\u8868\u8fbe\u5f0f<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">@macroexpand @&gt; fa fb fc # =&gt; x-&gt;fa(fb(fc(x)))<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u7136\u540e\u60f3\u60f3\u8fd9\u4e2a\u4ee3\u7801\u662f\u4ec0\u4e48\u610f\u601d\uff1f\u8fd9\u91cc\u7684 $ \u4e5f\u662f\u63d2\u5165\u53e6\u5916\u4e00\u4e2a\u8868\u8fbe\u5f0f\u7684\u610f\u601d<\/span><\/p>\n<pre style=\"margin-top: 0px;margin-bottom: 0px;padding: 0.88889em;font-size: 0.9em;word-wrap: normal;overflow: auto;border-radius: 4px;background-color: rgb(246, 246, 246);\"><p style=\"line-height: 1.75em;\"><code class=\"language-text\" style=\"border-radius: 0px;\"><span style=\"font-size: 15px;\">macro &gt;(fs...)  &nbsp; &nbsp;ex = :($(last(fs))(x))  &nbsp; &nbsp;for f in reverse(fs[1:end-1])  &nbsp; &nbsp; &nbsp; &nbsp;ex = :($f($ex))  &nbsp; &nbsp;end  &nbsp; &nbsp;:(x-&gt;$ex) end  f = @&gt; fa fb fc f(2)<\/span><\/code><\/p><\/pre>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-top: 1em;margin-bottom: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u770b\u770b\u662f\u4e0d\u662f\u6210\u529f\u4e86\uff01<\/span><\/p>\n<p style=\"margin-top: 1em;color: rgb(26, 26, 26);line-height: 1.75em;\"><span style=\"font-size: 15px;\">\u5b9e\u9645\u4e0a\uff0c\u4f5c\u4e3a\u4e00\u4e2a<span style=\"font-size: 15px;font-weight: 600;\">\u591a\u8303\u5f0f<\/span>\u7684\u7f16\u7a0b\u8bed\u8a00\uff0cJulia\u672c\u8eab\u662f\u652f\u6301\u51fd\u6570\u5f0f\u7f16\u7a0b\u7684\uff0c\u800c\u51fd\u6570\u5f0f\u7f16\u7a0b\u5e38\u5e38\u4f1a\u4f7f\u7528Lazy\u8fd9\u4e2a\u5305\uff0c\u91cc\u9762\u5199\u597d\u4e86\u66f4\u52a0\u5f3a\u5927\u7684\u7528\u4e8e\u51fd\u6570\u5408\u6210\u7684\u5b8f@&gt;\uff0c\u5b83\u652f\u6301\u591a\u53d8\u91cf\u51fd\u6570\u7684\u5408\u6210\u3002<\/span><\/p>\n<p><br  \/><\/p>\n<section class=\"\"    style=\"max-width: 100%;color: rgb(51, 51, 51);\">\n<section  style=\"margin-top: 20px;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">\u63a8\u8350\u8bfe\u7a0b<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br  \/><\/p>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br  \/><\/p>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br  \/><\/p>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br  \/><\/p>\n<\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;color: rgb(51, 51, 51);\"><span style=\"max-width: 100%;font-size: 18px;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/span><\/p>\n<blockquote>\n<p style=\"text-align: left;\"><span style=\"text-align: center;font-size: 18px;\">https:\/\/campus.swarma.org\/gcou=388<\/span><\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<p style=\"text-align: center;\"><img class=\"\"      style=\"\" src=\"http:\/\/swarma.org\/wp-content\/uploads\/2018\/08\/swarma9-1534399165.jpg\" alt=\"\u96c6\u667aAI\u5b66\u56ed\" title=\"\u96c6\u667aAI\u5b66\u56ed\"  \/><\/p>\n<p style=\"text-align: left;\"><span style=\"color: rgb(26, 26, 26);font-size: 15px;\">\u8be5\u6559\u7a0b\u89c6\u9891\u540c\u65f6\u53d1\u5e03\u5728\u54d4\u54e9\u54d4\u54e9\u5f39\u5e55\u7f51\uff1a<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"color: rgb(26, 26, 26);font-size: 15px;\">\u89c6\u9891\u5730\u5740\u4e00\uff1ahttps:\/\/www.bilibili.com\/video\/av28248187<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"color: rgb(26, 26, 26);font-size: 15px;\"><span style=\"color: rgb(26, 26, 26);font-size: 15px;\">\u89c6\u9891\u5730\u5740\u4e8c\uff1ahttps:\/\/www.bilibili.com\/video\/av28178443<\/span><\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"color: rgb(26, 26, 26);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"color: rgb(26, 26, 26);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;\"><span style=\"color: rgb(26, 26, 26);font-size: 15px;\"><br  \/><\/span><\/p>\n<section  style=\"margin-top: 20px;white-space: normal;max-width: 100%;display: flex;-webkit-box-pack: center;justify-content: center;-webkit-box-align: center;align-items: center;box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section   style=\"padding-right: 30px;padding-left: 30px;max-width: 100%;min-width: 60px;text-align: center;border-bottom: 2px solid rgb(232, 230, 230);box-sizing: border-box !important;word-wrap: break-word !important;\">\n<section  style=\"padding-right: 10px;padding-left: 10px;max-width: 100%;display: inline-block;font-size: 14px;color: rgb(255, 128, 0);border-bottom: 2px solid rgb(255, 128, 0);transform: translate(0px, 2px);border-top-color: rgb(255, 128, 0);border-left-color: rgb(255, 128, 0);border-right-color: rgb(255, 128, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span class=\"\" style=\"max-width: 100%;color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"><span mpa-is-content=\"t\" style=\"max-width: 100%;font-size: 16px;box-sizing: border-box !important;word-wrap: break-word !important;\"><strong mpa-from-tpl=\"t\" style=\"max-width: 100%;color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><\/p>\n<p style=\"max-width: 100%;min-height: 1em;border-color: rgb(123, 12, 0);box-sizing: border-box !important;word-wrap: break-word !important;\"><span style=\"max-width: 100%;border-color: rgb(123, 12, 0);color: rgb(236, 137, 33);box-sizing: border-box !important;word-wrap: break-word !important;\">\u63a8\u8350\u9605\u8bfb<\/span><\/p>\n<p><\/strong><\/span><\/strong><\/span><\/section>\n<\/section>\n<p style=\"max-width: 100%;min-height: 1em;box-sizing: border-box !important;word-wrap: break-word !important;\"><br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/p>\n<\/section>\n<p style=\"text-align: left;\"><br  \/><\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzI0MjY5NTM2MQ==&amp;mid=2247485980&amp;idx=1&amp;sn=a7c462922f3d809db71d967fd42ec76a&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"text-decoration: underline;\">\u5168\u7f51\u9996\u53d1Julia\u4e2d\u6587\u89c6\u9891\u6559\u7a0b\uff1a1\u5c0f\u65f6\u4e0a\u624b\u673a\u5668\u5b66\u4e60\u7684\u660e\u65e5\u4e4b\u661f<\/a><\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/mp.weixin.qq.com\/s?__biz=MzI0MjY5NTM2MQ==&amp;mid=2247486485&amp;idx=1&amp;sn=23570d392acaea4728fc4d5fcca8475f&amp;scene=21#wechat_redirect\" target=\"_blank\" style=\"text-decoration: underline;\">\u7528Julia\u628a\u03c0\u73a9\u51fa\u82b1\u6765<\/a><br  \/><\/p>\n<p style=\"text-align: left;\"><br  \/><\/p>\n<p style=\"text-align: left;\"><br  \/><\/p>\n<blockquote>\n<p style=\"text-align: left;\">\u7f16\u8f91\uff1aYiri<br  \/><\/p>\n<\/blockquote>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<p style=\"text-align: center;\"><br  \/><\/p>\n<hr class=\"\" style=\"max-width: 100%;color: rgb(51, 51, 51);\"  \/>\n<p class=\"\" style=\"margin-top: 5px;margin-bottom: 5px;max-width: 100%;min-height: 1em;color: rgb(51, 51, 51);text-align: center;\"><span style=\"max-width: 100%;color: rgb(0, 0, 0);font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;\">\u5173\u6ce8\u96c6\u667aAI\u5b66\u56ed\u516c\u4f17\u53f7<br style=\"max-width: 100%;box-sizing: border-box !important;word-wrap: break-word !important;\"  \/><\/span><\/p>\n<p class=\"\" style=\"margin-top: 5px;margin-bottom: 5px;max-width: 100%;min-height: 1em;color: rgb(51, 51, 51);text-align: center;\"><span style=\"max-width: 100%;color: rgb(0, 0, 0);font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;\">\u83b7\u53d6\u66f4\u591a\u66f4\u6709\u8da3\u7684AI\u6559\u7a0b\u5427\uff01<\/span><\/p>\n<p class=\"\" style=\"margin-top: 5px;margin-bottom: 5px;max-width: 100%;min-height: 1em;color: rgb(51, 51, 51);text-align: center;\"><span style=\"max-width: 100%;color: rgb(0, 0, 0);font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;\">\u641c\u7d22\u5fae\u4fe1\u516c\u4f17\u53f7\uff1aswarmAI<\/span><\/p>\n<p class=\"\" style=\"margin-top: 5px;margin-bottom: 5px;max-width: 100%;min-height: 1em;color: rgb(51, 51, 51);text-align: center;\"><span style=\"max-width: 100%;color: rgb(0, 0, 0);font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;\">\u96c6\u667aAI\u5b66\u56edQQ\u7fa4\uff1a426390994<\/span><\/p>\n<p class=\"\" style=\"margin-top: 5px;margin-bottom: 5px;max-width: 100%;min-height: 1em;color: rgb(51, 51, 51);text-align: center;\"><span style=\"max-width: 100%;color: rgb(0, 0, 0);font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;\">\u5b66\u56ed\u7f51\u7ad9\uff1acampus.swarma.org<\/span><\/p>\n<p class=\"\" style=\"margin-top: 5px;margin-bottom: 5px;max-width: 100%;min-height: 1em;color: rgb(51, 51, 51);text-align: center;\"><span style=\"max-width: 100%;color: rgb(0, 0, 0);font-size: 15px;box-sizing: border-box !important;word-wrap: break-word !important;\">\u5546\u52a1\u5408\u4f5c\u548c\u6295\u7a3f\u8f6c\u8f7d\uff5cswarma@swarma.org<\/span><\/p>\n<section class=\"\"    style=\"max-width: 100%;color: rgb(51, 51, 51);\">\n<p style=\"max-width: 100%;min-height: 1em;outline: none;text-align: center;line-height: 1.75em;box-sizing: border-box !important;word-wrap: break-word !important;\"><img class=\"\"      width=\"auto\"  style=\"border-width: 0px;border-style: initial;border-color: initial;color: rgb(0, 0, 0);box-sizing: border-box !important;word-wrap: break-word !important;visibility: visible !important;width: auto !important;\" src=\"http:\/\/swarma.org\/wp-content\/uploads\/2018\/08\/swarma7-1534399165.jpeg\" alt=\"\u96c6\u667aAI\u5b66\u56ed\" title=\"\u96c6\u667aAI\u5b66\u56ed\"  \/><\/p>\n<\/section>\n<blockquote class='keep-source'>\n<p>\u59cb\u53d1\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a                         \u96c6\u667aAI\u5b66\u56ed                      <\/p>\n<\/blockquote>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u8f6c\u81ea\u7f57\u79c0\u54f2\u77e5\u4e4e\u4e13\u680f\uff0c\u7ecf\u6388\u6743\u8f6c\u8f7d\u3002 \u539f\u6587\uff1a https:\/\/www.zhihu.com\/people\/luo-xiu-zhe\/activities \u6ca1\u6709\u94f6\u5f39\uff0cJulia\u7684\u7279\u6027\u66f4\u591a\u4e0d\u4f1a\u6709Python\u597d\u5b66\u3002\u4f46\u662f\u4e0d\u7528\u62c5\u5fc3\uff0c\u4e0a\u624b\u662f\u975e\u5e38\u5bb9\u6613\u7684\u3002\u4e4b\u524d\u56e0\u4e3a\u51c6\u5907\u7528\u6237\u89c1\u9762\u4f1a\uff08Julia User Meet Up\uff09\u51c6&#8230;<\/p>\n","protected":false},"author":1,"featured_media":10294,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[22],"tags":[],"special":[],"_links":{"self":[{"href":"https:\/\/swarma.org\/index.php?rest_route=\/wp\/v2\/posts\/10293"}],"collection":[{"href":"https:\/\/swarma.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swarma.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swarma.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swarma.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10293"}],"version-history":[{"count":1,"href":"https:\/\/swarma.org\/index.php?rest_route=\/wp\/v2\/posts\/10293\/revisions"}],"predecessor-version":[{"id":10304,"href":"https:\/\/swarma.org\/index.php?rest_route=\/wp\/v2\/posts\/10293\/revisions\/10304"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/swarma.org\/index.php?rest_route=\/wp\/v2\/media\/10294"}],"wp:attachment":[{"href":"https:\/\/swarma.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swarma.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swarma.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10293"},{"taxonomy":"special","embeddable":true,"href":"https:\/\/swarma.org\/index.php?rest_route=%2Fwp%2Fv2%2Fspecial&post=10293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}