{"id":1023784,"date":"2024-12-30T14:08:02","date_gmt":"2024-12-30T06:08:02","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1023784.html"},"modified":"2024-12-30T14:08:05","modified_gmt":"2024-12-30T06:08:05","slug":"python%e5%a6%82%e4%bd%95%e8%ae%be%e8%ae%a1%e5%ad%97%e5%ba%93%e5%ad%97%e4%bd%93-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1023784.html","title":{"rendered":"python\u5982\u4f55\u8bbe\u8ba1\u5b57\u5e93\u5b57\u4f53"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/7429f10a-7abf-4e34-9922-c7dadb6468dc.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u8bbe\u8ba1\u5b57\u5e93\u5b57\u4f53\" \/><\/p>\n<p><p> <strong>Python\u8bbe\u8ba1\u5b57\u5e93\u5b57\u4f53\u7684\u6b65\u9aa4\u5305\u62ec\u4f7f\u7528\u5b57\u4f53\u7f16\u8f91\u5de5\u5177\u3001\u5c06\u5b57\u4f53\u6587\u4ef6\u8f6c\u6362\u4e3aPython\u53ef\u7528\u7684\u683c\u5f0f\u3001\u4f7f\u7528Python\u5e93\u8fdb\u884c\u5b57\u4f53\u64cd\u4f5c\u3001\u5b9e\u73b0\u81ea\u5b9a\u4e49\u5b57\u4f53\u6548\u679c\u3002<\/strong> <\/p>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c\u4f7f\u7528Python\u5e93\u8fdb\u884c\u5b57\u4f53\u64cd\u4f5c\u662f\u5173\u952e\u6b65\u9aa4\u3002Python\u4e2d\u6709\u51e0\u4e2a\u5e38\u7528\u7684\u5e93\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u548c\u751f\u6210\u5b57\u4f53\uff0c\u6bd4\u5982<code>fontTools<\/code>\u548c<code>freetype-py<\/code>\u3002\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684API\uff0c\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u65b9\u4fbf\u5730\u8fdb\u884c\u5b57\u4f53\u64cd\u4f5c\u548c\u751f\u6210\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecdPython\u8bbe\u8ba1\u5b57\u5e93\u5b57\u4f53\u7684\u5177\u4f53\u6b65\u9aa4\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u4f7f\u7528\u5b57\u4f53\u7f16\u8f91\u5de5\u5177\u521b\u5efa\u57fa\u7840\u5b57\u4f53<\/h2>\n<\/p>\n<p><h3>1\u3001\u9009\u62e9\u5408\u9002\u7684\u5b57\u4f53\u7f16\u8f91\u5de5\u5177<\/h3>\n<\/p>\n<p><p>\u5728\u8bbe\u8ba1\u5b57\u5e93\u5b57\u4f53\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u9009\u62e9\u4e00\u4e2a\u5408\u9002\u7684\u5b57\u4f53\u7f16\u8f91\u5de5\u5177\uff0c\u5982FontForge\u3001Glyphs\u6216RoboFont\u7b49\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u521b\u5efa\u548c\u7f16\u8f91\u5b57\u4f53\u6587\u4ef6\u3002\u6bcf\u4e2a\u5de5\u5177\u90fd\u6709\u5176\u72ec\u7279\u7684\u529f\u80fd\u548c\u7279\u70b9\uff0c\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u53ef\u4ee5\u4e8b\u534a\u529f\u500d\u3002<\/p>\n<\/p>\n<p><h3>2\u3001\u521b\u5efa\u5b57\u4f53\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528\u9009\u5b9a\u7684\u5b57\u4f53\u7f16\u8f91\u5de5\u5177\uff0c\u65b0\u5efa\u4e00\u4e2a\u5b57\u4f53\u9879\u76ee\uff0c\u5e76\u5f00\u59cb\u8bbe\u8ba1\u6bcf\u4e2a\u5b57\u7b26\u7684\u5b57\u5f62\u3002\u8bbe\u8ba1\u5b57\u7b26\u65f6\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u786e\u4fdd\u5b57\u7b26\u7684\u5f62\u72b6\u6e05\u6670\u6613\u8bfb<\/li>\n<li>\u4fdd\u6301\u5b57\u7b26\u7684\u98ce\u683c\u4e00\u81f4<\/li>\n<li>\u6ce8\u610f\u5b57\u7b26\u7684\u95f4\u8ddd\u548c\u5bf9\u9f50<\/li>\n<\/ul>\n<p><p>\u5b8c\u6210\u6240\u6709\u5b57\u7b26\u7684\u8bbe\u8ba1\u540e\uff0c\u5c06\u5b57\u4f53\u6587\u4ef6\u4fdd\u5b58\u4e3a\u5e38\u89c1\u7684\u5b57\u4f53\u683c\u5f0f\uff0c\u5982TTF\uff08TrueType Font\uff09\u6216OTF\uff08OpenType Font\uff09\u3002<\/p>\n<\/p>\n<p><h2>\u4e8c\u3001\u5c06\u5b57\u4f53\u6587\u4ef6\u8f6c\u6362\u4e3aPython\u53ef\u7528\u7684\u683c\u5f0f<\/h2>\n<\/p>\n<p><h3>1\u3001\u5b89\u88c5\u5b57\u4f53\u5904\u7406\u5e93<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6709\u591a\u4e2a\u5e93\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u5b57\u4f53\u6587\u4ef6\uff0c\u5982<code>fontTools<\/code>\u548c<code>freetype-py<\/code>\u3002\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5b89\u88c5\u8fd9\u4e9b\u5e93\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install fontTools freetype-py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u8bfb\u53d6\u5b57\u4f53\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528<code>fontTools<\/code>\u6216<code>freetype-py<\/code>\u5e93\u8bfb\u53d6\u5b57\u4f53\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>fontTools<\/code>\u8bfb\u53d6TTF\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from fontTools.ttLib import TTFont<\/p>\n<h2><strong>\u8bfb\u53d6\u5b57\u4f53\u6587\u4ef6<\/strong><\/h2>\n<p>font = TTFont(&#39;path\/to\/font.ttf&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e09\u3001\u4f7f\u7528Python\u5e93\u8fdb\u884c\u5b57\u4f53\u64cd\u4f5c<\/h2>\n<\/p>\n<p><h3>1\u3001\u63d0\u53d6\u5b57\u4f53\u4fe1\u606f<\/h3>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528<code>fontTools<\/code>\u5e93\u63d0\u53d6\u5b57\u4f53\u6587\u4ef6\u4e2d\u7684\u5404\u79cd\u4fe1\u606f\uff0c\u5982\u5b57\u7b26\u6620\u5c04\u3001\u5b57\u5f62\u8f6e\u5ed3\u7b49\u3002\u4f8b\u5982\uff0c\u63d0\u53d6\u5b57\u7b26\u6620\u5c04\u4fe1\u606f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u83b7\u53d6\u5b57\u7b26\u6620\u5c04<\/p>\n<p>cmap = font[&#39;cmap&#39;].getcmap(3, 1).cmap<\/p>\n<h2><strong>\u6253\u5370\u5b57\u7b26\u6620\u5c04<\/strong><\/h2>\n<p>for codepoint, name in cmap.items():<\/p>\n<p>    print(f&quot;U+{codepoint:04X}: {name}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u7ed8\u5236\u5b57\u7b26\u8f6e\u5ed3<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528<code>freetype-py<\/code>\u5e93\u7ed8\u5236\u5b57\u7b26\u8f6e\u5ed3\u3002\u4f8b\u5982\uff0c\u7ed8\u5236\u5b57\u7b26&#39;A&#39;\u7684\u8f6e\u5ed3\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import freetype<\/p>\n<h2><strong>\u52a0\u8f7d\u5b57\u4f53\u6587\u4ef6<\/strong><\/h2>\n<p>face = freetype.Face(&#39;path\/to\/font.ttf&#39;)<\/p>\n<h2><strong>\u8bbe\u7f6e\u5b57\u7b26\u5927\u5c0f<\/strong><\/h2>\n<p>face.set_char_size(48*64)<\/p>\n<h2><strong>\u52a0\u8f7d\u5b57\u7b26&#39;A&#39;<\/strong><\/h2>\n<p>face.load_char(&#39;A&#39;)<\/p>\n<p>glyph = face.glyph<\/p>\n<h2><strong>\u83b7\u53d6\u5b57\u7b26\u8f6e\u5ed3<\/strong><\/h2>\n<p>outline = glyph.outline<\/p>\n<p>points = outline.points<\/p>\n<p>for point in points:<\/p>\n<p>    print(point)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3\u3001\u4fee\u6539\u5b57\u4f53\u4fe1\u606f<\/h3>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528<code>fontTools<\/code>\u5e93\u4fee\u6539\u5b57\u4f53\u6587\u4ef6\u4e2d\u7684\u4fe1\u606f\u3002\u4f8b\u5982\uff0c\u4fee\u6539\u5b57\u7b26&#39;A&#39;\u7684\u5b57\u5f62\u8f6e\u5ed3\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from fontTools.pens.ttGlyphPen import TTGlyphPen<\/p>\n<h2><strong>\u83b7\u53d6\u5b57\u7b26&#39;A&#39;\u7684\u5b57\u5f62<\/strong><\/h2>\n<p>glyph_set = font.getGlyphSet()<\/p>\n<p>glyph = glyph_set[&#39;A&#39;]<\/p>\n<h2><strong>\u521b\u5efa\u65b0\u7684\u5b57\u5f62\u8f6e\u5ed3<\/strong><\/h2>\n<p>pen = TTGlyphPen(glyph_set)<\/p>\n<p>pen.moveTo((100, 100))<\/p>\n<p>pen.lineTo((200, 100))<\/p>\n<p>pen.lineTo((200, 200))<\/p>\n<p>pen.lineTo((100, 200))<\/p>\n<p>pen.closePath()<\/p>\n<h2><strong>\u66ff\u6362\u539f\u6709\u5b57\u5f62<\/strong><\/h2>\n<p>glyph_set[&#39;A&#39;] = pen.glyph()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u56db\u3001\u5b9e\u73b0\u81ea\u5b9a\u4e49\u5b57\u4f53\u6548\u679c<\/h2>\n<\/p>\n<p><h3>1\u3001\u751f\u6210\u65b0\u7684\u5b57\u4f53\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u5b8c\u6210\u6240\u6709\u4fee\u6539\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>fontTools<\/code>\u5e93\u5c06\u4fee\u6539\u540e\u7684\u5b57\u4f53\u4fe1\u606f\u4fdd\u5b58\u4e3a\u65b0\u7684\u5b57\u4f53\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u751f\u6210\u65b0\u7684TTF\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4fdd\u5b58\u4fee\u6539\u540e\u7684\u5b57\u4f53\u6587\u4ef6<\/p>\n<p>font.save(&#39;path\/to\/new_font.ttf&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>2\u3001\u5728\u9879\u76ee\u4e2d\u4f7f\u7528\u81ea\u5b9a\u4e49\u5b57\u4f53<\/h3>\n<\/p>\n<p><p>\u751f\u6210\u65b0\u7684\u5b57\u4f53\u6587\u4ef6\u540e\uff0c\u53ef\u4ee5\u5728\u9879\u76ee\u4e2d\u4f7f\u7528\u81ea\u5b9a\u4e49\u5b57\u4f53\u3002\u4f8b\u5982\uff0c\u5728\u7f51\u9875\u9879\u76ee\u4e2d\u4f7f\u7528\u81ea\u5b9a\u4e49\u5b57\u4f53\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-html\">&lt;!DOCTYPE html&gt;<\/p>\n<p>&lt;html&gt;<\/p>\n<p>&lt;head&gt;<\/p>\n<p>    &lt;style&gt;<\/p>\n<p>        @font-face {<\/p>\n<p>            font-family: &#39;CustomFont&#39;;<\/p>\n<p>            src: url(&#39;path\/to\/new_font.ttf&#39;) format(&#39;truetype&#39;);<\/p>\n<p>        }<\/p>\n<p>        body {<\/p>\n<p>            font-family: &#39;CustomFont&#39;, sans-serif;<\/p>\n<p>        }<\/p>\n<p>    &lt;\/style&gt;<\/p>\n<p>&lt;\/head&gt;<\/p>\n<p>&lt;body&gt;<\/p>\n<p>    &lt;p&gt;\u8fd9\u662f\u4f7f\u7528\u81ea\u5b9a\u4e49\u5b57\u4f53\u7684\u6587\u672c\u3002&lt;\/p&gt;<\/p>\n<p>&lt;\/body&gt;<\/p>\n<p>&lt;\/html&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h2>\u4e94\u3001\u4f18\u5316\u5b57\u4f53\u8bbe\u8ba1\u4e0e\u6027\u80fd<\/h2>\n<\/p>\n<p><h3>1\u3001\u4f18\u5316\u5b57\u5f62\u8f6e\u5ed3<\/h3>\n<\/p>\n<p><p>\u5728\u8bbe\u8ba1\u5b57\u5e93\u5b57\u4f53\u65f6\uff0c\u53ef\u4ee5\u5bf9\u5b57\u5f62\u8f6e\u5ed3\u8fdb\u884c\u4f18\u5316\uff0c\u4ee5\u63d0\u9ad8\u5b57\u4f53\u7684\u663e\u793a\u6548\u679c\u548c\u6027\u80fd\u3002\u4f8b\u5982\uff0c\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684\u63a7\u5236\u70b9\uff0c\u5e73\u6ed1\u66f2\u7ebf\u7b49\u3002<\/p>\n<\/p>\n<p><h3>2\u3001\u538b\u7f29\u5b57\u4f53\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u5de5\u5177\u5bf9\u751f\u6210\u7684\u5b57\u4f53\u6587\u4ef6\u8fdb\u884c\u538b\u7f29\uff0c\u4ee5\u51cf\u5c0f\u6587\u4ef6\u4f53\u79ef\uff0c\u63d0\u9ad8\u52a0\u8f7d\u901f\u5ea6\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>woff2<\/code>\u5de5\u5177\u5c06TTF\u6587\u4ef6\u8f6c\u6362\u4e3aWOFF2\u683c\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">woff2_compress path\/to\/new_font.ttf<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>3\u3001\u4f7f\u7528\u5b50\u96c6\u5316\u6280\u672f<\/h3>\n<\/p>\n<p><p>\u5728\u9879\u76ee\u4e2d\u4f7f\u7528\u5b57\u5e93\u5b57\u4f53\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b50\u96c6\u5316\u6280\u672f\uff0c\u53ea\u5305\u542b\u9879\u76ee\u4e2d\u9700\u8981\u7684\u5b57\u7b26\uff0c\u4ee5\u51cf\u5c0f\u5b57\u4f53\u6587\u4ef6\u7684\u4f53\u79ef\u3002\u53ef\u4ee5\u4f7f\u7528<code>pyftsubset<\/code>\u5de5\u5177\u8fdb\u884c\u5b50\u96c6\u5316\u5904\u7406\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyftsubset path\/to\/new_font.ttf --text=&quot;\u9700\u8981\u7684\u5b57\u7b26\u96c6&quot; --output-file=path\/to\/subset_font.ttf<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528Python\u8bbe\u8ba1\u5b57\u5e93\u5b57\u4f53\uff0c\u5e76\u5728\u9879\u76ee\u4e2d\u5b9e\u73b0\u81ea\u5b9a\u4e49\u5b57\u4f53\u6548\u679c\u3002\u5728\u8bbe\u8ba1\u5b57\u5e93\u5b57\u4f53\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u5b57\u7b26\u7684\u6e05\u6670\u5ea6\u3001\u4e00\u81f4\u6027\u548c\u95f4\u8ddd\u7b49\u7ec6\u8282\uff0c\u540c\u65f6\u53ef\u4ee5\u901a\u8fc7\u4f18\u5316\u5b57\u5f62\u8f6e\u5ed3\u3001\u538b\u7f29\u5b57\u4f53\u6587\u4ef6\u548c\u4f7f\u7528\u5b50\u96c6\u5316\u6280\u672f\u63d0\u9ad8\u5b57\u4f53\u7684\u663e\u793a\u6548\u679c\u548c\u6027\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u521b\u5efa\u81ea\u5b9a\u4e49\u5b57\u4f53\uff1f<\/strong><br \/>\u4f7f\u7528Python\u521b\u5efa\u81ea\u5b9a\u4e49\u5b57\u4f53\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u7279\u5b9a\u7684\u5e93\u6765\u5b9e\u73b0\uff0c\u4f8b\u5982<code>fontTools<\/code>\u548c<code>Pillow<\/code>\u3002<code>fontTools<\/code>\u5141\u8bb8\u7528\u6237\u7f16\u8f91\u548c\u751f\u6210\u5b57\u4f53\u6587\u4ef6\uff0c\u800c<code>Pillow<\/code>\u53ef\u4ee5\u7528\u4e8e\u56fe\u50cf\u5904\u7406\uff0c\u4f8b\u5982\u5c06\u6587\u672c\u6e32\u67d3\u4e3a\u56fe\u50cf\u3002\u9996\u5148\uff0c\u60a8\u9700\u8981\u5b89\u88c5\u8fd9\u4e9b\u5e93\uff0c\u7136\u540e\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u811a\u672c\u6765\u5b9a\u4e49\u5b57\u5f62\u3001\u5b57\u6bcd\u548c\u5176\u4ed6\u5b57\u4f53\u5c5e\u6027\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u53ef\u4ee5\u4f7f\u7528\u54ea\u4e9b\u5e93\u6765\u8bbe\u8ba1\u5b57\u4f53\uff1f<\/strong><br \/>\u5728\u8bbe\u8ba1\u5b57\u4f53\u65f6\uff0c\u60a8\u53ef\u4ee5\u5229\u7528\u4e00\u4e9b\u5f3a\u5927\u7684Python\u5e93\uff0c\u5982<code>fontTools<\/code>\u3001<code>Pillow<\/code>\u3001<code>drawBot<\/code>\u548c<code>freetype-py<\/code>\u3002\u8fd9\u4e9b\u5e93\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u5e2e\u52a9\u7528\u6237\u521b\u5efa\u548c\u7f16\u8f91\u5b57\u4f53\u6587\u4ef6\uff0c\u5904\u7406\u6587\u672c\u6e32\u67d3\uff0c\u4ee5\u53ca\u751f\u6210\u5b57\u4f53\u7684\u4f4d\u56fe\u3002\u9009\u62e9\u5408\u9002\u7684\u5e93\u53d6\u51b3\u4e8e\u60a8\u7684\u5177\u4f53\u9700\u6c42\u548c\u9879\u76ee\u590d\u6742\u6027\u3002<\/p>\n<p><strong>\u8bbe\u8ba1\u5b57\u4f53\u7684\u8fc7\u7a0b\u4e2d\u9700\u8981\u6ce8\u610f\u54ea\u4e9b\u4e8b\u9879\uff1f<\/strong><br \/>\u5728\u8bbe\u8ba1\u5b57\u4f53\u65f6\uff0c\u5e94\u8003\u8651\u5230\u5b57\u5f62\u7684\u4e00\u81f4\u6027\u3001\u53ef\u8bfb\u6027\u548c\u98ce\u683c\u7684\u7edf\u4e00\u6027\u3002\u786e\u4fdd\u4e0d\u540c\u5b57\u6bcd\u548c\u7b26\u53f7\u4e4b\u95f4\u7684\u95f4\u8ddd\u5747\u8861\uff0c\u5e76\u4e14\u6bcf\u4e2a\u5b57\u6bcd\u7684\u5f62\u72b6\u90fd\u7b26\u5408\u8bbe\u8ba1\u8bed\u8a00\u3002\u6b64\u5916\uff0c\u8003\u8651\u5230\u5b57\u4f53\u5728\u4e0d\u540c\u5c3a\u5bf8\u4e0b\u7684\u8868\u73b0\u4e5f\u662f\u81f3\u5173\u91cd\u8981\u7684\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u5728\u4e0d\u540c\u5927\u5c0f\u4e0b\u8fdb\u884c\u6d4b\u8bd5\uff0c\u4ee5\u786e\u4fdd\u5b57\u4f53\u5728\u5404\u79cd\u5e94\u7528\u573a\u666f\u4e2d\u90fd\u80fd\u4fdd\u6301\u826f\u597d\u7684\u53ef\u8bfb\u6027\u548c\u7f8e\u89c2\u6027\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u8bbe\u8ba1\u5b57\u5e93\u5b57\u4f53\u7684\u6b65\u9aa4\u5305\u62ec\u4f7f\u7528\u5b57\u4f53\u7f16\u8f91\u5de5\u5177\u3001\u5c06\u5b57\u4f53\u6587\u4ef6\u8f6c\u6362\u4e3aPython\u53ef\u7528\u7684\u683c\u5f0f\u3001\u4f7f\u7528Python\u5e93 [&hellip;]","protected":false},"author":3,"featured_media":1023795,"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\/1023784"}],"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=1023784"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1023784\/revisions"}],"predecessor-version":[{"id":1023799,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1023784\/revisions\/1023799"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1023795"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1023784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1023784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1023784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}