{"id":20,"date":"2024-11-10T23:00:34","date_gmt":"2024-11-10T15:00:34","guid":{"rendered":"https:\/\/codeloveme.com\/?p=20"},"modified":"2024-12-09T22:17:03","modified_gmt":"2024-12-09T14:17:03","slug":"a","status":"publish","type":"post","link":"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/","title":{"rendered":"Python \u6027\u80fd\u5206\u6790"},"content":{"rendered":"<h2>\u6982\u8ff0<\/h2>\n<p>\u5728 Python \u5f00\u53d1\u4e2d\uff0c\u6027\u80fd\u5206\u6790\u662f\u975e\u5e38\u91cd\u8981\u7684\u4e00\u73af\u3002\u4ee5\u4e0b\u662f\u4e09\u79cd\u5e38\u7528\u7684\u6027\u80fd\u5206\u6790\u5de5\u5177\uff0c\u5b83\u4eec\u5e2e\u52a9\u5f00\u53d1\u8005\u9ad8\u6548\u5730\u5206\u6790\u4ee3\u7801\u7684\u6267\u884c\u65f6\u95f4\u548c\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\uff1a<\/p>\n<ol>\n<li><strong>cProfile<\/strong>\uff1a\u7528\u4e8e\u5206\u6790\u4ee3\u7801\u7684\u6267\u884c\u65f6\u95f4\u548c\u51fd\u6570\u8c03\u7528\u6b21\u6570\uff0c\u9002\u5408\u67e5\u770b\u6574\u4f53\u6027\u80fd\u74f6\u9888\u3002<\/li>\n<li><strong>line_profiler<\/strong>\uff1a\u9010\u884c\u5206\u6790\u4ee3\u7801\u6267\u884c\u65f6\u95f4\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u7cbe\u786e\u5b9a\u4f4d\u4ee3\u7801\u4e2d\u7684\u6027\u80fd\u70ed\u70b9\u3002<\/li>\n<li><strong>memory_profiler<\/strong>\uff1a\u7528\u4e8e\u5206\u6790\u4ee3\u7801\u7684\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\uff0c\u5e2e\u52a9\u4f18\u5316\u5185\u5b58\u7ba1\u7406\u3002<\/li>\n<\/ol>\n<h3>1. cProfile<\/h3>\n<ul>\n<li>\u7528\u4e8e\u5206\u6790\u4ee3\u7801\u7684\u6267\u884c\u65f6\u95f4\u548c\u51fd\u6570\u8c03\u7528\u6b21\u6570<\/li>\n<\/ul>\n<pre><code class=\"language-python line-numbers\">import cProfile\n\ndef my_function():\n    for i in range(1000000):\n        pass\n\ncProfile.run('my_function()')\n<\/code><\/pre>\n<h3>2. line_profiler<\/h3>\n<ul>\n<li>\u9010\u884c\u5206\u6790\u4ee3\u7801\u6267\u884c\u65f6\u95f4<\/li>\n<li>\u5b89\u88c5 <code>line_profiler<\/code>\uff1a<\/li>\n<\/ul>\n<pre><code class=\"language-bash line-numbers\">pip install line_profiler\n<\/code><\/pre>\n<p>\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python line-numbers\">@profile\ndef my_function():\n    for i in range(1000000):\n        pass\n\nmy_function()\n<\/code><\/pre>\n<ul>\n<li>\u8fd0\u884c\u5206\u6790\uff1a<\/li>\n<\/ul>\n<pre><code class=\"language-bash line-numbers\">kernprof -l -v .\\line_profiler.py\n<\/code><\/pre>\n<ul>\n<li>\u8f93\u51fa\u89e3\u91ca\uff1a<\/li>\n<\/ul>\n<pre><code class=\"language-text line-numbers\">Line #      Hits         Time  Per Hit   % Time  Line Contents\n==============================================================\n     3                                           @profile\n     4                                           def my_function():\n     5   1000001     151169.7      0.2     51.3      for i in range(1000000):\n     6   1000000     143390.1      0.1     48.7          pass\n<\/code><\/pre>\n<p>\u8f93\u51fa\u5b57\u6bb5\u8bf4\u660e\uff1a<\/p>\n<ul>\n<li><strong>Line<\/strong>: \u4ee3\u7801\u7684\u884c\u53f7\u3002<\/li>\n<li><strong>Hits<\/strong>: \u8be5\u884c\u4ee3\u7801\u88ab\u6267\u884c\u7684\u6b21\u6570\u3002<\/li>\n<li><strong>Time<\/strong>: \u8be5\u884c\u4ee3\u7801\u6267\u884c\u6240\u82b1\u8d39\u7684\u603b\u65f6\u95f4\uff08\u5355\u4f4d\uff1a\u5fae\u79d2\uff09\u3002<\/li>\n<li><strong>Per Hit<\/strong>: \u6bcf\u6b21\u6267\u884c\u8be5\u884c\u4ee3\u7801\u6240\u82b1\u8d39\u7684\u5e73\u5747\u65f6\u95f4\uff08\u5355\u4f4d\uff1a\u5fae\u79d2\uff09\u3002<\/li>\n<li><strong>% Time<\/strong>: \u8be5\u884c\u4ee3\u7801\u6267\u884c\u65f6\u95f4\u5360\u603b\u65f6\u95f4\u7684\u767e\u5206\u6bd4\u3002<\/li>\n<\/ul>\n<h3>3. memory_profiler<\/h3>\n<ul>\n<li>\u7528\u4e8e\u9010\u884c\u5206\u6790\u5185\u5b58\u4f7f\u7528\u60c5\u51b5<\/li>\n<li>\u5b89\u88c5 <code>memory_profiler<\/code>\uff1a<\/li>\n<\/ul>\n<pre><code class=\"language-bash line-numbers\">pip install memory_profiler\n<\/code><\/pre>\n<p>\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<pre><code class=\"language-python line-numbers\">def my_function():\n    data = [i for i in range(100000000)]\n\nmy_function()\n<\/code><\/pre>\n<ul>\n<li>\u8fd0\u884c\u5185\u5b58\u5206\u6790\uff1a<\/li>\n<\/ul>\n<pre><code class=\"language-bash line-numbers\">mprof run script.py\n<\/code><\/pre>\n<ul>\n<li>\u751f\u6210\u5185\u5b58\u4f7f\u7528\u56fe\u8868\uff1a<\/li>\n<\/ul>\n<pre><code class=\"language-bash line-numbers\">mprof plot\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"\u5728\u73b0\u4ee3\u7f16\u7a0b\u4e2d\uff0c\u6027\u80fd\u4f18\u5316\u662f\u5353\u8d8a\u4ee3\u7801\u7684\u6838\u5fc3\u3002\u901a\u8fc7\u4f7f\u7528\u5de5\u5177\u5982cProfile\u3001line_profiler\u548cmemory_profiler\uff0c\u6211\u4eec\u53ef\u4ee5\u7cbe\u51c6\u5256\u6790\u4ee3\u7801\u7684\u6267\u884c\u65f6\u95f4\u3001\u8c03\u7528\u6b21\u6570\u53ca\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\u3002\u70bd\u70ed\u7684\u6027\u80fd\u5206\u6790\u4e0d\u4ec5\u80fd\u63d0\u5347\u4ee3\u7801\u6548\u7387","protected":false},"author":1,"featured_media":23,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[5],"tags":[6,23],"class_list":["post-20","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python","tag-python","tag-23"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python \u6027\u80fd\u5206\u6790 - \u4ee3\u7801\u604b\u7231\u6307\u5357<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python \u6027\u80fd\u5206\u6790 - \u4ee3\u7801\u604b\u7231\u6307\u5357\" \/>\n<meta property=\"og:description\" content=\"\u6982\u8ff0 \u5728 Python \u5f00\u53d1\u4e2d\uff0c\u6027\u80fd\u5206\u6790\u662f\u975e\u5e38\u91cd\u8981\u7684\u4e00\u73af\u3002\u4ee5\u4e0b\u662f\u4e09\u79cd\u5e38\u7528\u7684\u6027\u80fd\u5206\u6790\u5de5\u5177\uff0c\u5b83\u4eec\u5e2e\u52a9\u5f00\u53d1\u8005\u9ad8\u6548\u5730\u5206\u6790\u4ee3\u7801\u7684\u6267\u884c\u65f6\u95f4\u548c\u5185 ...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/\" \/>\n<meta property=\"og:site_name\" content=\"\u4ee3\u7801\u604b\u7231\u6307\u5357\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-10T15:00:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-09T14:17:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codeloveme.com\/wp-content\/uploads\/2024\/11\/preview.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"864\" \/>\n\t<meta property=\"og:image:height\" content=\"864\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"beizou\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"beizou\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/\"},\"author\":{\"name\":\"beizou\",\"@id\":\"https:\/\/codeloveme.com\/#\/schema\/person\/81a4181217586206bf536360ebdbc737\"},\"headline\":\"Python \u6027\u80fd\u5206\u6790\",\"datePublished\":\"2024-11-10T15:00:34+00:00\",\"dateModified\":\"2024-12-09T14:17:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/\"},\"wordCount\":18,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/codeloveme.com\/#\/schema\/person\/81a4181217586206bf536360ebdbc737\"},\"image\":{\"@id\":\"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codeloveme.com\/wp-content\/uploads\/2024\/11\/preview.jpg\",\"keywords\":[\"Python\",\"\u6027\u80fd\u5206\u6790\"],\"articleSection\":[\"Python\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/\",\"url\":\"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/\",\"name\":\"Python \u6027\u80fd\u5206\u6790 - \u4ee3\u7801\u604b\u7231\u6307\u5357\",\"isPartOf\":{\"@id\":\"https:\/\/codeloveme.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codeloveme.com\/wp-content\/uploads\/2024\/11\/preview.jpg\",\"datePublished\":\"2024-11-10T15:00:34+00:00\",\"dateModified\":\"2024-12-09T14:17:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/#primaryimage\",\"url\":\"https:\/\/codeloveme.com\/wp-content\/uploads\/2024\/11\/preview.jpg\",\"contentUrl\":\"https:\/\/codeloveme.com\/wp-content\/uploads\/2024\/11\/preview.jpg\",\"width\":864,\"height\":864},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/codeloveme.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python \u6027\u80fd\u5206\u6790\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codeloveme.com\/#website\",\"url\":\"https:\/\/codeloveme.com\/\",\"name\":\"\u4ee3\u7801\u604b\u7231\u6307\u5357\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/codeloveme.com\/#\/schema\/person\/81a4181217586206bf536360ebdbc737\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codeloveme.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/codeloveme.com\/#\/schema\/person\/81a4181217586206bf536360ebdbc737\",\"name\":\"beizou\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/codeloveme.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/codeloveme.com\/wp-content\/uploads\/2024\/11\/\u540e\u85e4\u72ec.jpg\",\"contentUrl\":\"https:\/\/codeloveme.com\/wp-content\/uploads\/2024\/11\/\u540e\u85e4\u72ec.jpg\",\"width\":1080,\"height\":1060,\"caption\":\"beizou\"},\"logo\":{\"@id\":\"https:\/\/codeloveme.com\/#\/schema\/person\/image\/\"},\"description\":\"\u5f31\u70b9\uff1a\u7231\u60c5 \u4f18\u70b9\uff1a\u6ca1\u6709\u7231\u60c5\",\"sameAs\":[\"http:\/\/codeloveme.com\"],\"url\":\"https:\/\/codeloveme.com\/index.php\/author\/beizou\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python \u6027\u80fd\u5206\u6790 - \u4ee3\u7801\u604b\u7231\u6307\u5357","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/","og_locale":"zh_CN","og_type":"article","og_title":"Python \u6027\u80fd\u5206\u6790 - \u4ee3\u7801\u604b\u7231\u6307\u5357","og_description":"\u6982\u8ff0 \u5728 Python \u5f00\u53d1\u4e2d\uff0c\u6027\u80fd\u5206\u6790\u662f\u975e\u5e38\u91cd\u8981\u7684\u4e00\u73af\u3002\u4ee5\u4e0b\u662f\u4e09\u79cd\u5e38\u7528\u7684\u6027\u80fd\u5206\u6790\u5de5\u5177\uff0c\u5b83\u4eec\u5e2e\u52a9\u5f00\u53d1\u8005\u9ad8\u6548\u5730\u5206\u6790\u4ee3\u7801\u7684\u6267\u884c\u65f6\u95f4\u548c\u5185 ...","og_url":"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/","og_site_name":"\u4ee3\u7801\u604b\u7231\u6307\u5357","article_published_time":"2024-11-10T15:00:34+00:00","article_modified_time":"2024-12-09T14:17:03+00:00","og_image":[{"width":864,"height":864,"url":"https:\/\/codeloveme.com\/wp-content\/uploads\/2024\/11\/preview.jpg","type":"image\/jpeg"}],"author":"beizou","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"beizou"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/#article","isPartOf":{"@id":"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/"},"author":{"name":"beizou","@id":"https:\/\/codeloveme.com\/#\/schema\/person\/81a4181217586206bf536360ebdbc737"},"headline":"Python \u6027\u80fd\u5206\u6790","datePublished":"2024-11-10T15:00:34+00:00","dateModified":"2024-12-09T14:17:03+00:00","mainEntityOfPage":{"@id":"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/"},"wordCount":18,"commentCount":0,"publisher":{"@id":"https:\/\/codeloveme.com\/#\/schema\/person\/81a4181217586206bf536360ebdbc737"},"image":{"@id":"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/#primaryimage"},"thumbnailUrl":"https:\/\/codeloveme.com\/wp-content\/uploads\/2024\/11\/preview.jpg","keywords":["Python","\u6027\u80fd\u5206\u6790"],"articleSection":["Python"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/","url":"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/","name":"Python \u6027\u80fd\u5206\u6790 - \u4ee3\u7801\u604b\u7231\u6307\u5357","isPartOf":{"@id":"https:\/\/codeloveme.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/#primaryimage"},"image":{"@id":"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/#primaryimage"},"thumbnailUrl":"https:\/\/codeloveme.com\/wp-content\/uploads\/2024\/11\/preview.jpg","datePublished":"2024-11-10T15:00:34+00:00","dateModified":"2024-12-09T14:17:03+00:00","breadcrumb":{"@id":"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/"]}]},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/#primaryimage","url":"https:\/\/codeloveme.com\/wp-content\/uploads\/2024\/11\/preview.jpg","contentUrl":"https:\/\/codeloveme.com\/wp-content\/uploads\/2024\/11\/preview.jpg","width":864,"height":864},{"@type":"BreadcrumbList","@id":"https:\/\/codeloveme.com\/index.php\/2024\/11\/10\/a\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/codeloveme.com\/"},{"@type":"ListItem","position":2,"name":"Python \u6027\u80fd\u5206\u6790"}]},{"@type":"WebSite","@id":"https:\/\/codeloveme.com\/#website","url":"https:\/\/codeloveme.com\/","name":"\u4ee3\u7801\u604b\u7231\u6307\u5357","description":"","publisher":{"@id":"https:\/\/codeloveme.com\/#\/schema\/person\/81a4181217586206bf536360ebdbc737"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codeloveme.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/codeloveme.com\/#\/schema\/person\/81a4181217586206bf536360ebdbc737","name":"beizou","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/codeloveme.com\/#\/schema\/person\/image\/","url":"https:\/\/codeloveme.com\/wp-content\/uploads\/2024\/11\/\u540e\u85e4\u72ec.jpg","contentUrl":"https:\/\/codeloveme.com\/wp-content\/uploads\/2024\/11\/\u540e\u85e4\u72ec.jpg","width":1080,"height":1060,"caption":"beizou"},"logo":{"@id":"https:\/\/codeloveme.com\/#\/schema\/person\/image\/"},"description":"\u5f31\u70b9\uff1a\u7231\u60c5 \u4f18\u70b9\uff1a\u6ca1\u6709\u7231\u60c5","sameAs":["http:\/\/codeloveme.com"],"url":"https:\/\/codeloveme.com\/index.php\/author\/beizou\/"}]}},"_links":{"self":[{"href":"https:\/\/codeloveme.com\/index.php\/wp-json\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeloveme.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeloveme.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeloveme.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeloveme.com\/index.php\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":11,"href":"https:\/\/codeloveme.com\/index.php\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":188,"href":"https:\/\/codeloveme.com\/index.php\/wp-json\/wp\/v2\/posts\/20\/revisions\/188"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codeloveme.com\/index.php\/wp-json\/wp\/v2\/media\/23"}],"wp:attachment":[{"href":"https:\/\/codeloveme.com\/index.php\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeloveme.com\/index.php\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeloveme.com\/index.php\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}