{"id":993658,"date":"2024-12-27T08:47:55","date_gmt":"2024-12-27T00:47:55","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/993658.html"},"modified":"2024-12-27T08:47:58","modified_gmt":"2024-12-27T00:47:58","slug":"java%e5%a6%82%e4%bd%95%e8%b0%83%e7%94%a8python%e6%8e%a5%e5%8f%a3","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/993658.html","title":{"rendered":"java\u5982\u4f55\u8c03\u7528python\u63a5\u53e3"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25070952\/5dfa8333-b157-49e6-913d-df9128f3b3d0.webp\" alt=\"java\u5982\u4f55\u8c03\u7528python\u63a5\u53e3\" \/><\/p>\n<p><p> <strong>Java\u8c03\u7528Python\u63a5\u53e3\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\uff1a\u4f7f\u7528Jython\u3001\u901a\u8fc7HTTP\u8bf7\u6c42\u8c03\u7528RESTful API\u3001\u4f7f\u7528Java Process\u6267\u884cPython\u811a\u672c\u3001\u901a\u8fc7Java Native Interface (JNI)\u8fdb\u884c\u8c03\u7528\u3002<\/strong> \u5176\u4e2d\uff0c\u4f7f\u7528HTTP\u8bf7\u6c42\u8c03\u7528RESTful API\u662f\u4e00\u79cd\u8f83\u4e3a\u5e38\u7528\u548c\u7075\u6d3b\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5b9e\u73b0\u8bed\u8a00\u95f4\u7684\u677e\u8026\u5408\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7HTTP\u8bf7\u6c42\u8c03\u7528RESTful API\u7684\u65b9\u5f0f\u662fJava\u8c03\u7528Python\u63a5\u53e3\u7684\u5e38\u7528\u65b9\u6cd5\u4e4b\u4e00\u3002\u9996\u5148\uff0c\u9700\u8981\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2aWeb\u670d\u52a1\uff0c\u901a\u5e38\u4f7f\u7528Flask\u6216Django\u7b49\u6846\u67b6\u6765\u5b9e\u73b0\u3002\u7136\u540e\uff0cJava\u53ef\u4ee5\u4f7f\u7528\u5e93\u5982Apache HttpClient\u6216OkHttp\u6765\u53d1\u9001HTTP\u8bf7\u6c42\uff0c\u4e0ePython Web\u670d\u52a1\u8fdb\u884c\u4ea4\u4e92\u3002\u8fd9\u6837\u7684\u65b9\u6cd5\u5177\u6709\u5f88\u597d\u7684\u53ef\u6269\u5c55\u6027\u548c\u7ef4\u62a4\u6027\uff0c\u56e0\u4e3aJava\u548cPython\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u670d\u52a1\u5668\u4e0a\u8fd0\u884c\uff0c\u5e76\u53ef\u4ee5\u72ec\u7acb\u66f4\u65b0\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u4e00\u3001JYTHON<\/h2>\n<\/p>\n<p><p>Jython\u662f\u4e00\u79cd\u5c06Python\u4ee3\u7801\u4e0eJava\u4ee3\u7801\u96c6\u6210\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u5b83\u5141\u8bb8\u5728Java\u7a0b\u5e8f\u4e2d\u76f4\u63a5\u8fd0\u884cPython\u4ee3\u7801\u3002Jython\u662fPython\u7684Java\u5b9e\u73b0\uff0c\u56e0\u6b64\u5b83\u80fd\u591f\u5f88\u597d\u5730\u8fd0\u884c\u5728Java\u865a\u62df\u673a\uff08JVM\uff09\u4e0a\u3002<\/p>\n<\/p>\n<p><h3>Jython\u7684\u5b89\u88c5\u4e0e\u4f7f\u7528<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5Jython<\/strong>\uff1a\u9996\u5148\u9700\u8981\u4e0b\u8f7d\u5e76\u5b89\u88c5Jython\u3002\u53ef\u4ee5\u5728Jython\u7684\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u3002\u5b89\u88c5\u540e\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528<code>jython<\/code>\u547d\u4ee4\u6765\u8fd0\u884cPython\u811a\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5728Java\u4e2d\u4f7f\u7528Jython<\/strong>\uff1a\u5728Java\u4e2d\u4f7f\u7528Jython\u9700\u8981\u5c06Jython\u7684jar\u6587\u4ef6\u6dfb\u52a0\u5230\u9879\u76ee\u7684\u7c7b\u8def\u5f84\u4e2d\u3002\u7136\u540e\u53ef\u4ee5\u4f7f\u7528Jython\u63d0\u4f9b\u7684API\u6765\u6267\u884cPython\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>PythonInterpreter<\/code>\u7c7b\u6765\u6267\u884cPython\u811a\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">import org.python.util.PythonInterpreter;<\/p>\n<p>public class PythonScriptRunner {<\/p>\n<p>    public static void m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n(String[] args) {<\/p>\n<p>        PythonInterpreter interpreter = new PythonInterpreter();<\/p>\n<p>        interpreter.exec(&quot;print(&#39;Hello from Python!&#39;)&quot;);<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4f18\u7f3a\u70b9<\/h3>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1aJython\u53ef\u4ee5\u8ba9Java\u7a0b\u5e8f\u5458\u76f4\u63a5\u5728Java\u4e2d\u8fd0\u884cPython\u4ee3\u7801\uff0c\u65b9\u4fbf\u5feb\u901f\u96c6\u6210\u3002<\/p>\n<\/p>\n<p><p><strong>\u7f3a\u70b9<\/strong>\uff1aJython\u4e0d\u652f\u6301\u6240\u6709\u7684Python\u5e93\uff0c\u5c24\u5176\u662f\u90a3\u4e9b\u4f7f\u7528C\u8bed\u8a00\u7f16\u5199\u7684\u5e93\u3002Jython\u9879\u76ee\u7684\u66f4\u65b0\u8f83\u6162\uff0c\u53ef\u80fd\u4e0d\u652f\u6301\u6700\u65b0\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u4e8c\u3001HTTP\u8bf7\u6c42\u8c03\u7528RESTful API<\/h2>\n<\/p>\n<p><p>\u901a\u8fc7RESTful API\u8fdb\u884cJava\u4e0ePython\u7684\u901a\u4fe1\u662f\u6700\u5e38\u89c1\u7684\u65b9\u5f0f\u4e4b\u4e00\u3002\u53ef\u4ee5\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2aRESTful API\u670d\u52a1\uff0c\u7136\u540e\u5728Java\u4e2d\u901a\u8fc7HTTP\u8bf7\u6c42\u8fdb\u884c\u8c03\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u521b\u5efaPython RESTful API\u670d\u52a1<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528Flask\u521b\u5efaAPI<\/strong>\uff1aFlask\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684Python Web\u6846\u67b6\uff0c\u9002\u5408\u5feb\u901f\u521b\u5efaRESTful API\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from flask import Flask, jsonify, request<\/p>\n<p>app = Flask(__name__)<\/p>\n<p>@app.route(&#39;\/api\/say_hello&#39;, methods=[&#39;POST&#39;])<\/p>\n<p>def say_hello():<\/p>\n<p>    data = request.json<\/p>\n<p>    name = data.get(&#39;name&#39;, &#39;World&#39;)<\/p>\n<p>    return jsonify({&#39;message&#39;: f&#39;Hello, {name}!&#39;})<\/p>\n<p>if __name__ == &#39;__main__&#39;:<\/p>\n<p>    app.run(port=5000)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u542f\u52a8\u670d\u52a1<\/strong>\uff1a\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884cPython\u811a\u672c\uff0c\u542f\u52a8Flask\u670d\u52a1\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u5728Java\u4e2d\u8c03\u7528API<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528HTTP\u5e93<\/strong>\uff1aJava\u4e2d\u6709\u591a\u79cdHTTP\u5e93\u53ef\u4ee5\u7528\u6765\u53d1\u9001\u8bf7\u6c42\uff0c\u4f8b\u5982Apache HttpClient\u3001OkHttp\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">import java.io.OutputStream;<\/p>\n<p>import java.net.HttpURLConnection;<\/p>\n<p>import java.net.URL;<\/p>\n<p>public class ApiCaller {<\/p>\n<p>    public static void main(String[] args) {<\/p>\n<p>        try {<\/p>\n<p>            URL url = new URL(&quot;http:\/\/localhost:5000\/api\/say_hello&quot;);<\/p>\n<p>            HttpURLConnection connection = (HttpURLConnection) url.openConnection();<\/p>\n<p>            connection.setRequestMethod(&quot;POST&quot;);<\/p>\n<p>            connection.setRequestProperty(&quot;Content-Type&quot;, &quot;application\/json; utf-8&quot;);<\/p>\n<p>            connection.setRequestProperty(&quot;Accept&quot;, &quot;application\/json&quot;);<\/p>\n<p>            connection.setDoOutput(true);<\/p>\n<p>            String jsonInputString = &quot;{\\&quot;name\\&quot;: \\&quot;Java\\&quot;}&quot;;<\/p>\n<p>            try(OutputStream os = connection.getOutputStream()) {<\/p>\n<p>                byte[] input = jsonInputString.getBytes(&quot;utf-8&quot;);<\/p>\n<p>                os.write(input, 0, input.length);           <\/p>\n<p>            }<\/p>\n<p>            int code = connection.getResponseCode();<\/p>\n<p>            System.out.println(&quot;Response Code: &quot; + code);<\/p>\n<p>        } catch (Exception e) {<\/p>\n<p>            e.printStackTrace();<\/p>\n<p>        }<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4f18\u7f3a\u70b9<\/h3>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a\u8fd9\u79cd\u65b9\u5f0f\u8bed\u8a00\u65e0\u5173\uff0c\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u5c06\u670d\u52a1\u90e8\u7f72\u5230\u4e0d\u540c\u7684\u73af\u5883\u4e2d\uff0c\u4e14\u53ef\u4ee5\u4e0e\u591a\u79cd\u5ba2\u6237\u7aef\u4ea4\u4e92\u3002<\/p>\n<\/p>\n<p><p><strong>\u7f3a\u70b9<\/strong>\uff1a\u9700\u8981\u989d\u5916\u7684\u7f51\u7edc\u4f20\u8f93\uff0c\u53ef\u80fd\u4f1a\u5f15\u5165\u5ef6\u8fdf\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u4e09\u3001JAVA PROCESS\u6267\u884cPYTHON\u811a\u672c<\/h2>\n<\/p>\n<p><p>Java\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u8fd0\u884c\u7cfb\u7edf\u547d\u4ee4\u6765\u6267\u884cPython\u811a\u672c\u3002\u8fd9\u79cd\u65b9\u6cd5\u76f8\u5bf9\u7b80\u5355\uff0c\u4f46\u4e0d\u592a\u7075\u6d3b\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528Java Process\u6267\u884cPython\u811a\u672c<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7f16\u5199Python\u811a\u672c<\/strong>\uff1a\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684Python\u811a\u672c\u7528\u4e8e\u6d4b\u8bd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># hello.py<\/p>\n<p>print(&quot;Hello from Python script!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5728Java\u4e2d\u8c03\u7528Python\u811a\u672c<\/strong>\uff1a\u4f7f\u7528<code>ProcessBuilder<\/code>\u6216<code>Runtime.getRuntime().exec()<\/code>\u6765\u6267\u884cPython\u811a\u672c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-java\">import java.io.BufferedReader;<\/p>\n<p>import java.io.InputStreamReader;<\/p>\n<p>public class PythonScriptExecutor {<\/p>\n<p>    public static void main(String[] args) {<\/p>\n<p>        try {<\/p>\n<p>            ProcessBuilder processBuilder = new ProcessBuilder(&quot;python&quot;, &quot;hello.py&quot;);<\/p>\n<p>            Process process = processBuilder.start();<\/p>\n<p>            BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream()));<\/p>\n<p>            String line;<\/p>\n<p>            while ((line = reader.readLine()) != null) {<\/p>\n<p>                System.out.println(line);<\/p>\n<p>            }<\/p>\n<p>            int exitCode = process.waitFor();<\/p>\n<p>            System.out.println(&quot;Exited with code: &quot; + exitCode);<\/p>\n<p>        } catch (Exception e) {<\/p>\n<p>            e.printStackTrace();<\/p>\n<p>        }<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4f18\u7f3a\u70b9<\/h3>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a\u7b80\u5355\u6613\u7528\uff0c\u9002\u5408\u6267\u884c\u72ec\u7acb\u7684Python\u811a\u672c\u3002<\/p>\n<\/p>\n<p><p><strong>\u7f3a\u70b9<\/strong>\uff1a\u7f3a\u4e4f\u7075\u6d3b\u6027\uff0c\u9002\u5408\u7b80\u5355\u7684\u811a\u672c\u6267\u884c\uff0c\u4e0d\u9002\u5408\u590d\u6742\u7684\u4ea4\u4e92\u3002<\/p>\n<\/p>\n<hr>\n<p><h2>\u56db\u3001JAVA NATIVE INTERFACE (JNI)<\/h2>\n<\/p>\n<p><p>JNI\u662f\u4e00\u79cdJava API\uff0c\u7528\u4e8e\u8c03\u7528\u975eJava\u4ee3\u7801\u3002\u867d\u7136JNI\u901a\u5e38\u7528\u4e8e\u8c03\u7528C\/C++\u4ee3\u7801\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u4e8e\u8c03\u7528Python\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528JNI\u8c03\u7528Python<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7f16\u5199JNI\u4ee3\u7801<\/strong>\uff1aJNI\u4ee3\u7801\u901a\u5e38\u662f\u7528C\/C++\u7f16\u5199\u7684\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b83\u6765\u8c03\u7528Python\u4ee3\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8c03\u7528Python\u4ee3\u7801<\/strong>\uff1a\u901a\u8fc7C\/C++\u4ee3\u7801\u4f7f\u7528Python\/C API\u6765\u6267\u884cPython\u4ee3\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5728Java\u4e2d\u4f7f\u7528JNI<\/strong>\uff1a\u5728Java\u4e2d\u52a0\u8f7d\u672c\u5730\u5e93\uff0c\u5e76\u901a\u8fc7JNI\u8c03\u7528\u76f8\u5e94\u7684\u51fd\u6570\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4f18\u7f3a\u70b9<\/h3>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1aJNI\u63d0\u4f9b\u4e86\u5bf9\u5e95\u5c42\u7cfb\u7edf\u7684\u9ad8\u6027\u80fd\u8bbf\u95ee\uff0c\u53ef\u4ee5\u4e0e\u73b0\u6709\u7684C\/C++\u548cPython\u5e93\u96c6\u6210\u3002<\/p>\n<\/p>\n<p><p><strong>\u7f3a\u70b9<\/strong>\uff1a\u5f00\u53d1\u590d\u6742\uff0c\u8c03\u8bd5\u56f0\u96be\uff0c\u6d89\u53ca\u5230\u5e73\u53f0\u76f8\u5173\u6027\u548c\u5185\u5b58\u7ba1\u7406\u95ee\u9898\u3002<\/p>\n<\/p>\n<hr>\n<p><p>\u5728Java\u4e2d\u8c03\u7528Python\u63a5\u53e3\u7684\u65b9\u6cd5\u6709\u591a\u79cd\u9009\u62e9\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u7f3a\u70b9\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u9700\u8981\u6839\u636e\u5177\u4f53\u7684\u9879\u76ee\u9700\u6c42\u3001\u6027\u80fd\u8981\u6c42\u548c\u5f00\u53d1\u73af\u5883\u6765\u51b3\u5b9a\u3002\u5bf9\u4e8e\u5927\u591a\u6570\u5e94\u7528\u573a\u666f\uff0c\u901a\u8fc7HTTP\u8bf7\u6c42\u8c03\u7528RESTful API\u662f\u4e00\u79cd\u7b80\u5355\u4e14\u6709\u6548\u7684\u65b9\u5f0f\uff0c\u800c\u5bf9\u4e8e\u6027\u80fd\u8981\u6c42\u8f83\u9ad8\u7684\u573a\u666f\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528JNI\u6216\u5176\u4ed6\u65b9\u5f0f\u8fdb\u884c\u4f18\u5316\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Java\u4e2d\u8c03\u7528Python\u63a5\u53e3\uff1f<\/strong><br \/>\u5728Java\u4e2d\u8c03\u7528Python\u63a5\u53e3\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7HTTP\u8bf7\u6c42\u6765\u5b9e\u73b0\u3002\u9996\u5148\uff0c\u9700\u8981\u5728Python\u4e2d\u642d\u5efa\u4e00\u4e2aWeb\u670d\u52a1\uff0c\u6bd4\u5982\u4f7f\u7528Flask\u6216FastAPI\u7b49\u6846\u67b6\u3002\u7136\u540e\uff0c\u5728Java\u4e2d\u4f7f\u7528HttpURLConnection\u6216\u7b2c\u4e09\u65b9\u5e93\u5982Apache HttpClient\u6765\u53d1\u9001\u8bf7\u6c42\u5e76\u83b7\u53d6\u54cd\u5e94\u3002\u8fd9\u79cd\u65b9\u5f0f\u80fd\u591f\u6709\u6548\u5730\u5b9e\u73b0\u4e24\u79cd\u8bed\u8a00\u4e4b\u95f4\u7684\u901a\u4fe1\u3002<\/p>\n<p><strong>\u4f7f\u7528\u4ec0\u4e48\u5de5\u5177\u53ef\u4ee5\u7b80\u5316Java\u8c03\u7528Python\u63a5\u53e3\u7684\u8fc7\u7a0b\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u96c6\u6210\u5de5\u5177\u6216\u5e93\u6765\u7b80\u5316Java\u4e0ePython\u4e4b\u95f4\u7684\u4ea4\u4e92\u3002\u4f8b\u5982\uff0cJython\u662f\u4e00\u4e2a\u5141\u8bb8\u5728Java\u4e2d\u76f4\u63a5\u8fd0\u884cPython\u4ee3\u7801\u7684\u5de5\u5177\uff0c\u5c3d\u7ba1\u5b83\u53ef\u80fd\u4e0d\u652f\u6301\u6240\u6709Python\u5e93\u3002\u53e6\u5916\uff0c\u4f7f\u7528RESTful API\u6765\u5c01\u88c5Python\u670d\u52a1\uff0c\u5e76\u5728Java\u4e2d\u8fdb\u884c\u8c03\u7528\uff0c\u662f\u5f53\u524d\u6700\u5e38\u89c1\u548c\u7075\u6d3b\u7684\u65b9\u5f0f\u3002<\/p>\n<p><strong>Python\u63a5\u53e3\u8fd4\u56de\u7684\u6570\u636e\u683c\u5f0f\u662f\u4ec0\u4e48\uff0cJava\u5982\u4f55\u5904\u7406\uff1f<\/strong><br \/>Python\u63a5\u53e3\u901a\u5e38\u8fd4\u56deJSON\u683c\u5f0f\u7684\u6570\u636e\uff0c\u8fd9\u79cd\u683c\u5f0f\u6613\u4e8e\u89e3\u6790\u548c\u5904\u7406\u3002\u5728Java\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Jackson\u6216Gson\u7b49\u5e93\u6765\u89e3\u6790JSON\u6570\u636e\uff0c\u5c06\u5176\u8f6c\u6362\u4e3aJava\u5bf9\u8c61\uff0c\u4fbf\u4e8e\u540e\u7eed\u7684\u64cd\u4f5c\u548c\u4f7f\u7528\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u9ad8\u6548\uff0c\u8fd8\u80fd\u5f88\u597d\u5730\u5904\u7406\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Java\u8c03\u7528Python\u63a5\u53e3\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u5f0f\uff1a\u4f7f\u7528Jython\u3001\u901a\u8fc7HTTP\u8bf7\u6c42\u8c03\u7528RESTful API [&hellip;]","protected":false},"author":3,"featured_media":993671,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/993658"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=993658"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/993658\/revisions"}],"predecessor-version":[{"id":993673,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/993658\/revisions\/993673"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/993671"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=993658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=993658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=993658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}