{"id":950699,"date":"2024-12-27T00:42:07","date_gmt":"2024-12-26T16:42:07","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/950699.html"},"modified":"2024-12-27T00:42:11","modified_gmt":"2024-12-26T16:42:11","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e6%89%93%e5%ad%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/950699.html","title":{"rendered":"\u5982\u4f55\u7528python\u6253\u5b57"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25085036\/91692006-9c19-4c99-9840-fe15cab3796f.webp\" alt=\"\u5982\u4f55\u7528python\u6253\u5b57\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u5b9e\u73b0\u6253\u5b57\u529f\u80fd\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u7a0b\u5e8f\u6a21\u62df\u952e\u76d8\u8f93\u5165\u3001\u4f7f\u7528\u5e93\u51fd\u6570\u521b\u5efa\u6253\u5b57\u6e38\u620f\u3001\u5229\u7528GUI\u5e93\u521b\u5efa\u6253\u5b57\u5e94\u7528\u7a0b\u5e8f<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u5e93\u51fd\u6570\u521b\u5efa\u6253\u5b57\u6e38\u620f\u662f\u8f83\u4e3a\u5e38\u89c1\u7684\u65b9\u6cd5\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u4f7f\u7528Python\u5b9e\u73b0\u6253\u5b57\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u6a21\u62df\u952e\u76d8\u8f93\u5165<\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u6a21\u62df\u952e\u76d8\u8f93\u5165\u53ef\u4ee5\u901a\u8fc7<code>pyautogui<\/code>\u548c<code>pynput<\/code>\u7b49\u5e93\u6765\u5b9e\u73b0\u3002\u8fd9\u4e9b\u5e93\u5141\u8bb8\u7a0b\u5e8f\u63a7\u5236\u952e\u76d8\u8f93\u5165\uff0c\u4ece\u800c\u5b9e\u73b0\u81ea\u52a8\u6253\u5b57\u529f\u80fd\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528<code>pyautogui<\/code>\u5e93\uff1a<\/li>\n<\/ol>\n<p><p><code>pyautogui<\/code>\u662f\u4e00\u4e2a\u7528\u4e8e\u63a7\u5236\u9f20\u6807\u548c\u952e\u76d8\u7684Python\u5e93\uff0c\u9002\u7528\u4e8e\u81ea\u52a8\u5316\u4efb\u52a1\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pyautogui<\/p>\n<p>import time<\/p>\n<h2><strong>\u6253\u5b57\u529f\u80fd<\/strong><\/h2>\n<p>def type_text(text, interval=0.1):<\/p>\n<p>    for char in text:<\/p>\n<p>        pyautogui.typewrite(char)<\/p>\n<p>        time.sleep(interval)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>type_text(&quot;Hello, world!&quot;, 0.1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u901a\u8fc7\u6a21\u62df\u952e\u76d8\u8f93\u5165\u6765\u8f93\u5165\u201cHello, world!\u201d\u8fd9\u6bb5\u6587\u5b57\u3002<code>interval<\/code>\u53c2\u6570\u53ef\u4ee5\u63a7\u5236\u6bcf\u4e2a\u5b57\u7b26\u4e4b\u95f4\u7684\u5ef6\u8fdf\uff0c\u4ee5\u6a21\u62df\u4eba\u5de5\u6253\u5b57\u7684\u901f\u5ea6\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528<code>pynput<\/code>\u5e93\uff1a<\/li>\n<\/ol>\n<p><p><code>pynput<\/code>\u5e93\u4e5f\u53ef\u4ee5\u7528\u4e8e\u63a7\u5236\u952e\u76d8\u8f93\u5165\uff0c\u5e76\u63d0\u4f9b\u4e86\u66f4\u7075\u6d3b\u7684\u952e\u76d8\u4e8b\u4ef6\u63a7\u5236\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pynput.keyboard import Controller<\/p>\n<p>import time<\/p>\n<h2><strong>\u521b\u5efa\u952e\u76d8\u63a7\u5236\u5668<\/strong><\/h2>\n<p>keyboard = Controller()<\/p>\n<h2><strong>\u6253\u5b57\u529f\u80fd<\/strong><\/h2>\n<p>def type_text(text, interval=0.1):<\/p>\n<p>    for char in text:<\/p>\n<p>        keyboard.type(char)<\/p>\n<p>        time.sleep(interval)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>type_text(&quot;Hello, world!&quot;, 0.1)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u5b9e\u73b0\u4e86\u4e0e<code>pyautogui<\/code>\u7c7b\u4f3c\u7684\u529f\u80fd\uff0c\u4f46\u4f7f\u7528\u4e86<code>pynput<\/code>\u5e93\u7684\u952e\u76d8\u63a7\u5236\u5668\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u521b\u5efa\u6253\u5b57\u6e38\u620f<\/p>\n<\/p>\n<p><p>\u4f7f\u7528Python\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u6253\u5b57\u6e38\u620f\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u63d0\u9ad8\u6253\u5b57\u901f\u5ea6\u548c\u51c6\u786e\u6027\u3002\u53ef\u4ee5\u4f7f\u7528<code>pygame<\/code>\u5e93\u6765\u5b9e\u73b0\u4e00\u4e2a\u56fe\u5f62\u5316\u7684\u6253\u5b57\u6e38\u620f\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5<code>pygame<\/code>\u5e93\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-bash\">pip install pygame<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>\u521b\u5efa\u6253\u5b57\u6e38\u620f\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import pygame<\/p>\n<p>import random<\/p>\n<h2><strong>\u521d\u59cb\u5316Pygame<\/strong><\/h2>\n<p>pygame.init()<\/p>\n<h2><strong>\u5b9a\u4e49\u989c\u8272<\/strong><\/h2>\n<p>WHITE = (255, 255, 255)<\/p>\n<p>BLACK = (0, 0, 0)<\/p>\n<h2><strong>\u8bbe\u7f6e\u7a97\u53e3\u5927\u5c0f<\/strong><\/h2>\n<p>screen_width = 800<\/p>\n<p>screen_height = 600<\/p>\n<p>screen = pygame.display.set_mode((screen_width, screen_height))<\/p>\n<h2><strong>\u8bbe\u7f6e\u5b57\u4f53<\/strong><\/h2>\n<p>font = pygame.font.Font(None, 74)<\/p>\n<h2><strong>\u751f\u6210\u968f\u673a\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>def random_string(length=5):<\/p>\n<p>    letters = &quot;abcdefghijklmnopqrstuvwxyz&quot;<\/p>\n<p>    return &#39;&#39;.join(random.choice(letters) for i in range(length))<\/p>\n<p>def game_loop():<\/p>\n<p>    # \u521d\u59cb\u5316\u53d8\u91cf<\/p>\n<p>    current_string = random_string()<\/p>\n<p>    typed_string = &quot;&quot;<\/p>\n<p>    score = 0<\/p>\n<p>    # \u6e38\u620f\u4e3b\u5faa\u73af<\/p>\n<p>    running = True<\/p>\n<p>    while running:<\/p>\n<p>        # \u4e8b\u4ef6\u5904\u7406<\/p>\n<p>        for event in pygame.event.get():<\/p>\n<p>            if event.type == pygame.QUIT:<\/p>\n<p>                running = False<\/p>\n<p>            elif event.type == pygame.KEYDOWN:<\/p>\n<p>                if event.unicode.isalpha():<\/p>\n<p>                    typed_string += event.unicode<\/p>\n<p>                elif event.key == pygame.K_BACKSPACE:<\/p>\n<p>                    typed_string = typed_string[:-1]<\/p>\n<p>                elif event.key == pygame.K_RETURN:<\/p>\n<p>                    if typed_string == current_string:<\/p>\n<p>                        score += 1<\/p>\n<p>                        current_string = random_string()<\/p>\n<p>                    typed_string = &quot;&quot;<\/p>\n<p>        # \u7ed8\u5236\u80cc\u666f<\/p>\n<p>        screen.fill(WHITE)<\/p>\n<p>        # \u7ed8\u5236\u5f53\u524d\u5b57\u7b26\u4e32<\/p>\n<p>        text = font.render(current_string, True, BLACK)<\/p>\n<p>        screen.blit(text, (screen_width\/\/2 - text.get_width()\/\/2, screen_height\/\/3))<\/p>\n<p>        # \u7ed8\u5236\u5df2\u8f93\u5165\u5b57\u7b26\u4e32<\/p>\n<p>        typed_text = font.render(typed_string, True, BLACK)<\/p>\n<p>        screen.blit(typed_text, (screen_width\/\/2 - typed_text.get_width()\/\/2, screen_height\/\/2))<\/p>\n<p>        # \u7ed8\u5236\u5206\u6570<\/p>\n<p>        score_text = font.render(f&quot;Score: {score}&quot;, True, BLACK)<\/p>\n<p>        screen.blit(score_text, (10, 10))<\/p>\n<p>        # \u66f4\u65b0\u5c4f\u5e55<\/p>\n<p>        pygame.display.flip()<\/p>\n<h2><strong>\u8fd0\u884c\u6e38\u620f<\/strong><\/h2>\n<p>game_loop()<\/p>\n<h2><strong>\u9000\u51faPygame<\/strong><\/h2>\n<p>pygame.quit()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8be5\u4ee3\u7801\u521b\u5efa\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u6253\u5b57\u6e38\u620f\uff0c\u7528\u6237\u9700\u8981\u5728\u7a97\u53e3\u4e2d\u8f93\u5165\u663e\u793a\u7684\u968f\u673a\u5b57\u7b26\u4e32\uff0c\u5e76\u5728\u8f93\u5165\u6b63\u786e\u540e\u83b7\u5f97\u5206\u6570\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u5229\u7528GUI\u5e93\u521b\u5efa\u6253\u5b57\u5e94\u7528\u7a0b\u5e8f<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u6e38\u620f\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>tkinter<\/code>\u7b49GUI\u5e93\u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u6253\u5b57\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e2e\u52a9\u7528\u6237\u7ec3\u4e60\u6253\u5b57\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528<code>tkinter<\/code>\u521b\u5efa\u6253\u5b57\u5e94\u7528\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-python\">import tkinter as tk<\/p>\n<p>import random<\/p>\n<h2><strong>\u751f\u6210\u968f\u673a\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>def random_string(length=5):<\/p>\n<p>    letters = &quot;abcdefghijklmnopqrstuvwxyz&quot;<\/p>\n<p>    return &#39;&#39;.join(random.choice(letters) for i in range(length))<\/p>\n<h2><strong>\u68c0\u67e5\u8f93\u5165<\/strong><\/h2>\n<p>def check_input(event):<\/p>\n<p>    global current_string<\/p>\n<p>    if entry.get() == current_string:<\/p>\n<p>        score.set(score.get() + 1)<\/p>\n<p>        current_string = random_string()<\/p>\n<p>        target_string.set(current_string)<\/p>\n<p>        entry.delete(0, tk.END)<\/p>\n<h2><strong>\u521d\u59cb\u5316\u4e3b\u7a97\u53e3<\/strong><\/h2>\n<p>root = tk.Tk()<\/p>\n<p>root.title(&quot;Typing Practice&quot;)<\/p>\n<h2><strong>\u521d\u59cb\u5316\u53d8\u91cf<\/strong><\/h2>\n<p>current_string = random_string()<\/p>\n<p>target_string = tk.StringVar(value=current_string)<\/p>\n<p>score = tk.IntVar(value=0)<\/p>\n<h2><strong>\u521b\u5efa\u6807\u7b7e<\/strong><\/h2>\n<p>tk.Label(root, text=&quot;Type the following:&quot;).pack()<\/p>\n<p>tk.Label(root, textvariable=target_string, font=(&quot;Helvetica&quot;, 24)).pack()<\/p>\n<h2><strong>\u521b\u5efa\u8f93\u5165\u6846<\/strong><\/h2>\n<p>entry = tk.Entry(root, font=(&quot;Helvetica&quot;, 24))<\/p>\n<p>entry.pack()<\/p>\n<p>entry.bind(&quot;&lt;Return&gt;&quot;, check_input)<\/p>\n<h2><strong>\u521b\u5efa\u5206\u6570\u6807\u7b7e<\/strong><\/h2>\n<p>tk.Label(root, text=&quot;Score:&quot;).pack()<\/p>\n<p>tk.Label(root, textvariable=score, font=(&quot;Helvetica&quot;, 24)).pack()<\/p>\n<h2><strong>\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f<\/strong><\/h2>\n<p>entry.focus_set()<\/p>\n<p>root.m<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nloop()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8be5\u4ee3\u7801\u4f7f\u7528<code>tkinter<\/code>\u5e93\u521b\u5efa\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u6253\u5b57\u7ec3\u4e60\u5e94\u7528\u7a0b\u5e8f\uff0c\u7528\u6237\u9700\u8981\u5728\u8f93\u5165\u6846\u4e2d\u8f93\u5165\u968f\u673a\u751f\u6210\u7684\u5b57\u7b26\u4e32\uff0c\u5e76\u5728\u8f93\u5165\u6b63\u786e\u540e\u83b7\u5f97\u5206\u6570\u66f4\u65b0\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\uff1a<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c\u4f7f\u7528Python\u5b9e\u73b0\u6253\u5b57\u529f\u80fd\u6709\u591a\u79cd\u65b9\u6cd5\u3002\u6211\u4eec\u53ef\u4ee5\u9009\u62e9\u6a21\u62df\u952e\u76d8\u8f93\u5165\u4ee5\u5b9e\u73b0\u81ea\u52a8\u5316\u6253\u5b57\uff0c\u521b\u5efa\u4e00\u4e2a\u6253\u5b57\u6e38\u620f\u4ee5\u63d0\u9ad8\u6253\u5b57\u901f\u5ea6\uff0c\u6216\u8005\u5229\u7528GUI\u5e93\u5f00\u53d1\u4e00\u4e2a\u6253\u5b57\u7ec3\u4e60\u5e94\u7528\u7a0b\u5e8f\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u5b9e\u73b0\u6240\u9700\u529f\u80fd\u3002\u65e0\u8bba\u662f\u81ea\u52a8\u5316\u4efb\u52a1\u8fd8\u662f\u63d0\u9ad8\u6253\u5b57\u6280\u80fd\uff0cPython\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5de5\u5177\u548c\u5e93\u4f9b\u6211\u4eec\u4f7f\u7528\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u8fdb\u884c\u81ea\u52a8\u6253\u5b57\uff1f<\/strong><br \/>Python\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u5e93\u6765\u5b9e\u73b0\u81ea\u52a8\u6253\u5b57\u7684\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>pyautogui<\/code>\u5e93\u53ef\u4ee5\u6a21\u62df\u952e\u76d8\u8f93\u5165\u3002\u4f60\u9700\u8981\u5148\u5b89\u88c5\u8be5\u5e93\uff0c\u7136\u540e\u4f7f\u7528<code>pyautogui.typewrite()<\/code>\u51fd\u6570\u6765\u8f93\u5165\u6587\u672c\u3002\u786e\u4fdd\u4f60\u5728\u8fd0\u884c\u811a\u672c\u65f6\uff0c\u7126\u70b9\u5728\u76ee\u6807\u8f93\u5165\u6846\u4e2d\uff0c\u8fd9\u6837\u6587\u672c\u624d\u80fd\u88ab\u6b63\u786e\u8f93\u5165\u3002<\/p>\n<p><strong>\u4f7f\u7528Python\u6253\u5b57\u65f6\uff0c\u6709\u54ea\u4e9b\u5e38\u89c1\u7684\u5e93\u63a8\u8350\uff1f<\/strong><br \/>\u9664\u4e86<code>pyautogui<\/code>\u5916\uff0c<code>pynput<\/code>\u4e5f\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u5e93\uff0c\u53ef\u4ee5\u7528\u6765\u76d1\u63a7\u548c\u63a7\u5236\u952e\u76d8\u3002<code>keyboard<\/code>\u5e93\u4e5f\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u5141\u8bb8\u4f60\u53d1\u9001\u6309\u952e\u547d\u4ee4\u548c\u8bb0\u5f55\u6309\u952e\u3002\u8fd9\u4e9b\u5e93\u90fd\u6709\u5176\u72ec\u7279\u7684\u529f\u80fd\u548c\u4f7f\u7528\u573a\u666f\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5e93\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406Python\u6253\u5b57\u8fc7\u7a0b\u4e2d\u7684\u5ef6\u8fdf\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u4f7f\u7528Python\u8fdb\u884c\u81ea\u52a8\u6253\u5b57\u65f6\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u901f\u5ea6\u8fc7\u5feb\u5bfc\u81f4\u8f93\u5165\u9519\u8bef\u7684\u95ee\u9898\u3002\u53ef\u4ee5\u901a\u8fc7\u5728\u8f93\u5165\u5b57\u7b26\u4e4b\u95f4\u6dfb\u52a0\u5ef6\u8fdf\u6765\u89e3\u51b3\u3002<code>pyautogui.typewrite(&quot;\u6587\u672c&quot;, interval=0.1)<\/code>\u53ef\u4ee5\u8bbe\u7f6e\u6bcf\u4e2a\u5b57\u7b26\u8f93\u5165\u4e4b\u95f4\u7684\u95f4\u9694\uff0c\u4ece\u800c\u8ba9\u8f93\u5165\u8fc7\u7a0b\u66f4\u52a0\u81ea\u7136\u548c\u51c6\u786e\u3002\u8c03\u6574\u8fd9\u4e2a\u95f4\u9694\u503c\uff0c\u627e\u5230\u6700\u9002\u5408\u4f60\u9700\u6c42\u7684\u901f\u5ea6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5b9e\u73b0\u6253\u5b57\u529f\u80fd\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u7a0b\u5e8f\u6a21\u62df\u952e\u76d8\u8f93\u5165\u3001\u4f7f\u7528\u5e93\u51fd\u6570\u521b\u5efa\u6253\u5b57\u6e38\u620f\u3001\u5229\u7528GUI\u5e93\u521b\u5efa\u6253\u5b57\u5e94\u7528\u7a0b\u5e8f [&hellip;]","protected":false},"author":3,"featured_media":950705,"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\/950699"}],"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=950699"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/950699\/revisions"}],"predecessor-version":[{"id":950707,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/950699\/revisions\/950707"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/950705"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=950699"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=950699"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=950699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}