{"id":1078424,"date":"2025-01-08T12:11:28","date_gmt":"2025-01-08T04:11:28","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1078424.html"},"modified":"2025-01-08T12:11:30","modified_gmt":"2025-01-08T04:11:30","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8python%e4%b8%8a%e8%be%93%e5%85%a5%e7%89%b9%e6%ae%8a%e7%ac%a6%e5%8f%b7-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1078424.html","title":{"rendered":"\u5982\u4f55\u5728Python\u4e0a\u8f93\u5165\u7279\u6b8a\u7b26\u53f7"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24182000\/ecf964e3-d641-40b6-9c31-e7a321800160.webp\" alt=\"\u5982\u4f55\u5728Python\u4e0a\u8f93\u5165\u7279\u6b8a\u7b26\u53f7\" \/><\/p>\n<p><p> \u5728Python\u4e0a\u8f93\u5165\u7279\u6b8a\u7b26\u53f7\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\uff1a\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26\u3001Unicode\u7f16\u7801\u3001ASCII\u7801\u3001\u7b2c\u4e09\u65b9\u5e93\u3002<strong>\u8f6c\u4e49\u5b57\u7b26\u3001Unicode\u7f16\u7801\u3001ASCII\u7801\u3001\u7b2c\u4e09\u65b9\u5e93<\/strong>\u3002\u8be6\u7ec6\u6765\u8bf4\uff0c<strong>\u8f6c\u4e49\u5b57\u7b26<\/strong>\u662f\u5728\u5b57\u7b26\u4e32\u4e2d\u4f7f\u7528\u53cd\u659c\u6760\uff08\\\uff09\u52a0\u4e0a\u7279\u5b9a\u5b57\u7b26\u6765\u8868\u793a\u7279\u6b8a\u7b26\u53f7\uff0c\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u65b9\u4fbf\u4e14\u5e38\u7528\u3002\u4f8b\u5982\uff0c\u6362\u884c\u7b26\u7528<code>\\n<\/code>\u8868\u793a\uff0c\u5236\u8868\u7b26\u7528<code>\\t<\/code>\u8868\u793a\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u79cd\u65b9\u6cd5\u7684\u4f7f\u7528\u65b9\u5f0f\u548c\u76f8\u5173\u6280\u5de7\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u8f6c\u4e49\u5b57\u7b26<\/h3>\n<\/p>\n<p><p>\u8f6c\u4e49\u5b57\u7b26\u662f\u5728\u5b57\u7b26\u4e32\u4e2d\u4f7f\u7528\u53cd\u659c\u6760\uff08\\\uff09\u52a0\u4e0a\u7279\u5b9a\u5b57\u7b26\u6765\u8868\u793a\u7279\u6b8a\u7b26\u53f7\u3002Python\u4e2d\u5e38\u7528\u7684\u8f6c\u4e49\u5b57\u7b26\u5305\u62ec\u6362\u884c\u7b26<code>\\n<\/code>\u3001\u5236\u8868\u7b26<code>\\t<\/code>\u3001\u5f15\u53f7<code>\\&quot;<\/code>\u548c\u53cd\u659c\u6760<code>\\<\/code>\u7b49\u3002<\/p>\n<\/p>\n<p><h4>1. \u6362\u884c\u7b26<\/h4>\n<\/p>\n<p><p>\u6362\u884c\u7b26<code>\\n<\/code>\u7528\u4e8e\u5728\u5b57\u7b26\u4e32\u4e2d\u63d2\u5165\u4e00\u4e2a\u6362\u884c\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, World!\\nWelcome to Python programming.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code>Hello, World!<\/p>\n<p>Welcome to Python programming.<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5236\u8868\u7b26<\/h4>\n<\/p>\n<p><p>\u5236\u8868\u7b26<code>\\t<\/code>\u7528\u4e8e\u5728\u5b57\u7b26\u4e32\u4e2d\u63d2\u5165\u4e00\u4e2a\u5236\u8868\u7b26\uff0c\u76f8\u5f53\u4e8e\u6309\u4e0bTab\u952e\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Name\\tAge\\tCity&quot;)<\/p>\n<p>print(&quot;Alice\\t30\\tNew York&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code>Name    Age    City<\/p>\n<p>Alice   30     New York<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5f15\u53f7<\/h4>\n<\/p>\n<p><p>\u5728\u5b57\u7b26\u4e32\u4e2d\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26<code>\\&quot;<\/code>\u53ef\u4ee5\u63d2\u5165\u53cc\u5f15\u53f7\uff0c\u4f7f\u7528<code>\\&#39;<\/code>\u53ef\u4ee5\u63d2\u5165\u5355\u5f15\u53f7\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;He s<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>d, \\&quot;Python is amazing!\\&quot;&quot;)<\/p>\n<p>print(&#39;It\\&#39;s a beautiful day.&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code>He said, &quot;Python is amazing!&quot;<\/p>\n<p>It&#39;s a beautiful day.<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001Unicode\u7f16\u7801<\/h3>\n<\/p>\n<p><p>Unicode\u7f16\u7801\u662f\u4e00\u79cd\u5b57\u7b26\u7f16\u7801\u6807\u51c6\uff0c\u80fd\u591f\u8868\u793a\u4e16\u754c\u4e0a\u5927\u591a\u6570\u4e66\u5199\u7cfb\u7edf\u4e2d\u7684\u5b57\u7b26\u3002Python\u652f\u6301\u4f7f\u7528Unicode\u5b57\u7b26\uff0c\u53ef\u4ee5\u901a\u8fc7<code>\\u<\/code>\u540e\u8ddf\u56db\u4f4d\u5341\u516d\u8fdb\u5236\u6570\u6765\u8868\u793aUnicode\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h4>1. \u57fa\u672c\u4f7f\u7528<\/h4>\n<\/p>\n<p><p>\u4f8b\u5982\uff0cUnicode\u5b57\u7b26\u201c\u03b1\u201d\u7684\u7f16\u7801\u662f<code>\\u03B1<\/code>\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u5728Python\u4e2d\u4f7f\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;\\u03B1&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code>\u03b1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u4f7f\u7528Unicode\u5b57\u7b26\u540d\u79f0<\/h4>\n<\/p>\n<p><p>\u5728Python 3\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Unicode\u5b57\u7b26\u540d\u79f0\u6765\u8868\u793a\u7279\u6b8a\u7b26\u53f7\uff0c\u683c\u5f0f\u4e3a<code>\\N{\u5b57\u7b26\u540d\u79f0}<\/code>\u3002\u4f8b\u5982\uff0c\u5e0c\u814a\u5b57\u6bcd\u201c\u03b1\u201d\u7684Unicode\u5b57\u7b26\u540d\u79f0\u662f<code>GREEK SMALL LETTER ALPHA<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;\\N{GREEK SMALL LETTER ALPHA}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code>\u03b1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u9ad8\u4f4dUnicode\u5b57\u7b26<\/h4>\n<\/p>\n<p><p>\u5bf9\u4e8e\u9ad8\u4f4dUnicode\u5b57\u7b26\uff0c\u53ef\u4ee5\u4f7f\u7528<code>\\U<\/code>\u540e\u8ddf\u516b\u4f4d\u5341\u516d\u8fdb\u5236\u6570\u6765\u8868\u793a\u3002\u4f8b\u5982\uff0cUnicode\u5b57\u7b26\u201c\ud800\udf48\u201d\u7684\u7f16\u7801\u662f<code>\\U00010348<\/code>\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u5728Python\u4e2d\u4f7f\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;\\U00010348&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code>\ud800\udf48<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001ASCII\u7801<\/h3>\n<\/p>\n<p><p>ASCII\u7801\u662f\u4e00\u79cd\u5b57\u7b26\u7f16\u7801\u6807\u51c6\uff0c\u5305\u542b128\u4e2a\u5b57\u7b26\uff0c\u5305\u62ec\u63a7\u5236\u5b57\u7b26\u548c\u53ef\u6253\u5370\u5b57\u7b26\u3002\u53ef\u4ee5\u901a\u8fc7<code>chr()<\/code>\u51fd\u6570\u5c06ASCII\u7801\u8f6c\u6362\u4e3a\u5b57\u7b26\uff0c\u901a\u8fc7<code>ord()<\/code>\u51fd\u6570\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3aASCII\u7801\u3002<\/p>\n<\/p>\n<p><h4>1. <code>chr()<\/code>\u51fd\u6570<\/h4>\n<\/p>\n<p><p><code>chr()<\/code>\u51fd\u6570\u5c06ASCII\u7801\u8f6c\u6362\u4e3a\u5bf9\u5e94\u7684\u5b57\u7b26\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(chr(65))<\/p>\n<p>print(chr(97))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code>A<\/p>\n<p>a<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. <code>ord()<\/code>\u51fd\u6570<\/h4>\n<\/p>\n<p><p><code>ord()<\/code>\u51fd\u6570\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3a\u5bf9\u5e94\u7684ASCII\u7801\u3002\u793a\u4f8b\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(ord(&#39;A&#39;))<\/p>\n<p>print(ord(&#39;a&#39;))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code>65<\/p>\n<p>97<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u7b2c\u4e09\u65b9\u5e93<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u5185\u7f6e\u7684\u65b9\u6cd5\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u6765\u8f93\u5165\u548c\u5904\u7406\u7279\u6b8a\u7b26\u53f7\u3002\u4f8b\u5982\uff0c<code>emoji<\/code>\u5e93\u53ef\u4ee5\u65b9\u4fbf\u5730\u5728Python\u4e2d\u4f7f\u7528\u8868\u60c5\u7b26\u53f7\uff0c<code>unidecode<\/code>\u5e93\u53ef\u4ee5\u5c06Unicode\u5b57\u7b26\u8f6c\u6362\u4e3a\u8fd1\u4f3c\u7684ASCII\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h4>1. <code>emoji<\/code>\u5e93<\/h4>\n<\/p>\n<p><p><code>emoji<\/code>\u5e93\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u63a5\u53e3\u6765\u4f7f\u7528\u8868\u60c5\u7b26\u53f7\u3002\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5<code>emoji<\/code>\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install emoji<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u5728Python\u4e2d\u8f93\u5165\u8868\u60c5\u7b26\u53f7\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import emoji<\/p>\n<p>print(emoji.emojize(&quot;Python is fun :thumbs_up:&quot;))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code>Python is fun \ud83d\udc4d<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. <code>unidecode<\/code>\u5e93<\/h4>\n<\/p>\n<p><p><code>unidecode<\/code>\u5e93\u53ef\u4ee5\u5c06Unicode\u5b57\u7b26\u8f6c\u6362\u4e3a\u8fd1\u4f3c\u7684ASCII\u5b57\u7b26\uff0c\u9002\u7528\u4e8e\u9700\u8981\u5904\u7406\u975eASCII\u5b57\u7b26\u7684\u573a\u666f\u3002\u9996\u5148\uff0c\u9700\u8981\u5b89\u88c5<code>unidecode<\/code>\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install unidecode<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u5c06Unicode\u5b57\u7b26\u8f6c\u6362\u4e3aASCII\u5b57\u7b26\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from unidecode import unidecode<\/p>\n<p>print(unidecode(&quot;\u3053\u3093\u306b\u3061\u306f&quot;))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code>konnichiha<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u8f93\u5165\u7279\u6b8a\u7b26\u53f7\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26\u3001Unicode\u7f16\u7801\u3001ASCII\u7801\u4ee5\u53ca\u7b2c\u4e09\u65b9\u5e93\u3002<strong>\u8f6c\u4e49\u5b57\u7b26<\/strong>\u975e\u5e38\u65b9\u4fbf\u4e14\u5e38\u7528\uff0c\u9002\u7528\u4e8e\u63d2\u5165\u6362\u884c\u7b26\u3001\u5236\u8868\u7b26\u3001\u5f15\u53f7\u7b49\u3002<strong>Unicode\u7f16\u7801<\/strong>\u80fd\u591f\u8868\u793a\u4e16\u754c\u4e0a\u5927\u591a\u6570\u4e66\u5199\u7cfb\u7edf\u4e2d\u7684\u5b57\u7b26\uff0c\u9002\u7528\u4e8e\u9700\u8981\u5904\u7406\u591a\u8bed\u8a00\u5b57\u7b26\u7684\u573a\u666f\u3002<strong>ASCII\u7801<\/strong>\u9002\u7528\u4e8e\u5904\u7406\u57fa\u672c\u7684\u5b57\u7b26\u96c6\uff0c\u901a\u8fc7<code>chr()<\/code>\u548c<code>ord()<\/code>\u51fd\u6570\u53ef\u4ee5\u65b9\u4fbf\u5730\u8fdb\u884c\u8f6c\u6362\u3002<strong>\u7b2c\u4e09\u65b9\u5e93<\/strong>\u5982<code>emoji<\/code>\u548c<code>unidecode<\/code>\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7ea7\u7684\u529f\u80fd\uff0c\u9002\u7528\u4e8e\u5904\u7406\u8868\u60c5\u7b26\u53f7\u548c\u975eASCII\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5728Python\u4e2d\u65b9\u4fbf\u5730\u8f93\u5165\u548c\u5904\u7406\u5404\u79cd\u7279\u6b8a\u7b26\u53f7\uff0c\u6ee1\u8db3\u4e0d\u540c\u573a\u666f\u7684\u9700\u6c42\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u4f60\u5728Python\u7f16\u7a0b\u4e2d\u8f93\u5165\u7279\u6b8a\u7b26\u53f7\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8f93\u5165\u5e38\u89c1\u7684\u7279\u6b8a\u7b26\u53f7\uff1f<\/strong><br \/>\u5728Python\u4e2d\u8f93\u5165\u7279\u6b8a\u7b26\u53f7\uff0c\u53ef\u4ee5\u901a\u8fc7\u76f4\u63a5\u5728\u5b57\u7b26\u4e32\u4e2d\u8f93\u5165\u5b83\u4eec\uff0c\u6216\u8005\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26\u3002\u6bd4\u5982\uff0c\u6362\u884c\u7b26\u53ef\u4ee5\u7528<code>\\n<\/code>\u8868\u793a\uff0c\u5236\u8868\u7b26\u7528<code>\\t<\/code>\u8868\u793a\u3002\u5bf9\u4e8eUnicode\u5b57\u7b26\uff0c\u53ef\u4ee5\u4f7f\u7528<code>&#39;\\u&#39;<\/code>\u540e\u8ddf\u56db\u4f4d\u5341\u516d\u8fdb\u5236\u6570\u5b57\u7684\u65b9\u5f0f\u3002\u4f8b\u5982\uff0c\u8f93\u5165\u20ac\u7b26\u53f7\u53ef\u4ee5\u7528<code>&#39;\\u20AC&#39;<\/code>\u3002<\/p>\n<p><strong>Python\u652f\u6301\u54ea\u4e9b\u7279\u6b8a\u7b26\u53f7\u7684\u8f93\u5165\u65b9\u5f0f\uff1f<\/strong><br \/>Python\u652f\u6301\u591a\u79cd\u8f93\u5165\u7279\u6b8a\u7b26\u53f7\u7684\u65b9\u5f0f\uff0c\u5305\u62ecASCII\u5b57\u7b26\u3001Unicode\u5b57\u7b26\u4ee5\u53ca\u4f7f\u7528\u8f6c\u4e49\u5e8f\u5217\u3002\u4f60\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u76f4\u63a5\u4f7f\u7528\u8fd9\u4e9b\u5b57\u7b26\uff0c\u6216\u8005\u901a\u8fc7\u8f93\u5165\u6cd5\u548c\u952e\u76d8\u7ec4\u5408\u952e\u6765\u8f93\u5165\u3002\u540c\u65f6\uff0c\u5bf9\u4e8e\u975eASCII\u5b57\u7b26\uff0c\u786e\u4fdd\u6587\u4ef6\u7f16\u7801\u4e3aUTF-8\uff0c\u4ee5\u4fbf\u6b63\u786e\u8bc6\u522b\u548c\u663e\u793a\u8fd9\u4e9b\u7b26\u53f7\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u7528\u6237\u8f93\u5165\u7684\u7279\u6b8a\u7b26\u53f7\uff1f<\/strong><br \/>\u5728\u5904\u7406\u7528\u6237\u8f93\u5165\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u63a5\u6536\u5b57\u7b26\u4e32\uff0c\u5305\u62ec\u7279\u6b8a\u7b26\u53f7\u3002\u5982\u679c\u7528\u6237\u8f93\u5165\u4e86\u7279\u6b8a\u7b26\u53f7\uff0c\u786e\u4fdd\u5bf9\u5176\u8fdb\u884c\u9002\u5f53\u7684\u5904\u7406\uff0c\u4f8b\u5982\u4f7f\u7528\u5b57\u7b26\u4e32\u51fd\u6570\u8fdb\u884c\u6e05\u7406\u6216\u9a8c\u8bc1\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>repr()<\/code>\u51fd\u6570\u53ef\u4ee5\u67e5\u770b\u8f93\u5165\u7684\u539f\u59cb\u8868\u793a\uff0c\u5e2e\u52a9\u8c03\u8bd5\u548c\u786e\u8ba4\u8f93\u5165\u662f\u5426\u6b63\u786e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e0a\u8f93\u5165\u7279\u6b8a\u7b26\u53f7\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\uff1a\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26\u3001Unicode\u7f16\u7801\u3001ASCII\u7801\u3001\u7b2c\u4e09\u65b9\u5e93\u3002 [&hellip;]","protected":false},"author":3,"featured_media":1078432,"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\/1078424"}],"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=1078424"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1078424\/revisions"}],"predecessor-version":[{"id":1078435,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1078424\/revisions\/1078435"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1078432"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1078424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1078424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1078424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}