{"id":2460,"date":"2015-08-02T09:41:59","date_gmt":"2015-08-02T01:41:59","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=2460"},"modified":"2015-08-02T09:41:59","modified_gmt":"2015-08-02T01:41:59","slug":"python%e7%9a%84%e7%9f%a5%e8%af%86%e7%82%b9%e5%9b%9e%e9%a1%be","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/2460.html","title":{"rendered":"Python\u7684\u77e5\u8bc6\u70b9\u56de\u987e"},"content":{"rendered":"<p>=Start=<\/p>\n<p>\u5468\u672b\u5317\u4eac\u96fe\u973e\uff0c\u6ca1\u6709\u51fa\u95e8\uff0c\u5b85\u5728\u5bb6\u91cc\u628a\u300a\u7f16\u5199\u9ad8\u8d28\u91cf\u4ee3\u7801\uff1a\u6539\u5584Python\u7a0b\u5e8f\u768491\u4e2a\u5efa\u8bae\u300b\u8fd9\u672c\u4e66\u770b\u4e86\u4e00\u904d\uff0c\u7ed3\u5408\u4e4b\u524d\u770b\u7684\u300aPython\u9ad8\u624b\u4e4b\u8def\u300b\uff0c\u56de\u987e\u4e86\u4e00\u4e0bPython\u4e2d\u7684\u77e5\u8bc6\u70b9\uff0c\u5728\u6b64\u8bb0\u5f55\u4e00\u4e0b\uff1a<\/p>\n<h6>\u4ec0\u4e48\u6837\u7684\u4ee3\u7801\u624d\u591fPythonic\uff1f<\/h6>\n<p>\u8fd9\u662f\u5f88\u96be\u5b9a\u4e49\u7684\u3002\u800c\u4e14\u5bf9\u4e8ePythonic\u7684\u6982\u5ff5\uff0c\u4e0d\u540c\u7684\u4eba\u6709\u4e0d\u540c\u7684\u770b\u6cd5\u3002\u4f46\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\u8fd8\u662f\u503c\u5f97\u53c2\u8003\u7684\uff1a<\/p>\n<ol>\n<li>\u4ee3\u7801\u5e94\u5145\u5206\u4f53\u73b0Python\u81ea\u8eab\u7684\u98ce\u683c\uff08\u770b\u8d77\u6765\u50cf\u4f2a\u7801\u822c\u6e05\u6670\u6613\u61c2\uff09\uff1b<\/li>\n<li>\u5bf9Python\u8bed\u6cd5\u6709\u5145\u5206\u7406\u89e3\uff0c\u719f\u6089\u5e38\u89c1\u7684idioms\uff0c\u4f46\u4e0d\u5e94\u5f53\u4e3a\u4e86\u4f7f\u7528\u800c\u4f7f\u7528\uff1b<\/li>\n<li>\u5bf9Python\u6807\u51c6\u5e93\u6709\u5145\u5206\u7684\u7406\u89e3\uff0c\u7279\u522b\u662f\u5185\u7f6e\u51fd\u6570\u548c\u5185\u7f6e\u6570\u636e\u7c7b\u578b\uff1b<\/li>\n<li>\u5b66\u4e60Python\u4e0d\u540c\u7248\u672c\u63d0\u4f9b\u7684\u65b0\u7279\u6027\uff0c\u4ee5\u53ca\u638c\u63e1\u5b83\u7684\u53d8\u5316\u8d8b\u52bf\uff1b<\/li>\n<li>\u5b66\u4e60\u516c\u8ba4\u7684Pythonic\u98ce\u683c\u7684\u4ee3\u7801\uff0c\u6bd4\u5982\uff1aFlask\u3001requests\u7b49\uff1b<\/li>\n<\/ol>\n<hr \/>\n<h6>\u4ee3\u7801\u89c4\u8303<\/h6>\n<p>\u4f7f\u7528\u7c7b\u4f3c\u4e8e PEP8 \u8fd9\u6837\u7684\u4ee3\u7801\u89c4\u8303\/\u98ce\u683c\u68c0\u6d4b\u5de5\u5177\u5e2e\u52a9\u5b66\u4e60\uff1a\u4ee3\u7801\u5e03\u5c40\u3001\u6ce8\u91ca\u3001\u547d\u540d\u89c4\u8303\u7b49\u65b9\u9762\u7684\u8981\u6c42\u3002<\/p>\n<ul>\n<li><a href=\"http:\/\/python.net\/~goodger\/projects\/pycon\/2007\/idiomatic\/handout.html\" target=\"_blank\">http:\/\/python.net\/~goodger\/projects\/pycon\/2007\/idiomatic\/handout.html<\/a><\/li>\n<li><a href=\"http:\/\/docs.python-guide.org\/en\/latest\/writing\/style\/\" target=\"_blank\">http:\/\/docs.python-guide.org\/en\/latest\/writing\/style\/<\/a><\/li>\n<li><a href=\"http:\/\/binhminhcs.blogspot.com\/2011\/12\/python-pythonic-pythoneer-pythonist.html\" target=\"_blank\">http:\/\/binhminhcs.blogspot.com\/2011\/12\/python-pythonic-pythoneer-pythonist.html<\/a><\/li>\n<\/ul>\n<hr \/>\n<h6>\u6784\u5efa\u5408\u7406\u7684\u5305\u5c42\u6b21\u6765\u7ba1\u7406module<\/h6>\n<p>\u672c\u8d28\u4e0a\u6bcf\u4e00\u4e2aPython\u6587\u4ef6\u90fd\u662f\u4e00\u4e2a\u6a21\u5757\uff0c\u4f7f\u7528\u6a21\u5757\u53ef\u4ee5\u589e\u5f3a\u4ee3\u7801\u7684\u53ef\u7ef4\u62a4\u6027\u548c\u53ef\u91cd\u7528\u6027\u3002\u4f46\u663e\u7136\u5728\u5927\u7684\u9879\u76ee\u4e2d\u5c06\u6240\u6709\u7684Python\u6587\u4ef6\u90fd\u653e\u5728\u4e00\u4e2a\u76ee\u5f55\u4e0b\u5e76\u4e0d\u662f\u4e00\u4e2a\u503c\u5f97\u63a8\u8350\u7684\u505a\u6cd5\uff0c\u6211\u4eec\u9700\u8981\u5408\u7406\u7684\u7ec4\u7ec7\u9879\u76ee\u7684\u5c42\u6b21\u6765\u7ba1\u7406\u6a21\u5757\uff0c\u8fd9\u5c31\u662f\u5305(package)\u53d1\u6325\u529f\u6548\u7684\u5730\u65b9\u4e86\u3002<\/p>\n<p>\u4ec0\u4e48\u662f\u5305(package)\u5462\uff1f\u7b80\u5355\u6765\u8bf4\uff0c\u5305(package)\u5373\u76ee\u5f55\uff0c\u4f46\u4e0e\u666e\u901a\u76ee\u5f55\u4e0d\u540c\uff0c\u5b83\u9664\u4e86\u5305\u542b\u5e38\u89c4\u7684Python\u6587\u4ef6\u4ee5\u5916\uff0c\u8fd8\u5305\u542b\u4e00\u4e2a __init__.py \u6587\u4ef6\uff0c\u540c\u65f6\u5b83\u5141\u8bb8\u5d4c\u5957\u3002\u6bd4\u5982\uff1a<\/p>\n<pre class=\"lang:default decode:true \">Package\/__init__.py\n    Module1.py\n    Module2.py\n    Subpackage\/__init__.py\n        Module1.py\n        Module2.py<\/pre>\n<p>\u5305\u4e2d\u7684\u6a21\u5757\u53ef\u4ee5\u901a\u8fc7\u201c.\u201d\u8bbf\u95ee\u7b26\u8fdb\u884c\u8bbf\u95ee\uff0c\u5373\u201c\u5305\u540d.\u6a21\u5757\u540d\u201d\u3002\u6bd4\u5982\uff1a<\/p>\n<pre class=\"lang:default decode:true \">import Package\nfrom Package import Module1\nfrom Package import Subpackage\nimport Package.Subpackage\nfrom Package.Subpackage import Module1<\/pre>\n<hr \/>\n<h6>\u5217\u8868\u89e3\u6790\/\u63a8\u5bfc\u5f0f\uff08list comprehension\uff09<\/h6>\n<p>1.\u4ee3\u7801\u91cf\u66f4\u5c11\uff0c\u7b80\u6d01\u3001\u76f4\u89c2\u6e05\u6670\uff1b<\/p>\n<p>2.\u5217\u8868\u89e3\u6790\u7684\u6548\u7387\u66f4\u9ad8\uff08\u4f46\u5bf9\u4e8e\u5927\u6570\u636e\u7684\u5904\u7406\uff0c\u5217\u8868\u89e3\u6790\u4e0d\u662f\u4e00\u4e2a\u6700\u4f73\u9009\u62e9\uff0c\u8fc7\u591a\u7684\u5185\u5b58\u6d88\u8017\u53ef\u80fd\u4f1a\u5bfc\u81f4 MemoryError \uff0c\u8fd9\u65f6\u8fd8\u662f\u63a8\u8350\u4f7f\u7528\u4f20\u7edf\u7684\u5faa\u73af\u8fdb\u884c\u5904\u7406\uff09\uff1b<\/p>\n<hr \/>\n<h6>Python\u6027\u80fd\u4f18\u5316\u7684\u5c0ftips<\/h6>\n<p><span style=\"color: #ff0000;\"><strong>\u51cf\u5c11\u51fd\u6570\u8c03\u7528<\/strong><\/span><\/p>\n<p>==<\/p>\n<p>\u6027\u80fd: \u5217\u8868\u89e3\u6790 &gt; for \u5faa\u73af &gt; while \u5faa\u73af<br \/>\n\u904d\u5386list\u65f6\uff0c\u5217\u8868\u89e3\u6790\u6027\u80fd\u6700\u4f18\uff0cwhile\u5faa\u73af\u6700\u5dee(\u9700\u8981\u4e00\u4e2a\u5916\u90e8\u8ba1\u6570\u5668)<\/p>\n<p>==<\/p>\n<p><span style=\"color: #ff0000;\">\u5904\u7406\u5927\u6570\u636e\u65f6\uff0c\u5c3d\u53ef\u80fd\u4f7f\u7528\u4e0d\u53ef\u53d8\u6570\u636e\u7c7b\u578b\uff0c\u66f4\u5feb<\/span> \u2014\u2014 tuple &gt; list<\/p>\n<p>==<\/p>\n<p>\u5c3d\u53ef\u80fd\u7684\u521b\u5efa\u751f\u6210\u5668\u548c\u4f7f\u7528yield\uff0c\u56e0\u4e3a\u8fd9\u76f8\u5bf9\u4e8e\u5e38\u89c4\u5e8f\u5217\u5b9e\u73b0\u65b9\u5f0f\uff0c\u6027\u80fd\u66f4\u4f18<\/p>\n<p>==<\/p>\n<p>\u4f7f\u7528\u5c40\u90e8\u53d8\u91cf<br \/>\n\u5c40\u90e8\u53d8\u91cf\u6027\u80fd\u4f18\u4e8e\u5168\u5c40\u53d8\u91cf\uff0c\u5185\u5efa\u53d8\u91cf\u53ca\u5c5e\u6027\u67e5\u627e\uff08LEGB\uff09<\/p>\n<p>==<\/p>\n<p>\u4f7f\u7528\u540e\u7528del\u5220\u9664\u65e0\u7528\u5bf9\u8c61<\/p>\n<hr \/>\n<h6>\u521b\u5efa\u5927\u6587\u4ef6\u7684\u6280\u5de7<\/h6>\n<pre class=\"lang:default decode:true \">with open('large.txt', 'wb') as fp:\n    fp.seek(1073741824-1)\n    fp.write('\\0')<\/pre>\n<hr \/>\n<h6>Python\u4e2d\u7684\u65b0\u5f0f\u7c7b\u548c\u53e4\u5178\u7c7b<\/h6>\n<pre class=\"lang:default decode:true \">'''\nPython\u4e2d\u4e00\u5207\u7686\u5bf9\u8c61\uff1a\u5b57\u7b26\u662f\u5bf9\u8c61\uff0c\u5217\u8868\u662f\u5bf9\u8c61\uff0c\u5185\u5efa\u7c7b\u578b(built-in type)\u4e5f\u662f\u5bf9\u8c61\uff1b\u7528\u6237\u5b9a\u4e49\u7684\u7c7b\u578b\u662f\u5bf9\u8c61\uff0cobject\u662f\u5bf9\u8c61\uff0ctype\u4e5f\u662f\u5bf9\u8c61\u3002\n\u81ea Python 2.2 \u4e4b\u540e\uff0c\u4e3a\u4e86\u5f25\u8865\u5185\u5efa\u7c7b\u578b(built-in type)\u548c\u53e4\u5178\u7c7b(classic classes)\u4e4b\u95f4\u7684\u9e3f\u6c9f\u5f15\u5165\u4e86\u65b0\u5f0f\u7c7b(new-style classes)\u3002\u5728\u65b0\u5f0f\u7c7b\u4e2d\uff0cobject\u662f\u6240\u6709\u5185\u5efa\u7c7b\u578b\u7684\u57fa\u7c7b\uff0c\u7528\u6237\u6240\u5b9a\u4e49\u7684\u7c7b\u53ef\u4ee5\u7ee7\u627f\u81eaobject\u4e5f\u53ef\u7ee7\u627f\u81ea\u5185\u5efa\u7c7b\u578b\u3002\n\n\u9e3f\u6c9f\uff1a\u7c7b\u548c\u7c7b\u578b\u5e76\u4e0d\u7edf\u4e00\uff1b\n\u6bd4\u5982\u4e0a\u9762\u7684 a \u662f\u53e4\u5178\u7c7bClass A\u7684\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u90a3\u4e48 a.__class__ \u8fd4\u56de __main__.A \uff0ctype(a)\u8fd4\u56de&lt;type 'instance'&gt;\nb \u662f\u65b0\u5f0f\u7c7bClass B\u7684\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u90a3\u4e48 b.__class__ \u8fd4\u56de &lt;class '__main__.B'&gt; \uff0ctype(b)\u8fd4\u56de&lt;class '__main__.B'&gt;\n'''\n\nclass A:\n\tpass\n\nclass B(object):\n\tpass\n\n# class C(type):\n# \tpass\n\nclass D(dict):\n\tpass\n\na = A()\nb = B()\n# c = C()\nd = D()\nprint type(A), type(B), type(D)\t#&lt;type 'classobj'&gt; &lt;type 'type'&gt; &lt;type 'type'&gt;\nprint type(a), type(b), type(d)\t#&lt;type 'instance'&gt; &lt;class '__main__.B'&gt; &lt;class '__main__.D'&gt;\n\nprint a.__class__, isinstance(a, object), isinstance(a, type)\t#__main__.A True False\nprint b.__class__, isinstance(b, object), isinstance(b, type)\t#&lt;class '__main__.B'&gt; True False\n# print c.__class__, isinstance(c, object), isinstance(c, type)\nprint d.__class__, isinstance(d, object), isinstance(d, type)\t#&lt;class '__main__.D'&gt; True False<\/pre>\n<hr \/>\n<h6>Python\u4e2d\u7684\u300c\u7a7a\u300d\u6570\u636e<\/h6>\n<ul>\n<li>\u5e38\u91cf None<\/li>\n<li>\u5e38\u91cf False<\/li>\n<li>\u4efb\u4f55\u5f62\u5f0f\u7684\u6570\u503c\u7c7b\u578b\u96f6\uff0c\u5982 0\/0L\/0.0\/0j<\/li>\n<li>\u7a7a\u7684\u5e8f\u5217\uff0c\u5982 &#8221;\/()\/[]<\/li>\n<li>\u7a7a\u7684\u5b57\u5178\uff0c\u5982 {}<\/li>\n<li>\u5f53\u7528\u6237\u5b9a\u4e49\u7684\u7c7b\u4e2d\u5b9a\u4e49\u4e86 nonzero() \u65b9\u6cd5\u548c len() \u65b9\u6cd5\uff0c\u5e76\u4e14\u8be5\u65b9\u6cd5\u8fd4\u56de\u6574\u65700\u6216\u8005\u5e03\u5c14\u503cFalse\u7684\u65f6\u5019\u3002<\/li>\n<\/ul>\n<p>\u5176\u4e2d<span style=\"color: #ff0000;\"><strong>\u5e38\u91cf None \u7684\u7279\u6b8a\u6027\u4f53\u73b0\u5728\u5b83\u65e2\u4e0d\u662f 0\u3001False\uff0c\u4e5f\u4e0d\u662f\u7a7a\u5b57\u7b26\u4e32\uff0c\u5b83\u5c31\u662f\u4e00\u4e2a\u7a7a\u503c\u5bf9\u8c61\u3002<\/strong><\/span>\u5176\u6570\u636e\u7c7b\u578b\u4e3a NoneType\uff0c\u9075\u5faa\u5355\u4f8b\u6a21\u5f0f\uff0c\u662f\u552f\u4e00\u7684\uff0c\u56e0\u800c\u4e0d\u80fd\u521b\u5efa None \u5bf9\u8c61\u3002<span style=\"color: #ff0000;\">\u6240\u6709\u8d4b\u503c\u4e3aNone\u7684\u53d8\u91cf\u90fd\u76f8\u7b49\uff0c\u5e76\u4e14None\u4e0e\u4efb\u4f55\u5176\u4ed6\u975eNone\u7684\u5bf9\u8c61\u7684\u6bd4\u8f83\u7ed3\u679c\u90fd\u4e3aFalse\u3002<\/span><\/p>\n<hr \/>\n<h6>Python\u4e2d\u65f6\u95f4\u6233\u5b57\u7b26\u4e32\u7684\u5927\u5c0f\u6bd4\u8f83<\/h6>\n<p>datetime\u5bf9\u8c61\u81ea\u8eab\u5c31\u652f\u6301\u7528\u300c&gt;\/&lt;\u300d\u64cd\u4f5c\u7b26\u8fdb\u884c\u6bd4\u8f83\u64cd\u4f5c<\/p>\n<p>\u53c2\u8003\uff1a<a href=\"http:\/\/stackoverflow.com\/questions\/8142364\/how-to-compare-two-dates\" target=\"_blank\">How to compare two dates?<\/a><\/p>\n<h6>Python\u4e2d\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u6210datetime\u5bf9\u8c61\u7684\u65b9\u6cd5<\/h6>\n<p><a href=\"https:\/\/docs.python.org\/2\/library\/datetime.html#datetime.datetime.strptime\" target=\"_blank\">datetime.datetime.strptime<\/a><\/p>\n<pre class=\"lang:default decode:true\">&gt;&gt;&gt; from datetime import datetime as dt\n&gt;&gt;&gt; a = dt.strptime(\"10\/12\/13\", \"%m\/%d\/%y\")\n&gt;&gt;&gt; b = dt.strptime(\"10\/15\/13\", \"%m\/%d\/%y\")\n&gt;&gt;&gt; a &gt; b\nFalse\n&gt;&gt;&gt; a &lt; b\nTrue\n&gt;&gt;&gt;<\/pre>\n<ul>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/20365854\/comparing-two-date-strings-in-python\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/20365854\/comparing-two-date-strings-in-python<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/10238607\/convert-string-to-datetime-in-python-and-compare-to-current-time\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/10238607\/convert-string-to-datetime-in-python-and-compare-to-current-time<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/3278999\/how-can-i-compare-a-date-and-a-datetime-in-python\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/3278999\/how-can-i-compare-a-date-and-a-datetime-in-python<\/a><\/li>\n<li><a href=\"https:\/\/wiki.python.org\/moin\/WorkingWithTime\" target=\"_blank\">https:\/\/wiki.python.org\/moin\/WorkingWithTime<\/a><\/li>\n<li><a href=\"https:\/\/pymotw.com\/2\/datetime\/\" target=\"_blank\">https:\/\/pymotw.com\/2\/datetime\/<\/a><\/li>\n<\/ul>\n<hr \/>\n<h6>Python\u4e2d\u7684\u591a\u884c\u5b57\u7b26\u4e32<\/h6>\n<pre class=\"lang:default decode:true\">multi_line_str = \"\"\"line one\n             line two\n             line three\"\"\"\n\njoined_line_str = (\"this is an \"\n            \"implicitly joined \"\n            \"string\")<\/pre>\n<h6>Python\u4e2d\u591a\u884c\u5b57\u7b26\u4e32\u7684\u683c\u5f0f\u5316<\/h6>\n<p>\u641c\u7d22\u5173\u952e\u5b57\uff1apython multi line string format<\/p>\n<pre class=\"lang:default decode:true\">'''line {0}\nline {1}\nline {2}'''.format(1,2,3)\n\nargs = (1,2,3)\n'''line {0}\nline {1}\nline {2}'''.format(*args)\n\nkwargs = {'arg1':1, 'arg2':2, 'arg3':3}\n'''line {arg1}\nline {arg2}\nline {arg3}'''.format(**kwargs)<\/pre>\n<ul>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/10985603\/multi-line-string-with-arguments-how-to-declare\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/10985603\/multi-line-string-with-arguments-how-to-declare<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/2504411\/proper-indentation-for-python-multiline-strings\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/2504411\/proper-indentation-for-python-multiline-strings<\/a><\/li>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/13023941\/python-multiline-string-format\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/13023941\/python-multiline-string-format<\/a><\/li>\n<\/ul>\n<p>=EOF=<\/p>\n","protected":false},"excerpt":{"rendered":"<p>=Start= \u5468\u672b\u5317\u4eac\u96fe\u973e\uff0c\u6ca1\u6709\u51fa\u95e8\uff0c\u5b85\u5728\u5bb6\u91cc\u628a\u300a\u7f16\u5199\u9ad8\u8d28\u91cf\u4ee3\u7801\uff1a\u6539\u5584Python\u7a0b\u5e8f\u768491\u4e2a\u5efa\u8bae\u300b\u8fd9\u672c\u4e66\u770b [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,12],"tags":[166,8,546,19],"class_list":["post-2460","post","type-post","status-publish","format-standard","hentry","category-programing","category-tools","tag-datetime","tag-python","tag-time","tag-tips"],"views":4478,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/2460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=2460"}],"version-history":[{"count":0,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/2460\/revisions"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=2460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=2460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=2460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}