{"id":204514,"date":"2025-05-29T12:29:21","date_gmt":"2025-05-29T04:29:21","guid":{"rendered":"https:\/\/server.hk\/cnblog\/204514\/"},"modified":"2025-05-29T12:29:21","modified_gmt":"2025-05-29T04:29:21","slug":"python-%e4%b8%ad%e7%9a%84%e6%97%a5%e6%9c%9f%e7%b1%bb%e5%9e%8b%e8%bd%ac%e6%8d%a2%ef%bc%9a%e6%98%be%e5%bc%8f%e4%b8%8e%e9%9a%90%e5%bc%8f%e8%bd%ac%e6%8d%a2-%e5%a4%a9%e8%9f%92","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/204514\/","title":{"rendered":"Python \u4e2d\u7684\u65e5\u671f\u7c7b\u578b\u8f6c\u6362\uff1a\u663e\u5f0f\u4e0e\u9690\u5f0f\u8f6c\u6362 | \u5929\u87d2"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>Python \u4e2d\u7684\u65e5\u671f\u7c7b\u578b\u8f6c\u6362\uff1a\u663e\u5f0f\u4e0e\u9690\u5f0f\u8f6c\u6362 | \u5929\u87d2<\/h1>\n<p>\u54c8\u55bd\uff01\u5927\u5bb6\u597d\uff0c\u5f88\u9ad8\u5174\u53c8\u89c1\u9762\u4e86\uff0c\u6211\u662f\u7684\u4e00\u540d\u4f5c\u8005\uff0c\u4eca\u5929\u7531\u6211\u7ed9\u5927\u5bb6\u5e26\u6765\u4e00\u7bc7<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aPython \u4e2d\u7684\u65e5\u671f\u7c7b\u578b\u8f6c\u6362\uff1a\u663e\u5f0f\u4e0e\u9690\u5f0f\u8f6c\u6362 | \u5929\u87d2\u300b<\/span>\uff0c\u672c\u6587\u4e3b\u8981\u4f1a\u8bb2\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5e0c\u671b\u5927\u5bb6\u4e00\u8d77\u5b66\u4e60\u8fdb\u6b65\uff0c\u4e5f\u6b22\u8fce\u5927\u5bb6\u5173\u6ce8\u3001\u70b9\u8d5e\u3001\u6536\u85cf\u3001\u8f6c\u53d1! \u4e0b\u9762\u5c31\u4e00\u8d77\u6765\u770b\u770b\u5427\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241109\/1731141587672f1fd309f5f.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>\u7b2c 6 \u5929\uff1a\u53d8\u91cf\u548c\u6570\u636e\u7c7b\u578b | 100 \u5929 python<\/strong><\/p>\n<p><em>100 \u5929\u7f16\u7a0b\u6311\u6218\u8d5b\u7684\u7b2c 7 \u5929<\/em> \u8ba9\u6211\u4eec\u4e86\u89e3\u4e86 <strong>python \u4e2d\u7684\u7c7b\u578b\u8f6c\u6362<\/strong> \u7684\u6982\u5ff5\u3002\u5bf9\u4e8e\u8bb8\u591a\u65b0\u5f00\u53d1\u4eba\u5458\u6765\u8bf4\uff0c\u7c7b\u578b\u8f6c\u6362\u4f3c\u4e4e\u662f\u4e00\u4e2a\u590d\u6742\u7684\u4e3b\u9898\u3002\u7136\u800c\uff0c\u7ecf\u8fc7\u4e00\u4e9b\u63a2\u7d22\uff0c\u60a8\u4f1a\u53d1\u73b0\u5b83\u662f\u4e00\u4e2a\u91cd\u8981\u4e14\u7b80\u5355\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u589e\u5f3a\u60a8\u5904\u7406\u53d8\u91cf\u548c\u6570\u636e\u7684\u65b9\u5f0f\u3002\u8fd9\u7bc7\u535a\u6587\u5c06\u4ecb\u7ecd\u7c7b\u578b\u8f6c\u6362\u7684\u57fa\u7840\u77e5\u8bc6\u3001\u4e3a\u4ec0\u4e48\u6709\u5fc5\u8981\u4ee5\u53ca\u5982\u4f55\u533a\u5206<em>\u663e\u5f0f<\/em>\u548c<em>\u9690\u5f0f<\/em>\u7c7b\u578b\u8f6c\u6362\u3002<\/p>\n<hr>\n<p>\u7c7b\u578b\u8f6c\u6362\uff0c\u6216\u8005\u8bf4\u7c7b\u578b\u8f6c\u6362\uff0c\u662f\u6307\u5728python\u4e2d\u5c06\u53d8\u91cf\u4ece\u4e00\u79cd\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u4e3a\u53e6\u4e00\u79cd\u6570\u636e\u7c7b\u578b\u3002\u4f8b\u5982\uff0c\u5982\u679c\u60a8\u6709\u4e00\u4e2a\u5305\u542b\u5b57\u7b26\u4e32\u6570\u5b57\u7684\u53d8\u91cf\uff0c\u4f8b\u5982\u201c27\u201d\uff0c\u5219\u53ef\u80fd\u9700\u8981\u5728\u6267\u884c\u7b97\u672f\u8fd0\u7b97\u4e4b\u524d\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u6570\u3002\u5426\u5219\uff0cpython \u4f1a\u5c06\u201c27\u201d\u89e3\u91ca\u4e3a\u5b57\u7b26\u4e32\u5e76\u5c06\u5176\u6dfb\u52a0\u5230\u5176\u4ed6\u5b57\u7b26\u4e32\uff0c\u800c\u4e0d\u662f\u6267\u884c\u7b97\u672f\u8fd0\u7b97\u3002<\/p>\n<p>\u8ba9\u6211\u4eec\u770b\u4e00\u4e2a\u793a\u4f8b\uff0c\u5176\u4e2d\u5c1d\u8bd5\u5c06\u5b57\u7b26\u4e32\u6570\u5b57\u4e0e\u6574\u6570\u76f8\u52a0\u3002<\/p>\n<pre># example of type casting\na = \"23\"   # this is a string\nb = 3      # this is an integer\n\n# direct addition without casting\nresult = a + str(b)  # this would concatenate instead of adding numerically\nprint(result)  # output: \"233\"\n<\/pre>\n<p>\u5982\u679c\u60a8\u5e0c\u671b\u7ed3\u679c\u4e3a 26\uff0c\u5219\u9700\u8981\u5148\u5c06\u201c23\u201d\u4ece\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\u3002<\/p>\n<p>\u4e0e\u8bb8\u591a\u7f16\u7a0b\u8bed\u8a00\u4e00\u6837\uff0cpython \u662f\u7c7b\u578b\u654f\u611f\u7684\u3002\u5982\u679c\u5728\u6ca1\u6709\u6b63\u786e\u8f6c\u6362\u7684\u60c5\u51b5\u4e0b\u5c06\u5b57\u7b26\u4e32\u89c6\u4e3a\u6574\u6570\uff0c\u53cd\u4e4b\u4ea6\u7136\uff0c\u5219\u53ef\u80fd\u4f1a\u5bfc\u81f4\u610f\u5916\u7ed3\u679c\u6216\u9519\u8bef\u3002\u901a\u8fc7\u7c7b\u578b\u8f6c\u6362\uff0c\u60a8\u53ef\u4ee5\u544a\u8bc9 python \u4ee5\u7279\u5b9a\u65b9\u5f0f\u89e3\u91ca\u6570\u636e\uff0c\u4ece\u800c\u786e\u4fdd\u51c6\u786e\u548c\u9884\u671f\u7684\u7ed3\u679c\u3002<\/p>\n<hr>\n<p>python \u63d0\u4f9b\u4e24\u79cd\u7c7b\u578b\u7684\u7c7b\u578b\u8f6c\u6362\uff1a<\/p>\n<ol>\n<li> <strong>\u663e\u5f0f\u7c7b\u578b\u8f6c\u6362<\/strong>\uff1a\u7a0b\u5e8f\u5458\u624b\u52a8\u5c06\u4e00\u79cd\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u4e3a\u53e6\u4e00\u79cd\u6570\u636e\u7c7b\u578b\u3002<\/li>\n<li> <strong>\u9690\u5f0f\u7c7b\u578b\u8f6c\u6362<\/strong>\uff1apython \u81ea\u52a8\u5c06\u4e00\u79cd\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u4e3a\u53e6\u4e00\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u4ee5\u9632\u6b62\u6570\u636e\u4e22\u5931\u6216\u9519\u8bef\u3002<\/li>\n<\/ol>\n<hr>\n<p>\u663e\u5f0f\u8f6c\u6362\u8981\u6c42\u60a8\u4f7f\u7528\u5185\u7f6e\u7684 python \u51fd\u6570\u624b\u52a8\u5c06\u503c\u4ece\u4e00\u79cd\u7c7b\u578b\u8f6c\u6362\u4e3a\u53e6\u4e00\u79cd\u7c7b\u578b\u3002\u5f53\u60a8\u6307\u5b9a\u663e\u5f0f\u7c7b\u578b\u8f6c\u6362\u65f6\uff0c\u60a8\u53ef\u4ee5\u5b8c\u5168\u63a7\u5236\u6240\u9700\u7684\u6570\u636e\u7c7b\u578b\u3002<\/p>\n<p>\u8fd9\u662f\u663e\u5f0f\u7c7b\u578b\u8f6c\u6362\u7684\u793a\u4f8b\uff0c\u5176\u4e2d a \u548c b \u5728\u6dfb\u52a0\u4e4b\u524d\u90fd\u4ece\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\uff1a<\/p>\n<pre>a = \"1\"  # string\nb = \"2\"  # string\n\n# explicitly converting a and b to integers\nresult = int(a) + int(b)\nprint(result)  # output: 3\n<\/pre>\n<p>\u5728\u6b64\u793a\u4f8b\u4e2d\uff0ca \u548c b \u4f7f\u7528 int() \u51fd\u6570\u663e\u5f0f\u8f6c\u6362\u4e3a\u6574\u6570\uff0c\u4f7f\u52a0\u6cd5\u6309\u9884\u671f\u8fdb\u884c\u3002<\/p>\n<h4> \u6709\u5173\u663e\u5f0f\u7c7b\u578b\u8f6c\u6362\u7684\u8981\u70b9 <\/h4>\n<ul>\n<li> <strong>\u8f6c\u6362\u65b9\u5f0f<\/strong>\uff1a\u5f00\u53d1\u8005\u53d1\u8d77\u3002<\/li>\n<li> <strong>\u4f7f\u7528\u7684\u51fd\u6570<\/strong>\uff1aint()\u3001float()\u3001str()\u3001tuple()\u3001set()\u3001dict()\u7b49<\/li>\n<li> <strong>\u793a\u4f8b<\/strong>: int(&#8220;123&#8221;), float(&#8220;45.67&#8221;) <\/li>\n<\/ul>\n<p>\u663e\u5f0f\u7c7b\u578b\u8f6c\u6362\u6309\u7167\u8981\u6c42\u6267\u884c\uff0c\u907f\u514d\u4e86 python \u4e2d\u7684\u7c7b\u578b\u4e0d\u5339\u914d\u3002<\/p>\n<hr>\n<p>\u5728\u9690\u5f0f\u7c7b\u578b\u8f6c\u6362\u4e2d\uff0cpython \u81ea\u52a8\u5904\u7406\u6570\u636e\u7c7b\u578b\u7684\u8f6c\u6362\u3002\u5f53\u9700\u8981\u5728\u8868\u8fbe\u5f0f\u4e2d\u4e00\u8d77\u4f7f\u7528\u4e0d\u540c\u7c7b\u578b\u65f6\uff0c\u901a\u5e38\u4f1a\u53d1\u751f\u6b64\u8fc7\u7a0b\u3002 python \u5c06\u8f83\u4f4e\u7cbe\u5ea6\u7c7b\u578b\u8f6c\u6362\u4e3a\u8f83\u9ad8\u7cbe\u5ea6\u7c7b\u578b\u4ee5\u907f\u514d\u6570\u636e\u4e22\u5931\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u5c06\u6574\u6570\u4e0e\u6d6e\u70b9\u6570\u76f8\u52a0\uff0cpython \u4f1a\u5728\u6267\u884c\u52a0\u6cd5\u4e4b\u524d\u81ea\u52a8\u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570\uff1a<\/p>\n<pre>c = 1.9     # float\nd = 8       # integer\n\n# implicit type casting by python\nresult = c + d\nprint(result)  # output: 9.9\n<\/pre>\n<p>\u5728\u6b64\u793a\u4f8b\u4e2d\uff0cpython \u81ea\u52a8\u5c06 d \u4ece\u6574\u6570\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570\u4ee5\u5339\u914d c\u3002\u6b64\u8fc7\u7a0b\u79f0\u4e3a\u9690\u5f0f\u7c7b\u578b\u8f6c\u6362\uff0c\u6709\u52a9\u4e8e\u786e\u4fdd\u64cd\u4f5c\u987a\u5229\u8fd0\u884c\uff0c\u65e0\u9700\u624b\u52a8\u5e72\u9884\u3002<\/p>\n<h4> \u6709\u5173\u9690\u5f0f\u7c7b\u578b\u8f6c\u6362\u7684\u8981\u70b9 <\/h4>\n<ul>\n<li> <strong>\u8f6c\u6362\u65b9\u6cd5<\/strong>\uff1apython\u81ea\u52a8\u6267\u884c\u3002<\/li>\n<li> <strong>\u793a\u4f8b<\/strong>\uff1a\u5c06\u6574\u6570\u548c\u6d6e\u70b9\u6570\u76f8\u52a0\uff0c\u5c06\u7ed3\u679c\u8f6c\u6362\u4e3a\u6d6e\u70b9\u6570\u3002<\/li>\n<li> <strong>\u597d\u5904<\/strong>\uff1a\u786e\u4fdd\u6570\u636e\u5b8c\u6574\u6027\u5e76\u51cf\u5c11\u7b80\u5355\u60c5\u51b5\u4e0b\u624b\u52a8\u8f6c\u6362\u7684\u9700\u8981\u3002<\/li>\n<\/ul>\n<hr>\n<ul>\n<li> <strong>\u5f53\u60a8\u9700\u8981\u4e25\u683c\u63a7\u5236\u6570\u636e\u7c7b\u578b\u65f6\uff08\u4f8b\u5982\u8f93\u5165\u9a8c\u8bc1\u6216\u8f6c\u6362\u7528\u6237\u8f93\u5165\u65f6\uff09\uff0c\u8bf7\u4f7f\u7528\u663e\u5f0f\u7c7b\u578b\u8f6c\u6362<\/strong>\u3002<\/li>\n<li> <strong>\u9690\u5f0f\u7c7b\u578b\u8f6c\u6362<\/strong> \u5bf9\u4e8e\u7b80\u5355\u8868\u8fbe\u5f0f\u6765\u8bf4\u901a\u5e38\u5c31\u8db3\u591f\u4e86\uff0cpython \u53ef\u4ee5\u6beb\u65e0\u9519\u8bef\u5730\u5904\u7406\u7c7b\u578b\u8c03\u6574\u3002<\/li>\n<\/ul>\n<p>\u4f46\u662f\uff0c\u8bf7\u59cb\u7ec8\u786e\u4fdd\u60a8\u7684\u8f6c\u6362\u7b26\u5408\u903b\u8f91\u3002\u4f8b\u5982\uff0c\u5c1d\u8bd5\u5c06\u201csaim\u201d\u8fd9\u6837\u7684\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\u5c06\u5f15\u53d1\u9519\u8bef\uff0c\u56e0\u4e3a\u6570\u636e\u4e0d\u4ee3\u8868\u6709\u6548\u7684\u6570\u5b57\u3002<\/p>\n<hr>\n<p>python \u63d0\u4f9b\u4e86\u51e0\u4e2a\u7528\u4e8e\u663e\u5f0f\u7c7b\u578b\u8f6c\u6362\u7684\u5185\u7f6e\u51fd\u6570\u3002\u8fd9\u662f\u4e00\u4e2a\u5feb\u901f\u6982\u8ff0\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th>function<\/th>\n<th>description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>int()<\/td>\n<td>converts data to an integer type<\/td>\n<\/tr>\n<tr>\n<td>float()<\/td>\n<td>converts data to a floating-point number<\/td>\n<\/tr>\n<tr>\n<td>str()<\/td>\n<td>converts data to a string<\/td>\n<\/tr>\n<tr>\n<td>ord()<\/td>\n<td>converts a character to its unicode integer<\/td>\n<\/tr>\n<tr>\n<td>hex()<\/td>\n<td>converts an integer to a hexadecimal string<\/td>\n<\/tr>\n<tr>\n<td>oct()<\/td>\n<td>converts an integer to an octal string<\/td>\n<\/tr>\n<tr>\n<td>tuple()<\/td>\n<td>converts data to a tuple<\/td>\n<\/tr>\n<tr>\n<td>set()<\/td>\n<td>converts data to a set<\/td>\n<\/tr>\n<tr>\n<td>list()<\/td>\n<td>converts data to a list<\/td>\n<\/tr>\n<tr>\n<td>dict()<\/td>\n<td>converts data to a dictionary<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u4e9b\u51fd\u6570\u53ef\u4ee5\u6839\u636e\u9700\u8981\u534f\u52a9python\u4e2d\u4e0d\u540c\u6570\u636e\u7c7b\u578b\u4e4b\u95f4\u7684\u8f6c\u6362\u3002<\/p>\n<hr>\n<p>\u5c1d\u8bd5\u8fd9\u4e2a\u7b80\u5355\u7684\u7ec3\u4e60\u6765\u7ec3\u4e60\u663e\u5f0f\u7c7b\u578b\u8f6c\u6362\u3002\u7f16\u5199\u4e00\u4e2a\u7a0b\u5e8f\uff0c\u63a5\u53d7\u4e24\u4e2a\u5b57\u7b26\u4e32\u6570\u5b57\uff0c\u5c06\u5b83\u4eec\u8f6c\u6362\u4e3a\u6574\u6570\uff0c\u5e76\u8f93\u51fa\u5b83\u4eec\u7684\u548c\u3002<\/p>\n<pre># Practical Exercise\na = \"22\"  # String\nb = \"10\"  # String\n\n# Convert to integers and calculate the sum\nresult = int(a) + int(b)\nprint(\"The Sum of both the numbers is\", result)\n<\/pre>\n<p>\u9884\u671f\u8f93\u51fa\uff1a\u4e24\u4e2a\u6570\u5b57\u7684\u603b\u548c\u4e3a 32<\/p>\n<hr>\n<p>\u7c7b\u578b\u8f6c\u6362\u662fpython\u4e2d\u7684\u4e00\u4e2a\u57fa\u672c\u6982\u5ff5\uff0c\u5141\u8bb8\u60a8\u624b\u52a8\uff08\u663e\u5f0f\uff09\u6216\u81ea\u52a8\uff08\u9690\u5f0f\uff09\u66f4\u6539\u6570\u636e\u7c7b\u578b\u3002\u65e0\u8bba\u60a8\u662f\u6e05\u7406\u7528\u6237\u8f93\u5165\u3001\u683c\u5f0f\u5316\u8ba1\u7b97\u6570\u636e\u8fd8\u662f\u4f18\u5316\u4ee3\u7801\u6027\u80fd\uff0c\u4e86\u89e3\u7c7b\u578b\u8f6c\u6362\u90fd\u6709\u52a9\u4e8e\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u9760\u6027\u548c\u53ef\u8bfb\u6027\u3002\u663e\u5f0f\u8f6c\u6362\u662f\u5f00\u53d1\u4eba\u5458\u9a71\u52a8\u7684\uff0c\u5728\u7cbe\u5ea6\u81f3\u5173\u91cd\u8981\u65f6\u4f7f\u7528\uff0c\u800c\u9690\u5f0f\u8f6c\u6362\u6709\u52a9\u4e8e python \u65e0\u7f1d\u5904\u7406\u6df7\u5408\u6570\u636e\u7c7b\u578b\u3002<\/p>\n<p>\u5c06\u6b64\u535a\u5ba2\u6dfb\u52a0\u4e3a\u4e66\u7b7e\uff0c\u4ee5\u4fbf\u5728\u9700\u8981\u590d\u4e60\u65f6\u91cd\u65b0\u5ba1\u89c6\u7c7b\u578b\u8f6c\u6362\uff0c\u5e76\u7ee7\u7eed\u5173\u6ce8\u4e0b\u4e00\u7bc7\u6587\u7ae0\u4e2d\u6709\u5173 python \u7f16\u7a0b\u7684\u66f4\u591a\u4fe1\u606f\uff01<\/p>\n<p>\u8bf7\u6211\u559d\u676f\u5496\u5561<\/p>\n<p>\u6587\u4e2d\u5173\u4e8e\u7684\u77e5\u8bc6\u4ecb\u7ecd\uff0c\u5e0c\u671b\u5bf9\u4f60\u7684\u5b66\u4e60\u6709\u6240\u5e2e\u52a9\uff01\u82e5\u662f\u53d7\u76ca\u532a\u6d45\uff0c\u90a3\u5c31\u52a8\u52a8\u9f20\u6807\u6536\u85cf\u8fd9\u7bc7\u300aPython \u4e2d\u7684\u65e5\u671f\u7c7b\u578b\u8f6c\u6362\uff1a\u663e\u5f0f\u4e0e\u9690\u5f0f\u8f6c\u6362 | \u5929\u87d2\u300b\u6587\u7ae0\u5427\uff0c\u4e5f\u53ef\u5173\u6ce8\u516c\u4f17\u53f7\u4e86\u89e3\u76f8\u5173\u6280\u672f\u6587\u7ae0\u3002<\/p>\n<p>      \u7248\u672c\u58f0\u660e \u672c\u6587\u8f6c\u8f7d\u4e8e\uff1adev.to \u5982\u6709\u4fb5\u72af\uff0c\u8bf7\u8054\u7cfb\u5220\u9664<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python \u4e2d\u7684\u65e5\u671f\u7c7b\u578b\u8f6c\u6362\uff1a&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-204514","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/204514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=204514"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/204514\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=204514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=204514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=204514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}