{"id":58141,"date":"2025-08-16T03:00:15","date_gmt":"2025-08-15T19:00:15","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/58141.html"},"modified":"2025-08-16T03:00:15","modified_gmt":"2025-08-15T19:00:15","slug":"javase%e6%96%b9%e6%b3%95%e7%9a%84%e4%bd%bf%e7%94%a8%e5%8f%8a%e9%80%92%e5%bd%92","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/58141.html","title":{"rendered":"JavaSE:\u65b9\u6cd5\u7684\u4f7f\u7528\u53ca\u9012\u5f52"},"content":{"rendered":"<h2>\u4e00\u3001\u65b9\u6cd5\u6982\u5ff5\u53ca\u4f7f\u7528<\/h2>\n<p>\u65b9\u6cd5\u5c31\u662f\u4e00\u4e2a\u4ee3\u7801\u7247\u6bb5. \u7c7b\u4f3c\u4e8e C \u8bed\u8a00\u4e2d\u7684 &#034;\u51fd\u6570&#034;\u3002<\/p>\n<h3>\u65b9\u6cd5\u7684\u5b9a\u4e49<\/h3>\n<h4>\u8bed\u6cd5\u683c\u5f0f<\/h4>\n<p>\/\/ \u65b9\u6cd5\u5b9a\u4e49<br \/>\n\u4fee\u9970\u7b26 \u8fd4\u56de\u503c\u7c7b\u578b \u65b9\u6cd5\u540d\u79f0([\u53c2\u6570\u7c7b\u578b \u5f62\u53c2 &#8230;]){<br \/>\n \u65b9\u6cd5\u4f53\u4ee3\u7801;<br \/>\n [return \u8fd4\u56de\u503c];<br \/>\n}<\/p>\n<p>\u4f8b\u5982&#xff1a;\u5199\u4e00\u4e2a\u65b9\u6cd5\u5b9e\u73b0\u5224\u65ad\u662f\u5426\u4e3a\u95f0\u5e74<\/p>\n<p>public class Test{<br \/>\n    public static void main(String[] args){<br \/>\n        int year &#061; 2008;<br \/>\n        boolean ret &#061; isLeapYear(year);<br \/>\n        if(ret &#061;&#061; true){<br \/>\n            System.out.println(&#034;\u662f\u95f0\u5e74!&#034;);<br \/>\n        }else{<br \/>\n            System.out.println(&#034;\u4e0d\u662f\u95f0\u5e74!&#034;);<br \/>\n        }<br \/>\n    }<br \/>\n    public static boolean isLeapYear(int year){<br \/>\n        if(year % 4 &#061;&#061; 0 &amp;&amp; year %100 !&#061; 0 || year % 400 &#061;&#061; 0){<br \/>\n            return true;<br \/>\n        }<br \/>\n        return false;<br \/>\n    }<br \/>\n}<\/p>\n<h4>\u3010\u6ce8\u610f\u4e8b\u9879\u3011<\/h4>\n<li>\u4fee\u9970\u7b26&#xff1a;\u73b0\u9636\u6bb5\u76f4\u63a5\u4f7f\u7528<span style=\"background-color:#ffd900\">public static<\/span> \u56fa\u5b9a\u642d\u914d<\/li>\n<li>\u8fd4\u56de\u503c\u7c7b\u578b&#xff1a;\u5982\u679c\u65b9\u6cd5\u6709\u8fd4\u56de\u503c&#xff0c;\u8fd4\u56de\u503c\u7c7b\u578b\u5fc5\u987b\u8981\u4e0e\u8fd4\u56de\u7684\u5b9e\u4f53\u7c7b\u578b\u4e00\u81f4&#xff0c;\u5982\u679c\u6ca1\u6709\u8fd4\u56de\u503c&#xff0c;\u5fc5\u987b\u5199\u6210 <span style=\"background-color:#ffd900\">void<\/span><\/li>\n<li>\u65b9\u6cd5\u540d\u5b57&#xff1a;\u91c7\u7528\u5c0f\u9a7c\u5cf0\u547d\u540d<\/li>\n<li>\u53c2\u6570\u5217\u8868&#xff1a;\u5982\u679c\u65b9\u6cd5\u6ca1\u6709\u53c2\u6570&#xff0c;()\u4e2d\u4ec0\u4e48\u90fd\u4e0d\u5199&#xff0c;\u5982\u679c\u6709\u53c2\u6570&#xff0c;\u9700\u6307\u5b9a\u53c2\u6570\u7c7b\u578b&#xff0c;\u591a\u4e2a\u53c2\u6570\u4e4b\u95f4\u4f7f\u7528\u9017\u53f7\u9694\u5f00<\/li>\n<li>\u65b9\u6cd5\u4f53&#xff1a;\u65b9\u6cd5\u5185\u90e8\u8981\u6267\u884c\u7684\u8bed\u53e5<\/li>\n<li>\u5728java\u5f53\u4e2d&#xff0c;\u65b9\u6cd5\u5fc5\u987b\u5199\u5728\u7c7b\u5f53\u4e2d<\/li>\n<li>\u5728java\u5f53\u4e2d&#xff0c;\u65b9\u6cd5\u4e0d\u80fd\u5d4c\u5957\u5b9a\u4e49<\/li>\n<li>\u5728java\u5f53\u4e2d&#xff0c;\u6ca1\u6709\u65b9\u6cd5\u58f0\u660e\u4e00\u8bf4<\/li>\n<h3 style=\"background-color:transparent\">\u65b9\u6cd5\u8c03\u7528\u7684\u6267\u884c\u8fc7\u7a0b<\/h3>\n<p>\u8c03\u7528\u65b9\u6cd5&#8212;&gt;\u4f20\u9012\u53c2\u6570&#8212;&gt;\u627e\u5230\u65b9\u6cd5\u5730\u5740&#8212;&gt;\u6267\u884c\u88ab\u8c03\u65b9\u6cd5\u7684\u65b9\u6cd5\u4f53&#8212;&gt;\u88ab\u8c03\u65b9\u6cd5\u7ed3\u675f\u8fd4\u56de&#8212;&gt;\u56de\u5230\u4e3b\u8c03\u65b9\u6cd5\u7ee7\u7eed\u5f80\u4e0b\u6267\u884c<\/p>\n<h4>\u3010\u6ce8\u610f\u4e8b\u9879\u3011<\/h4>\n<ul>\n<li>\u5b9a\u4e49\u65b9\u6cd5\u7684\u65f6\u5019, \u4e0d\u4f1a\u6267\u884c\u65b9\u6cd5\u7684\u4ee3\u7801. \u53ea\u6709\u8c03\u7528\u7684\u65f6\u5019\u624d\u4f1a\u6267\u884c.<\/li>\n<li>\u4e00\u4e2a\u65b9\u6cd5\u53ef\u4ee5\u88ab\u591a\u6b21\u8c03\u7528.<\/li>\n<\/ul>\n<h3>\u5b9e\u53c2\u4e0e\u5f62\u53c2\u7684\u5173\u7cfb<\/h3>\n<p>\u5728Java \u4e2d\u7684\u5f62\u53c2\u548c\u5b9e\u53c2\u4e0e C\u8bed\u8a00\u7684\u7c7b\u4f3c<\/p>\n<p>\u6211\u4eec\u5728\u8c03\u7528\u65b9\u6cd5\u7684\u65f6\u5019&#xff0c;\u4f20\u9012\u7684\u53c2\u6570\u5c31\u662f<span style=\"background-color:#a2e043\">\u5b9e\u53c2<\/span>&#xff0c;\u5b83\u662f\u4e00\u4e2a\u786e\u5b9a\u7684\u503c;\u800c\u88ab\u8c03\u7528\u7684\u65b9\u6cd5\u7684\u62ec\u53f7\u5185\u5c31\u662f<span style=\"background-color:#a2e043\">\u5f62\u53c2<\/span><span style=\"background-color:null\">&#xff0c;<\/span>\u5f62\u53c2\u7684\u540d\u5b57\u53ef\u4ee5\u968f\u610f\u53d6&#xff0c;\u5bf9\u65b9\u6cd5\u90fd\u6ca1\u6709\u4efb\u4f55\u5f71\u54cd&#xff0c;\u5f62\u53c2\u53ea\u662f\u65b9\u6cd5\u5728\u5b9a\u4e49\u65f6\u9700\u8981\u501f\u52a9\u7684\u4e00\u4e2a\u53d8\u91cf&#xff0c;\u7528\u6765\u4fdd\u5b58\u65b9\u6cd5\u5728\u8c03\u7528\u65f6\u4f20\u9012\u8fc7\u6765\u7684\u5b9e\u53c2&#xff0c;\u65b9\u6cd5\u8c03\u7528\u7ed3\u675f\u540e&#xff0c;\u5f62\u53c2\u5c31\u4f1a\u88ab\u56de\u6536<\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>public static void main(String[] args){<\/p>\n<p>    getSum(10); \/\/ 10\u662f\u5b9e\u53c2,\u5728\u65b9\u6cd5\u8c03\u7528\u65f6&#xff0c;\u5f62\u53c2N\u7528\u6765\u4fdd\u5b5810<br \/>\n    getSum(100);\/\/ 100\u662f\u5b9e\u53c2&#xff0c;\u5728\u65b9\u6cd5\u8c03\u7528\u65f6&#xff0c;\u5f62\u53c2N\u7528\u6765\u4fdd\u5b58100<br \/>\n}<br \/>\npublic static int getSum(int N){ \u00a0 \/\/ N\u662f\u5f62\u53c2<br \/>\n \u00a0 \u00a0return (1&#043;N)*N \/ 2;<br \/>\n}<br \/>\n\/\/\u53c8\u6bd4\u5982&#xff1a;<br \/>\nadd(2, 3); \u00a0 \/\/ 2\u548c3\u662f\u5b9e\u53c2&#xff0c;\u5728\u8c03\u7528\u65f6\u4f20\u7ed9\u5f62\u53c2a\u548cb<\/p>\n<p>public static int add(int a, int b){<br \/>\n \u00a0 \u00a0return a &#043; b;<br \/>\n}<\/p>\n<p>\u6ce8\u610f&#xff1a;<\/p>\n<p>\u5728Java\u4e2d&#xff0c;\u5b9e\u53c2\u7684\u503c\u6c38\u8fdc\u90fd\u662f\u62f7\u8d1d\u5230\u5f62\u53c2\u4e2d&#xff0c;\u5f62\u53c2\u548c\u5b9e\u53c2\u672c\u8d28\u662f\u4e24\u4e2a\u5b9e\u4f53<\/p>\n<p>\u4f8b\u5982&#xff1a;\u5b9e\u73b0\u4e24\u4e2a\u6574\u578b\u53d8\u91cf\u7684\u4ea4\u6362<\/p>\n<p>public class TestMethod {<br \/>\n     public static void main(String[] args) {<br \/>\n         int a &#061; 10;<br \/>\n         int b &#061; 20;<br \/>\n         swap(a, b);<br \/>\n         System.out.println(&#034;main: a &#061; &#034; &#043; a &#043; &#034; b &#061; &#034; &#043; b);<br \/>\n     }<\/p>\n<p>     public static void swap(int x, int y) {<br \/>\n         int tmp &#061; x;<br \/>\n         x &#061; y;<br \/>\n         y &#061; tmp;<br \/>\n \u00a0 \u00a0     System.out.println(&#034;swap: x &#061; &#034; &#043; x &#043; &#034; y &#061; &#034; &#043; y);<br \/>\n     }<br \/>\n}<\/p>\n<p>\u4f46\u662f&#xff0c;\u5728swap\u51fd\u6570\u4ea4\u6362\u4e4b\u540e&#xff0c;\u5f62\u53c2x\u548cy\u7684\u503c\u53d1\u751f\u4e86\u6539\u53d8&#xff0c;\u4f46\u662fmain\u65b9\u6cd5\u4e2da\u548cb\u8fd8\u662f\u4ea4\u6362\u4e4b\u524d\u7684\u503c&#xff0c;\u5373\u6ca1\u6709\u4ea4\u6362\u6210\u529f<\/p>\n<p>\/\/ \u8fd0\u884c\u7ed3\u679c<\/p>\n<p>swap: x &#061; 20 y &#061; 10<\/p>\n<p>main: a &#061; 10 b &#061; 20<\/p>\n<p>\u3010\u539f\u56e0\u5206\u6790\u3011<\/p>\n<p>\u5b9e\u53c2a\u548cb\u662fmain\u65b9\u6cd5\u4e2d\u7684\u4e24\u4e2a\u53d8\u91cf&#xff0c;\u5176\u7a7a\u95f4\u5728main\u65b9\u6cd5\u7684\u6808(\u4e00\u5757\u7279\u6b8a\u7684\u5185\u5b58\u7a7a\u95f4)\u4e2d&#xff0c;\u800c\u5f62\u53c2x\u548cy\u662fswap\u65b9\u6cd5\u4e2d \u7684\u4e24\u4e2a\u53d8\u91cf&#xff0c;x\u548cy\u7684\u7a7a\u95f4\u5728swap\u65b9\u6cd5\u8fd0\u884c\u65f6\u7684\u6808\u4e2d<\/p>\n<p>\u56e0\u6b64&#xff1a;\u5b9e\u53c2a\u548cb \u4e0e \u5f62\u53c2x\u548cy\u662f\u4e24\u4e2a\u6ca1\u6709\u4efb\u4f55\u5173\u8054\u6027\u7684\u53d8\u91cf&#xff0c; \u5728swap\u65b9\u6cd5\u8c03\u7528\u65f6&#xff0c;\u53ea\u662f\u5c06\u5b9e\u53c2a\u548cb\u4e2d\u7684\u503c\u62f7\u8d1d\u4e86\u4e00\u4efd\u4f20\u9012\u7ed9\u4e86\u5f62\u53c2x\u548cy&#xff0c;\u56e0\u6b64\u5bf9\u5f62\u53c2x\u548cy\u64cd\u4f5c\u4e0d\u4f1a\u5bf9\u5b9e\u53c2a\u548cb \u4ea7\u751f\u4efb\u4f55\u5f71\u54cd<\/p>\n<p>\u5373\u5bf9\u4e8e<span style=\"background-color:#ffd900\">\u57fa\u7840\u7c7b\u578b<\/span>\u6765\u8bf4, \u5f62\u53c2\u7684\u6539\u53d8\u4e0d\u4f1a\u5f71\u54cd\u5b9e\u53c2&#xff0c;\u5f62\u53c2\u76f8\u5f53\u4e8e\u5b9e\u53c2\u7684\u62f7\u8d1d. \u5373<span style=\"background-color:null\"> <\/span><span style=\"background-color:#98c091\">\u4f20\u503c\u8c03\u7528<\/span><\/p>\n<p>\u90a3\u4e48\u6309\u7167C\u8bed\u8a00\u7684\u89e3\u51b3\u65b9\u5f0f&#xff1a;\u5c31\u662f <span style=\"background-color:#98c091\">\u4f20\u5740\u8c03\u7528<\/span>\u00a0&#xff0c;\u5728\u7ed9\u51fd\u6570\u4f20\u53c2\u7684\u65f6\u5019&#xff0c;\u4f20\u5730\u5740&amp;&#xff0c;\u7136\u540e\u7528\u6307\u9488\u53d8\u91cf\u6765\u63a5\u6536&#xff08;\u901a\u8fc7&amp;\u53d6\u5730\u5740\u64cd\u4f5c\u6765\u6539\u53d8\u5b9e\u53c2\u7684\u503c&#xff09;<\/p>\n<p>\u4f46\u662f&#xff0c;\u5728Java\u5f53\u4e2d\u662f\u62ff\u4e0d\u5230\u6808\u4e0a\u7684\u5c40\u90e8\u53d8\u91cf\u7684\u5730\u5740\u7684&#xff0c;\u4e5f\u6ca1\u6709\u6307\u9488\u7684\u6982\u5ff5<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"108\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815185953-689f83a942da7.png\" width=\"435\" \/><\/p>\n<p>\u3010\u89e3\u51b3\u529e\u6cd5\u3011: <span style=\"background-color:#ffd900\">\u4f20\u5f15\u7528\u7c7b\u578b\u53c2\u6570<\/span> (\u5305\u62ec\u5b57\u7b26\u4e32\u548c\u6570\u7ec4&#xff0c;\u4f8b\u5982\u6570\u7ec4\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898)<\/p>\n<p>&#xff08;\u6b64\u4ee3\u7801\u7b49\u5b66\u4e60\u5b8c\u6570\u7ec4\u5c31\u80fd\u770b\u61c2&#xff09;<\/p>\n<p>public class TestMethod {<br \/>\n    public static void main(String[] args) {<br \/>\n    int[] arr &#061; {10, 20};<br \/>\n    swap(arr);<br \/>\n    System.out.println(&#034;arr[0] &#061; &#034; &#043; arr[0] &#043; &#034; arr[1] &#061; &#034; &#043; arr[1]);<\/p>\n<p>    }<\/p>\n<p>    public static void swap(int[] arr) {<br \/>\n    int tmp &#061; arr[0];<br \/>\n    arr[0] &#061; arr[1];<br \/>\n    arr[1] &#061; tmp;<br \/>\n    }<br \/>\n}<\/p>\n<p>\/\/ \u8fd0\u884c\u7ed3\u679c<\/p>\n<p>arr[0] &#061; 20 arr[1] &#061; 10<\/p>\n<h3>\u6ca1\u6709\u8fd4\u56de\u503c\u7684\u65b9\u6cd5<\/h3>\n<p>\u65b9\u6cd5\u7684\u8fd4\u56de\u503c\u662f\u53ef\u9009\u7684. \u6709\u4e9b\u65f6\u5019\u53ef\u4ee5\u6ca1\u6709\u7684&#xff0c;<span style=\"background-color:#ffd900\">\u6ca1\u6709\u65f6\u8fd4\u56de\u503c \u7c7b\u578b\u5fc5\u987b\u5199\u6210void<\/span><\/p>\n<p><span style=\"background-color:null\">\u793a\u4f8b&#xff1a;<\/span><\/p>\n<p>public class Test {<br \/>\n    public static void main(String[] args) {<br \/>\n    int a &#061; 10; int b &#061; 20; print(a, b);<br \/>\n    } <\/p>\n<p>    public static void print(int x, int y) {<br \/>\n    System.out.println(&#034;x &#061; &#034; &#043; x &#043; &#034; y &#061; &#034; &#043; y);<br \/>\n    }<br \/>\n}<\/p>\n<p>\u53e6\u5916&#xff0c;\u4e0a\u9762\u7684\u4ea4\u6362\u4e24\u4e2a\u6574\u6570\u7684\u65b9\u6cd5,\u5c31\u662f\u6ca1\u6709 \u8fd4 \u56de \u503c \u7684<\/p>\n<h2>\u4e8c\u3001\u65b9\u6cd5\u91cd\u8f7d<\/h2>\n<h3>\u4e3a\u4ec0\u4e48\u9700\u8981\u65b9\u6cd5\u91cd\u8f7d<\/h3>\n<p>\u5f53\u6211\u4eec\u60f3\u8981\u5199\u4e00\u4e2a\u65b9\u6cd5\u5b9e\u73b0\u4e24\u4e2a\u6570\u7684\u76f8\u52a0&#xff1a;<\/p>\n<p>    public static int add(int a,int b){<br \/>\n        return a&#043;b;<br \/>\n    }<br \/>\n    public static void main5(String[] args) {<br \/>\n        int x &#061; 1;<br \/>\n        int y &#061; 2;<br \/>\n        int ret &#061; add(x,y);<\/p>\n<p>        double d1 &#061; 1.0;<br \/>\n        double d2 &#061; 2.0;<br \/>\n        double ret1 &#061; add(d1,d2);<br \/>\n        System.out.println(ret1);<br \/>\n    }<\/p>\n<p>\u8fd0\u884c\u8d77\u6765\u65f6&#xff0c;\u53d1\u73b0\u62a5\u9519\u4e86&#xff1a;<\/p>\n<p>\/\/ \u7f16\u8bd1\u51fa\u9519<\/p>\n<p>Test.java:13: \u9519\u8bef: \u4e0d\u517c\u5bb9\u7684\u7c7b\u578b: \u4ecedouble\u8f6c\u6362\u5230int\u53ef\u80fd\u4f1a\u6709\u635f\u5931 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/p>\n<p>double ret2 &#061; add (a2,b2) ;<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^<\/p>\n<p>\u7531\u4e8e\u53c2\u6570\u7c7b\u578b\u4e0d\u5339\u914d&#xff0c;\u6240\u4ee5\u4e0d\u80fd\u76f4\u63a5\u4f7f\u7528\u73b0\u6709\u7684 add \u65b9\u6cd5<\/p>\n<p>\u4e00\u822c\u89e3\u51b3\u65b9\u5f0f\u90fd\u662f\u6bcf\u4e2a\u7c7b\u578b\u521b\u5efa\u4e00\u4e2a\u65b9\u6cd5\u5e76\u53d6\u4e00\u4e2a\u4e13\u95e8\u7684\u65b9\u6cd5\u540d&#xff1a;<\/p>\n<p>    public static void main5(String[] args) {<br \/>\n        int x &#061; 1;<br \/>\n        int y &#061; 2;<br \/>\n        int ret &#061; addInt(x,y);<br \/>\n        System.out.println(ret);<\/p>\n<p>        double d1 &#061; 1.0;<br \/>\n        double d2 &#061; 2.0;<br \/>\n        double ret1 &#061; addDouble(d1,d2);<br \/>\n        System.out.println(ret1);<br \/>\n    }<br \/>\n     public static int addInt(int a,int b){<br \/>\n        return a&#043;b;<br \/>\n    }<br \/>\n    public static double addDouble(double a,double b){<br \/>\n        return a&#043;b;<br \/>\n    }<\/p>\n<p>\u4e0a\u8ff0\u4ee3\u7801\u786e\u5b9e\u53ef\u4ee5\u89e3\u51b3\u95ee\u9898&#xff0c;\u4f46\u4e0d\u53cb\u597d\u7684\u5730\u65b9\u662f&#xff1a;\u9700\u8981\u63d0\u4f9b\u8bb8\u591a\u4e0d\u540c\u7684\u65b9\u6cd5\u540d&#xff0c;\u800c\u53d6\u540d\u5b57\u672c\u6765\u5c31\u662f\u8ba9\u4eba\u5934\u75bc\u7684\u4e8b\u60c5\u3002\u90a3\u80fd\u5426\u5c06\u6240\u6709\u7684\u540d\u5b57\u90fd\u7ed9\u6210 add \u5462&#xff1f;<\/p>\n<h3>\u65b9\u6cd5\u91cd\u8f7d\u6982\u5ff5<\/h3>\n<p>\u5728\u81ea\u7136\u8bed\u8a00\u4e2d&#xff0c;\u7ecf\u5e38\u4f1a\u51fa\u73b0\u201c\u4e00\u8bcd\u591a\u4e49\u201d\u7684\u73b0\u8c61&#xff0c;\u6bd4\u5982&#xff0c;\u201c\u65b9\u4fbf\u201d&#xff0c;\u53ef\u4ee5\u8868\u793a\u5185\u6025&#xff0c;\u8868\u793a\u65b9\u4fbf\u9762\u7b49<\/p>\n<p>\u4e00\u4e2a\u8bcd\u8bed\u5982\u679c\u6709\u591a\u91cd\u542b\u4e49&#xff0c;\u90a3\u4e48\u5c31\u8bf4\u8be5\u8bcd\u8bed\u88ab\u91cd\u8f7d\u4e86&#xff0c;\u5177\u4f53\u4ee3\u8868\u4ec0\u4e48\u542b\u4e49\u9700\u8981\u7ed3\u5408\u5177\u4f53\u7684\u573a\u666f\u3002 \u5728Java\u4e2d\u65b9\u6cd5\u4e5f\u662f\u53ef\u4ee5\u91cd\u8f7d\u7684\u3002<\/p>\n<p>\u5728Java\u4e2d&#xff0c;\u5982\u679c\u591a\u4e2a<span style=\"background-color:#ffd900\">\u65b9\u6cd5\u7684\u540d\u5b57\u76f8\u540c<\/span>&#xff0c;<span style=\"background-color:#ffd900\">\u53c2\u6570\u5217\u8868\u4e0d\u540c<\/span>&#xff0c;\u5219\u79f0\u8be5\u51e0\u79cd\u65b9\u6cd5\u88ab\u91cd\u8f7d\u4e86<\/p>\n<p>public class Test{<br \/>\n    public static void main(String[] args){<br \/>\n        int a &#061; 10;<br \/>\n        int b &#061; 20;<br \/>\n        int ret &#061; add(a,b); \/\/\u8c03\u7528add(int, int)<br \/>\n        System.out.println(ret);<\/p>\n<p>        double d1 &#061; 1.0;<br \/>\n        double d2 &#061; 2.0;<br \/>\n        double ret1 &#061; add(d1,d2);\/\/\u8c03\u7528add(double, double)<br \/>\n        System.out.println(ret1);<br \/>\n    }<\/p>\n<p>    public static int add(int a, int b){<br \/>\n        return a&#043;b;<br \/>\n    }<br \/>\n    public static double add(double a, double c){<br \/>\n        return a&#043;b;<br \/>\n    }<br \/>\n}<\/p>\n<p>\u5f53\u6211\u4eec\u5199\u5b8cadd\u65b9\u6cd5\u4e0d\u540c\u7c7b\u578b\u65f6&#xff0c;\u6bcf\u6b21\u6211\u4eec\u60f3\u8981\u8c03\u7528add\u65b9\u6cd5&#xff0c;\u5c31\u4f1a\u6d6e\u73b0add\u7684\u65b9\u6cd5\u91cd\u8f7d&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"246\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815185954-689f83aa0b910.png\" width=\"793\" \/><\/p>\n<h4><span style=\"color:#be191c\">\u6ce8\u610f<\/span>&#xff1a;\u91cd\u8f7d\u7684\u6761\u4ef6<\/h4>\n<li>\u65b9\u6cd5\u540d\u5fc5\u987b\u76f8\u540c<\/li>\n<li>\u00a0\u53c2\u6570\u5217\u8868\u5fc5\u987b\u4e0d\u540c(\u53c2\u6570\u4e2a\u6570\u4e0d\u540c\u00a0\/\u00a0\u53c2\u6570\u7c7b\u578b\u4e0d\u540c\u00a0\/\u00a0\u7c7b\u578b\u987a\u5e8f\u4e0d\u540c&#8211;&gt;\u5fc5\u987b\u662f\u4e0d\u540c\u7c7b\u578b\u7684\u987a\u5e8f\u4e0d\u540c)<\/li>\n<li>\u4e0e\u8fd4\u56de\u503c\u7c7b\u578b\u662f\u5426\u76f8\u540c\u65e0\u5173<\/li>\n<li>\u7f16\u8bd1\u5668\u5728\u7f16\u8bd1\u4ee3\u7801\u65f6&#xff0c;\u4f1a\u5bf9\u5b9e\u53c2\u7c7b\u578b\u8fdb\u884c\u63a8\u6f14&#xff0c;\u6839\u636e\u63a8\u6f14\u7684\u7ed3\u679c\u6765\u786e\u5b9a\u8c03\u7528\u54ea\u4e2a\u65b9\u6cd5<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"537\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815185954-689f83aaaf005.png\" width=\"1270\" \/><\/p>\n<h4 style=\"background-color:transparent\">\u6ce8\u610f&#xff1a;\u4e24\u4e2a\u65b9\u6cd5\u5982\u679c\u4ec5\u4ec5\u53ea\u662f\u56e0\u4e3a\u8fd4\u56de\u503c\u7c7b\u578b\u4e0d\u540c&#xff0c;\u662f\u4e0d\u80fd\u6784\u6210\u91cd\u8f7d\u7684<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"246\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815185956-689f83ac63026.png\" width=\"696\" \/><\/p>\n<h4>\u6ce8\u610f:\u53c2\u6570\u5217\u8868\u7684\u7c7b\u578b\u987a\u5e8f\u4e0d\u540c\u5fc5\u987b\u662f\u4e0d\u540c\u7c7b\u578b\u7684\u53c2\u6570\u987a\u5e8f\u4e0d\u540c&#xff0c;\u5426\u5219\u4f1a\u62a5\u9519<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"488\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815185957-689f83ad11898.png\" width=\"1273\" \/><\/p>\n<h3>\u65b9\u6cd5\u7b7e\u540d<\/h3>\n<p>\u5728\u540c\u4e00\u4e2a\u4f5c\u7528\u57df\u4e2d\u4e0d\u80fd\u5b9a\u4e49\u4e24\u4e2a\u76f8\u540c\u540d\u79f0\u7684\u6807\u8bc6\u7b26\u3002\u6bd4\u5982&#xff1a;\u65b9\u6cd5\u4e2d\u4e0d\u80fd\u5b9a\u4e49\u4e24\u4e2a\u540d\u5b57\u4e00\u6837\u7684\u53d8\u91cf&#xff0c;\u90a3\u4e3a\u4ec0\u4e48\u7c7b\u4e2d\u5c31\u53ef\u4ee5\u5b9a\u4e49\u65b9\u6cd5\u540d\u76f8\u540c\u7684\u65b9\u6cd5\u5462&#xff1f;&#xff08;\u5373\u65b9\u6cd5\u91cd\u8f7d\u5b9e\u73b0\u65b9\u5f0f&#xff09;\u2014\u2014\u00a0\u901a\u8fc7<span style=\"background-color:#ffd900\">\u65b9\u6cd5\u7b7e\u540d<\/span>\u5b9e\u73b0<\/p>\n<p>\u65b9\u6cd5\u7b7e\u540d\u5373&#xff1a;\u7ecf\u8fc7\u7f16\u8bd1\u5668\u7f16\u8bd1\u4fee\u6539\u8fc7\u4e4b\u540e\u65b9\u6cd5\u6700\u7ec8\u7684\u540d\u5b57\u3002<\/p>\n<p>\u5177\u4f53\u65b9\u5f0f&#xff1a;\u65b9\u6cd5\u5168\u8def\u5f84\u540d&#043;\u53c2\u6570\u5217\u8868&#043;\u8fd4\u56de\u503c\u7c7b\u578b&#xff0c;\u6784\u6210\u65b9\u6cd5\u5b8c\u6574\u7684\u540d\u5b57\u3002<\/p>\n<h4>\u65b9\u6cd5\u7b7e\u540d\u7684\u5173\u952e\u8981\u7d20&#xff1a;<\/h4>\n<li>\u65b9\u6cd5\u540d<\/li>\n<li>\u53c2\u6570\u5217\u8868&#xff08;\u53c2\u6570\u7c7b\u578b\u3001\u987a\u5e8f\u3001\u6570\u91cf\/\u4e2a\u6570&#xff09;<\/li>\n<p>\u4f8b\u5982\u4ee5\u4e0b\u7684\u4ee3\u7801&#xff1a;<\/p>\n<p>public class TestMethod {<br \/>\n \u00a0 \u00a0public static int add(int x, int y){<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0return x &#043; y;<br \/>\n \u00a0 }<\/p>\n<p> \u00a0 \u00a0public static double add(double x, double y){<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0return x &#043; y;<br \/>\n \u00a0 }<\/p>\n<p> \u00a0 \u00a0public static void main(String[] args) {<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0add(1,2);<br \/>\n \u00a0 \u00a0 \u00a0 \u00a0add(1.5, 2.5);<br \/>\n \u00a0 }<br \/>\n}<\/p>\n<p>\u4e0a\u8ff0\u4ee3\u7801\u7ecf\u8fc7\u7f16\u8bd1\u4e4b\u540e&#xff0c;\u7136\u540e\u4f7f\u7528JDK\u81ea\u5e26\u7684javap\u53cd\u6c47\u7f16\u5de5\u5177\u67e5\u770b&#xff0c;\u5177\u4f53\u64cd\u4f5c&#xff1a;<\/p>\n<li>\u5148\u5bf9\u5de5\u7a0b\u8fdb\u884c\u7f16\u8bd1\u751f\u6210.class\u5b57\u8282\u7801\u6587\u4ef6<\/li>\n<li>\u5728\u63a7\u5236\u53f0\u4e2d\u8fdb\u5165\u5230\u8981\u67e5\u770b\u7684.class\u6240\u5728\u7684\u76ee\u5f55<\/li>\n<li>\u8f93\u5165&#xff1a;javap -v \u5b57\u8282\u7801\u6587\u4ef6\u540d\u5b57\u5373\u53ef<\/li>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"603\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815185959-689f83af211b3.png\" width=\"867\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"267\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815190000-689f83b0ee2e6.png\" width=\"772\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"388\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815190002-689f83b24b791.png\" width=\"1126\" \/><\/p>\n<p>\u4ee5\u6574\u578b\u7c7b\u578b\u4e3a\u4f8b&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"372\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815190004-689f83b44f681.png\" width=\"1472\" \/><\/p>\n<h4>\u603b\u7ed3<\/h4>\n<p>\u65b9\u6cd5\u91cd\u8f7d\u7684\u5b9e\u73b0\u662f\u7f16\u8bd1\u5668\u901a\u8fc7\u65b9\u6cd5\u7b7e\u540d\u751f\u6210\u552f\u4e00\u7684\u65b9\u6cd5\u6807\u8bc6\u7b26<\/p>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:500px\">\n<tbody>\n<tr>\n<td style=\"text-align:center\">add(int a, int b) \u2192 \u7f16\u8bd1\u4e3a add(II)I<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center\">II &#061; \u4e24\u4e2aint\u53c2\u6570<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center\">I &#061; \u8fd4\u56deint\u7c7b\u578b<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center\">add(double a, double b) \u2192 \u7f16\u8bd1\u4e3a add(DD)D<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center\">add(int a, int b, int c) \u2192 \u7f16\u8bd1\u4e3a add(III)I<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u65b9\u6cd5\u7b7e\u540d\u4e2d\u7684\u4e00\u4e9b\u7279\u6b8a\u7b26\u53f7\u8bf4\u660e&#xff1a;<\/p>\n<table border=\"1\" cellpadding=\"1\" cellspacing=\"1\" style=\"width:500px\">\n<tbody>\n<tr>\n<td style=\"text-align:center;width:86px\">\u7279\u6b8a\u5b57\u7b26<\/td>\n<td style=\"text-align:center;width:413px\">\u6570\u636e\u7c7b\u578b<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;width:86px\">V<\/td>\n<td style=\"text-align:center;width:413px\">void<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;width:86px\">Z<\/td>\n<td style=\"text-align:center;width:413px\">boolean<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;width:86px\">B<\/td>\n<td style=\"text-align:center;width:413px\">byte<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;width:86px\">C<\/td>\n<td style=\"text-align:center;width:413px\">char<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;width:86px\">S<\/td>\n<td style=\"text-align:center;width:413px\">short<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;width:86px\">I<\/td>\n<td style=\"text-align:center;width:413px\">int<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;width:86px\">J<\/td>\n<td style=\"text-align:center;width:413px\">long<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;width:86px\">F<\/td>\n<td style=\"text-align:center;width:413px\">float<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;width:86px\">D<\/td>\n<td style=\"text-align:center;width:413px\">double<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;width:86px\">[<\/td>\n<td style=\"text-align:center;width:413px\">\u6570\u7ec4(\u4ee5 [ \u5f00\u5934&#xff0c;\u914d\u5408\u5176\u4ed6\u7684\u7279\u6b8a\u5b57\u7b26&#xff0c;\u8868\u8ff0\u5bf9\u5e94\u6570\u636e\u7c7b\u578b\u7684\u6570\u7ec4&#xff0c;\u51e0\u4e2a [ \u8868\u8ff0\u51e0\u7ef4\u6570\u7ec4)<\/td>\n<\/tr>\n<tr>\n<td style=\"text-align:center;width:86px\">L<\/td>\n<td style=\"text-align:center;width:413px\">\u5f15\u7528\u7c7b\u578b&#xff0c;\u4ee5L\u5f00\u5934&#xff0c;\u4ee5 ; \u7ed3\u5c3e&#xff0c;\u4e2d\u95f4\u662f\u5f15\u7528\u7c7b\u578b\u7684\u5168\u7c7b\u540d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4e09\u3001\u9012\u5f52<\/h2>\n<p>\u4e00\u4e2a\u65b9\u6cd5\u5728\u6267\u884c\u8fc7\u7a0b\u4e2d\u8c03\u7528\u81ea\u8eab, \u5c31\u79f0\u4e3a &#034;\u9012\u5f52&#034;.<\/p>\n<p>\u9012\u5f52\u76f8\u5f53\u4e8e\u6570\u5b66\u4e0a\u7684 &#034;\u6570\u5b66\u5f52\u7eb3\u6cd5&#034;, \u6709\u4e00\u4e2a<span style=\"background-color:#ffd900\">\u8d77\u59cb\u6761\u4ef6<\/span>, \u7136\u540e\u6709\u4e00\u4e2a<span style=\"background-color:#ffd900\">\u9012\u63a8\u516c\u5f0f<\/span>.<\/p>\n<p>\u4f8b\u5982, \u6211\u4eec\u6c42 N!<\/p>\n<p>\u8d77\u59cb\u6761\u4ef6: N &#061; 1 \u7684\u65f6\u5019, N! \u4e3a 1. \u8fd9\u4e2a<span style=\"background-color:#ffd900\">\u8d77\u59cb\u6761\u4ef6\u76f8\u5f53\u4e8e\u9012\u5f52\u7684\u7ed3\u675f\u6761\u4ef6<\/span>.<\/p>\n<p>\u9012\u5f52\u516c\u5f0f: \u6c42 N! , \u76f4\u63a5\u4e0d\u597d\u6c42, \u53ef\u4ee5\u628a\u95ee\u9898\u8f6c\u6362\u6210 N! &#061;&gt; N * (N-1)!<\/p>\n<p>\u9012\u5f52\u7684\u5fc5\u8981\u6761\u4ef6&#xff1a;<\/p>\n<li>\u5c06\u539f\u95ee\u9898\u5212\u5206\u6210\u5176\u5b50\u95ee\u9898&#xff0c;\u6ce8\u610f&#xff1a;\u5b50\u95ee\u9898\u5fc5\u987b\u8981\u4e0e\u539f\u95ee\u9898\u7684\u89e3\u6cd5\u76f8\u540c<\/li>\n<li>\u9012\u5f52\u51fa\u53e3<\/li>\n<h3>\u9012\u5f52\u6267\u884c\u8fc7\u7a0b\u5206\u6790<\/h3>\n<p>\u9012\u5f52\u7684\u7a0b\u5e8f\u7684\u6267\u884c\u8fc7\u7a0b\u4e0d\u592a\u5bb9\u6613\u7406\u89e3, \u8981\u60f3\u7406\u89e3\u6e05\u695a\u9012\u5f52, \u5fc5\u987b\u5148\u7406\u89e3\u6e05\u695a &#034;\u65b9\u6cd5\u7684\u6267\u884c\u8fc7\u7a0b&#034;, \u5c24\u5176\u662f &#034;\u65b9\u6cd5\u6267\u884c\u7ed3\u675f \u4e4b\u540e, \u56de\u5230\u8c03\u7528\u4f4d\u7f6e\u7ee7\u7eed\u5f80\u4e0b\u6267\u884c&#034;.<\/p>\n<h5>\u4ee3\u7801\u793a\u4f8b&#xff1a;\u9012\u5f52\u6c42 N \u7684\u9636\u4e58<\/h5>\n<p>public static void main(String[] args){<br \/>\n    int n &#061; 5;<br \/>\n    int ret &#061; factor(n);<br \/>\n    System.out.println(&#034;ret&#061;&#034; &#043; ret);<br \/>\n}<\/p>\n<p>public static int factor(int n){<br \/>\n    System.out.println(&#034;\u51fd\u6570\u5f00\u59cb, n &#061; &#034; &#043; n);<br \/>\n    if(n &#061;&#061; 1){<br \/>\n        System.out.println(&#034;\u51fd\u6570\u7ed3\u675f, n &#061; 1 ret &#061; 1&#034;);<br \/>\n        return 1;<br \/>\n    }<br \/>\n    int ret &#061; n * factor(n-1); \/\/ factor \u8c03\u7528\u51fd\u6570\u81ea\u8eab<br \/>\n    System.out.println(&#034;\u51fd\u6570\u7ed3\u675f, n &#061; &#034; &#043; n &#043; &#034; ret &#061; &#034; &#043; ret);<br \/>\n    return ret;<br \/>\n}<\/p>\n<p>\/\/ \u6267\u884c\u7ed3\u679c<\/p>\n<p>\u51fd\u6570\u5f00\u59cb, n &#061; 5<\/p>\n<p>\u51fd\u6570\u5f00\u59cb, n &#061; 4<\/p>\n<p>\u51fd\u6570\u5f00\u59cb, n &#061; 3<\/p>\n<p>\u51fd\u6570\u5f00\u59cb, n &#061; 2<\/p>\n<p>\u51fd\u6570\u5f00\u59cb, n &#061; 1<\/p>\n<p>\u51fd\u6570\u7ed3\u675f, n &#061; 1 ret &#061; 1<\/p>\n<p>\u51fd\u6570\u7ed3\u675f, n &#061; 2 ret &#061; 2<\/p>\n<p>\u51fd\u6570\u7ed3\u675f, n &#061; 3 ret &#061; 6<\/p>\n<p>\u51fd\u6570\u7ed3\u675f, n &#061; 4 ret &#061; 24<\/p>\n<p>\u51fd\u6570\u7ed3\u675f, n &#061; 5 ret &#061; 120<\/p>\n<p>ret &#061; 120<\/p>\n<h5 style=\"background-color:transparent\">\u6267\u884c\u8fc7\u7a0b\u56fe<\/h5>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"531\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815190006-689f83b6151af.png\" width=\"2406\" \/><\/p>\n<p>\u7a0b\u5e8f\u6309\u7167\u5e8f\u53f7\u4e2d\u6807\u8bc6\u7684 (1) -&gt; (8) \u7684\u987a\u5e8f\u6267\u884c<\/p>\n<h4>\u5173\u4e8e &#034;\u8c03\u7528\u6808&#034;<\/h4>\n<p>\u65b9\u6cd5\u8c03\u7528\u7684\u65f6\u5019, \u4f1a\u6709\u4e00\u4e2a &#034;\u6808&#034; \u8fd9\u6837\u7684\u5185\u5b58\u7a7a\u95f4\u63cf\u8ff0\u5f53\u524d\u7684\u8c03\u7528\u5173\u7cfb. \u79f0\u4e3a\u8c03\u7528\u6808. \u6bcf\u4e00\u6b21\u7684\u65b9\u6cd5\u8c03\u7528\u5c31\u79f0\u4e3a\u4e00\u4e2a &#034;\u6808\u5e27&#034;, \u6bcf\u4e2a\u6808\u5e27\u4e2d\u5305\u542b\u4e86\u8fd9\u6b21\u8c03\u7528\u7684\u53c2\u6570\u662f\u54ea\u4e9b, \u8fd4\u56de\u5230\u54ea\u91cc\u7ee7\u7eed\u6267\u884c\u7b49\u4fe1\u606f.<\/p>\n<h3>\u9012\u5f52\u7684\u7ec3\u4e60<\/h3>\n<h3>\u6309\u987a\u5e8f\u6253\u5370\u4e00\u4e2a\u6570\u5b57\u7684\u6bcf\u4e00\u4f4d<\/h3>\n<p>\u4f8b\u5982 1234 \u6253\u5370\u51fa 1 2 3 4<\/p>\n<p>\u601d\u8def&#xff1a;\u4f7f\u7528 \/10 &#xff0c;%10 \u7684\u65b9\u6cd5<\/p>\n<p>\u7ed3\u675f\u6761\u4ef6&#xff08;\u5373\u8d77\u59cb\u6761\u4ef6&#xff09;&#xff1a;n &lt; 10(\u5f53n\u5c0f\u4e8e10\u7684\u65f6\u5019&#xff0c;\u4efb\u4f55\u6570\u5b57 \/10 \u90fd\u662f\u5b83\u672c\u8eab&#xff0c;\u76f4\u63a5\u6253\u5370\u5373\u53ef)<\/p>\n<p>\u9012\u63a8\u516c\u5f0f&#xff1a;print(n \/\u00a010)\u00a0 ,\u00a0 \u00a0n %10\u00a0\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"276\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815190009-689f83b93eb8e.png\" width=\"1131\" \/><\/p>\n<p>public static void main(String[] args){<br \/>\n    System.out.println(print(1234));<br \/>\n}<\/p>\n<p>public static void print(int n){<br \/>\n    if(n &lt; 10){<br \/>\n        System.out.println(n);<br \/>\n        return;<br \/>\n    }<br \/>\n    print(n \/ 10);<br \/>\n    System.out.println(n % 10);<br \/>\n}<\/p>\n<p>\u6267\u884c\u8fc7\u7a0b&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"430\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815190010-689f83ba78103.png\" width=\"2605\" \/><\/p>\n<h3>\u9012\u5f52\u6c42 1 &#043; 2 &#043; 3 &#043; &#8230; &#043; 10<\/h3>\n<p>\u601d\u8def&#xff1a;\u6c421&#043;\u523010 &#8212;&#8212;&gt; \u5c31\u662f\u00a01&#043;2&#043;3&#043;\u2026\u2026&#043;n\u00a0 \u7684\u95ee\u9898&#xff0c;\u5373 \u6211\u4eec\u53ef\u4ee5\u5229\u7528\u516c\u5f0f n &#043; (n-1) \u6765\u6c42\u89e3<\/p>\n<p>\u7ed3\u675f\u6761\u4ef6&#xff1a;n &#061;&#061; 0&#xff08;n &#061;&#061; 1&#xff09;<\/p>\n<p>\u9012\u63a8\u516c\u5f0f&#xff1a;n &#043; sum(n-1)<\/p>\n<p>public static void main(String[] args){<br \/>\n    System.out.println(sum(10));<br \/>\n}<\/p>\n<p>public static int sum(int n){<br \/>\n    if(n &#061;&#061; 0){<br \/>\n        return 0;<br \/>\n    }<br \/>\n    return n &#043; sum(n-1);\/\/55<br \/>\n}<\/p>\n<p>\u6267\u884c\u8fc7\u7a0b&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"428\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815190012-689f83bc78239.png\" width=\"2337\" \/><\/p>\n<h3 style=\"background-color:transparent\">\u5199\u4e00\u4e2a\u9012\u5f52\u65b9\u6cd5&#xff0c;\u8f93\u5165\u4e00\u4e2a\u975e\u8d1f\u6574\u6570&#xff0c;\u8fd4\u56de\u7ec4\u6210\u5b83\u7684\u6570\u5b57\u4e4b\u548c<\/h3>\n<p>\u4f8b\u5982&#xff0c;\u8f93\u5165 1729, \u5219\u5e94\u8be5\u8fd4\u56de 1&#043;7&#043;2&#043;9&#xff0c;\u5b83\u7684\u548c\u662f19<\/p>\n<p>\u601d\u8def&#xff1a;\/10\u00a0 &#xff0c;%10<\/p>\n<p>\u7ed3\u675f\u6761\u4ef6&#xff1a;n &lt; 10<\/p>\n<p>\u9012\u63a8\u516c\u5f0f&#xff1a;fun(n \/10) &#043; n % 10<\/p>\n<p>public static void main(String[] args){<br \/>\n    System.out.println(fun(1729));<br \/>\n}<\/p>\n<p>public static int fun(int n){<br \/>\n    if(n &lt; 10){<br \/>\n        return n;<br \/>\n    }<br \/>\n    return fun(n\/10)&#043;n%10;<br \/>\n}<\/p>\n<p>\u6267\u884c\u8fc7\u7a0b&#xff1a;<br \/>\n<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"455\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815190013-689f83bd7323f.png\" width=\"2207\" \/><\/p>\n<h3>\u6c42\u6590\u6ce2\u90a3\u5951\u6570\u5217\u7684\u7b2c N \u9879<\/h3>\n<p>\u6590\u6ce2\u90a3\u5951\u6570\u5217&#xff0c;\u53c8\u79f0\u9ec4\u91d1\u5206\u5272\u6570\u5217<\/p>\n<p>\u6590\u6ce2\u90a3\u5951\u6570\u5217\u6307\u7684\u662f\u8fd9\u6837\u4e00\u4e2a\u6570\u5217&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"39\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815190014-689f83be7a0cb.png\" width=\"928\" \/><\/p>\n<p>\u8fd9\u4e2a\u6570\u5217\u4ece\u7b2c3\u9879\u5f00\u59cb&#xff0c;\u6bcf\u4e00\u9879\u90fd\u7b49\u4e8e\u524d\u4e24\u9879\u4e4b\u548c<\/p>\n<p>\u6590\u6ce2\u90a3\u5951\u6570\u5217\u88ab\u4ee5\u9012\u63a8\u7684\u65b9\u6cd5\u5b9a\u4e49&#xff1a;F(0)&#061;0&#xff0c;F(1)&#061;1, F(n)&#061;F(n &#8211; 1)&#043;F(n &#8211; 2)<\/p>\n<h4>\u9012\u63a8\u6c42\u6590\u6ce2\u90a3\u5951\u6570\u5217\u7684\u7b2cN\u9879<\/h4>\n<p>\u7ed3\u675f\u6761\u4ef6&#xff1a;n &lt; 3<\/p>\n<p>\u9012\u63a8\u516c\u5f0f&#xff1a;fib(n &#8211; 1) &#043; fib(n &#8211; 2)<\/p>\n<p>public static void main(String[] args){<\/p>\n<p>    System.out.println(fib(1));\/\/1<br \/>\n    System.out.println(fib(5));\/\/5<br \/>\n    System.out.println(fib(10));\/\/55<br \/>\n    System.out.println(fib(40));\/\/102334155<br \/>\n}<\/p>\n<p>public static int fib(int n){<br \/>\n    if(n &#061;&#061; 1 || n &#061;&#061; 2){<br \/>\n        return 1;<br \/>\n    }<br \/>\n    return fib(n-1)&#043;fib(n-2);<br \/>\n}<\/p>\n<p>\u6267\u884c\u8fc7\u7a0b&#xff1a;<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"408\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815190014-689f83be8d3ad.png\" width=\"401\" \/><\/p>\n<p>\u9012\u5f52\u8fc7\u7a0b\u62c6\u89e3&#xff08;\u4ece\u9876\u5c42\u5411\u4e0b\u8ba1\u7b97&#xff09;&#xff1a;<\/p>\n<li>\u8ba1\u7b97 F (5)&#xff0c;\u9700\u5148\u6c42 F (4) \u548c F (3)<\/li>\n<li>\u8ba1\u7b97 F (4)&#xff0c;\u9700\u5148\u6c42 F (3) \u548c F (2)<\/li>\n<li>F (2) \u662f\u57fa\u7840\u6761\u4ef6&#xff0c;\u76f4\u63a5\u8fd4\u56de 1<\/li>\n<li>\u8ba1\u7b97 F (3)&#xff08;F (4) \u7684\u5de6\u5206\u652f&#xff09;&#xff0c;\u9700\u5148\u6c42 F (2) \u548c F (1)<\/li>\n<li>F (2)&#061;1&#xff0c;F (1)&#061;1&#xff0c;\u56e0\u6b64 F (3)&#061;1&#043;1&#061;2<\/li>\n<li>\u6b64\u65f6 F (4) &#061; F (3) &#043; F (2) &#061; 2 &#043; 1 &#061; 3<\/li>\n<li>\u8ba1\u7b97 F (3)&#xff08;F (5) \u7684\u53f3\u5206\u652f&#xff09;&#xff0c;\u540c\u7406\u5f97 F (3)&#061;2&#xff08;\u4e0e\u6b65\u9aa4 3 \u7ed3\u679c\u76f8\u540c&#xff09;<\/li>\n<li>\u6700\u540e F (5) &#061; F (4) &#043; F (3) &#061; 3 &#043; 2 &#061; 5<\/li>\n<p>(\u5f53\u8ba1\u7b97\u5b8c\u5de6\u5206\u652f\u540e&#xff0c;\u518d\u8ba1\u7b97\u53f3\u5206\u652f)<\/p>\n<p>\u6700\u7ec8\u7ed3\u679c&#xff1a;\u6590\u6ce2\u90a3\u5951\u6570\u5217\u7b2c\u4e94\u9879\u4e3a 5<\/p>\n<p>\u6211\u4eec\u770b\u56fe\u53ef\u4ee5\u77e5\u9053&#xff0c;\u5176\u5b9e\u4f7f\u7528\u9012\u5f52\u6c42\u6590\u6ce2\u90a3\u5951\u6570\u5217\u6548\u7387\u5e76\u4e0d\u9ad8&#xff0c;\u56e0\u4e3a\u5b83\u5728\u9012\u5f52\u7684\u8fc7\u7a0b\u6709\u8bb8\u591a\u91cd\u590d\u7684\u5730\u65b9&#xff08;\u91cd\u590d\u8ba1\u7b97\u4e86F(3),F(2),F(1)&#xff09;&#xff0c;\u4f7f\u7528\u5faa\u73af\u6c42\u89e3\u66f4\u9ad8\u6548<\/p>\n<h4>\u5faa\u73af\u6c42\u6590\u6ce2\u90a3\u5951\u6570\u5217\u7684\u7b2cN\u9879<\/h4>\n<p>\u601d\u8def&#xff1a;\u5728 fib \u65b9\u6cd5\u5185\u521b\u5efa\u4e09\u4e2a\u53d8\u91cff1,f2,f3&#xff0c;\u8868\u793a\u7b2cn-1\u9879&#xff0c;\u7b2cn\u9879&#xff0c;\u7b2cn&#043;1\u9879&#xff0c;\u7ed9\u5b83\u4eec\u521d\u59cb\u5316\u90fd\u4e3a1<\/p>\n<p>\u4f7f\u7528for\u5faa\u73af\u904d\u5386&#xff0c;\u521d\u59cb\u503c\u8bbe\u4e3ai&#061;3,\u5373\u5982\u679cn\u6ee1\u8db3\u6b64\u6761\u4ef6\u5373\u53ef\u8fdb\u5165\u5faa\u73af&#xff0c;\u8fdb\u884c\u524d\u4e24\u9879\u76f8\u52a0\u7b49\u4e8e\u7b2cn\u9879\u7684\u503cf3&#xff0c;\u6c42\u5b8c\u540e\u5c06\u539f\u672c\u7684f2\u8d4b\u503c\u7ed9f1&#xff0c;f3\u8d4b\u503c\u7ed9f2&#xff0c;\u4ee5\u4fbf\u8fdb\u884c\u4e0b\u4e00\u6b21\u5faa\u73af&#xff0c;\u6700\u540e\u8fd4\u56def3&#xff1b;\u5982\u679c\u4e0d\u6ee1\u8db3\u5faa\u73af\u6761\u4ef6&#xff0c;\u5219\u76f4\u63a5\u8fd4\u56def3\u521d\u59cb\u5316\u7684\u503c&#xff08;\u5373n\u662f\u7b2c1\/2\u9879&#xff09;<\/p>\n<p>public static void main(String[] args){<\/p>\n<p>    System.out.println(fib(1));\/\/1<br \/>\n    System.out.println(fib(5));\/\/5<br \/>\n    System.out.println(fib(10));\/\/55<br \/>\n    System.out.println(fib(40));\/\/102334155<br \/>\n}<\/p>\n<p>public static int fib(int n){<br \/>\n    int f1 &#061; 1;<br \/>\n    int f2 &#061; 1;<br \/>\n    int f3 &#061; 1;<br \/>\n    for(int i &#061; 3;i &lt;&#061; n; i&#043;&#043;){<br \/>\n        f3 &#061; f1 &#043; f2;<br \/>\n        f1 &#061; f2;<br \/>\n        f2 &#061; f3;<br \/>\n    }<br \/>\n    return f3;<br \/>\n}<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb51\u6b21\u3002\u91cd\u70b9\uff1a\u65b9\u6cd5\u91cd\u8f7d\u3001\u5b9e\u73b0\u65b9\u6cd5\u91cd\u8f7d\uff1a\u65b9\u6cd5\u7b7e\u540d\u3001\u6590\u6ce2\u90a3\u5951\u6570\u5217<\/p>\n","protected":false},"author":2,"featured_media":58125,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[99],"topic":[],"class_list":["post-58141","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-java"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JavaSE:\u65b9\u6cd5\u7684\u4f7f\u7528\u53ca\u9012\u5f52 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/58141.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaSE:\u65b9\u6cd5\u7684\u4f7f\u7528\u53ca\u9012\u5f52 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb51\u6b21\u3002\u91cd\u70b9\uff1a\u65b9\u6cd5\u91cd\u8f7d\u3001\u5b9e\u73b0\u65b9\u6cd5\u91cd\u8f7d\uff1a\u65b9\u6cd5\u7b7e\u540d\u3001\u6590\u6ce2\u90a3\u5951\u6570\u5217\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/58141.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-15T19:00:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815185953-689f83a942da7.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/58141.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/58141.html\",\"name\":\"JavaSE:\u65b9\u6cd5\u7684\u4f7f\u7528\u53ca\u9012\u5f52 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-15T19:00:15+00:00\",\"dateModified\":\"2025-08-15T19:00:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/58141.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/58141.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/58141.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaSE:\u65b9\u6cd5\u7684\u4f7f\u7528\u53ca\u9012\u5f52\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JavaSE:\u65b9\u6cd5\u7684\u4f7f\u7528\u53ca\u9012\u5f52 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/58141.html","og_locale":"zh_CN","og_type":"article","og_title":"JavaSE:\u65b9\u6cd5\u7684\u4f7f\u7528\u53ca\u9012\u5f52 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb51\u6b21\u3002\u91cd\u70b9\uff1a\u65b9\u6cd5\u91cd\u8f7d\u3001\u5b9e\u73b0\u65b9\u6cd5\u91cd\u8f7d\uff1a\u65b9\u6cd5\u7b7e\u540d\u3001\u6590\u6ce2\u90a3\u5951\u6570\u5217","og_url":"https:\/\/www.wsisp.com\/helps\/58141.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-15T19:00:15+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250815185953-689f83a942da7.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/58141.html","url":"https:\/\/www.wsisp.com\/helps\/58141.html","name":"JavaSE:\u65b9\u6cd5\u7684\u4f7f\u7528\u53ca\u9012\u5f52 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-15T19:00:15+00:00","dateModified":"2025-08-15T19:00:15+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/58141.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/58141.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/58141.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"JavaSE:\u65b9\u6cd5\u7684\u4f7f\u7528\u53ca\u9012\u5f52"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/58141","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=58141"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/58141\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/58125"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=58141"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=58141"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=58141"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=58141"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}