{"id":47057,"date":"2025-07-30T05:52:03","date_gmt":"2025-07-29T21:52:03","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/47057.html"},"modified":"2025-07-30T05:52:03","modified_gmt":"2025-07-29T21:52:03","slug":"%e8%a7%a3%e6%9e%90-python-%e7%9a%84%e5%bc%82%e6%ad%a5%e9%ad%94%e6%b3%95%ef%bc%9a%e6%b7%b1%e5%85%a5%e7%90%86%e8%a7%a3-async-%e5%92%8c-await","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/47057.html","title":{"rendered":"\u89e3\u6790 Python \u7684\u5f02\u6b65\u9b54\u6cd5\uff1a\u6df1\u5165\u7406\u89e3 `async` \u548c `await`"},"content":{"rendered":"<h2>\u89e3\u6790 Python \u7684\u5f02\u6b65\u9b54\u6cd5\uff1a\u6df1\u5165\u7406\u89e3 async \u548c await<\/h2>\n<h3>\u5f00\u7bc7\u5f15\u5165<\/h3>\n<p>\u5728\u73b0\u4ee3\u7f16\u7a0b\u4e2d\uff0c\u6027\u80fd\u4f18\u5316\u5c24\u4e3a\u91cd\u8981\u3002\u65e0\u8bba\u662f\u5b9e\u73b0\u9ad8\u5e76\u53d1\u7f51\u7edc\u8bf7\u6c42\uff0c\u8fd8\u662f\u4f18\u5316\u6570\u636e\u5904\u7406\u6d41\u7a0b\uff0c\u5f02\u6b65\u7f16\u7a0b\u5df2\u6210\u4e3a\u5f00\u53d1\u8005\u7684\u5f3a\u529b\u5de5\u5177\u3002\u5728 Python \u4e2d\uff0casync \u548c await \u662f\u5f00\u542f\u5f02\u6b65\u4e16\u754c\u7684\u5927\u95e8\u3002<\/p>\n<p>\u672c\u7bc7\u535a\u6587\u5c06\u6df1\u5165\u5256\u6790\u8fd9\u4e24\u4e2a\u5173\u952e\u5b57\u7684\u5185\u5728\u673a\u5236\uff0c\u63a2\u8ba8\u4e00\u4e2a\u51fd\u6570\u88ab\u5b9a\u4e49\u4e3a async \u540e\u7a76\u7adf\u53d1\u751f\u4e86\u54ea\u4e9b\u53d8\u5316\uff0c\u5e76\u4ee5\u5b9e\u9645\u6848\u4f8b\u5e2e\u52a9\u4f60\u638c\u63e1\u5b83\u4eec\u7684\u6b63\u786e\u7528\u6cd5\u3002<\/p>\n<hr>\n<h3>\u4e00\u3001\u4ec0\u4e48\u662f async \u548c await\uff1f<\/h3>\n<h4>\u5b9a\u4e49<\/h4>\n<li>\n<p>async async \u662f\u4e00\u4e2a\u7528\u6765\u5b9a\u4e49\u534f\u7a0b\uff08Coroutine\uff09\u7684\u5173\u952e\u5b57\u3002\u5b83\u5c06\u4e00\u4e2a\u666e\u901a\u51fd\u6570\u8f6c\u53d8\u4e3a\u5f02\u6b65\u51fd\u6570\uff0c\u4f7f\u5176\u53ef\u4ee5\u88ab\u4e8b\u4ef6\u5faa\u73af\u8c03\u5ea6\u3002<\/p>\n<\/li>\n<li>\n<p>await await \u7528\u4e8e\u6682\u505c\u534f\u7a0b\u7684\u6267\u884c\uff0c\u5e76\u7b49\u5f85\u4e00\u4e2a\u5f02\u6b65\u64cd\u4f5c\u5b8c\u6210\u3002\u5f53\u64cd\u4f5c\u7ed3\u675f\u65f6\uff0c\u534f\u7a0b\u4f1a\u6062\u590d\u8fd0\u884c\u3002<\/p>\n<\/li>\n<h4>\u4e00\u4e2a\u7b80\u5355\u793a\u4f8b<\/h4>\n<p><span class=\"token keyword\">import<\/span> asyncio<\/p>\n<p><span class=\"token keyword\">async<\/span> <span class=\"token keyword\">def<\/span> <span class=\"token function\">say_hello<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">await<\/span> asyncio<span class=\"token punctuation\">.<\/span>sleep<span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># \u6a21\u62df\u5f02\u6b65\u64cd\u4f5c<\/span><br \/>\n    <span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">\\&#8221;Hello, Async!\\&#8221;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token comment\"># \u542f\u52a8\u534f\u7a0b<\/span><br \/>\nasyncio<span class=\"token punctuation\">.<\/span>run<span class=\"token punctuation\">(<\/span>say_hello<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0casync \u548c await \u4e00\u8d77\u5de5\u4f5c\uff0c\u8ba9\u4efb\u52a1\u975e\u963b\u585e\u5730\u6682\u505c 1 \u79d2\u5e76\u6253\u5370\u8f93\u51fa\u3002<\/p>\n<hr>\n<h3>\u4e8c\u3001async \u5173\u952e\u5b57\u7684\u4f5c\u7528\uff1a\u51fd\u6570\u7684\u672c\u8d28\u5982\u4f55\u53d8\u5316\uff1f<\/h3>\n<h4>\u666e\u901a\u51fd\u6570\u4e0e\u5f02\u6b65\u51fd\u6570\u7684\u5dee\u5f02<\/h4>\n<p>\u4e00\u4e2a\u88ab\u5b9a\u4e49\u4e3a async \u7684\u51fd\u6570\uff0c\u5176\u672c\u8d28\u5df2\u7ecf\u4e0d\u518d\u662f\u666e\u901a\u7684 Python \u51fd\u6570\uff0c\u800c\u662f\u53d8\u6210\u4e86\u4e00\u4e2a \u534f\u7a0b\u51fd\u6570\u3002\u534f\u7a0b\u51fd\u6570\u5728\u8c03\u7528\u65f6\u4e0d\u4f1a\u76f4\u63a5\u6267\u884c\uff0c\u800c\u662f\u8fd4\u56de\u4e00\u4e2a\u534f\u7a0b\u5bf9\u8c61\u3002\u53ea\u6709\u5728\u4e8b\u4ef6\u5faa\u73af\u4e2d\u8fd0\u884c\u8fd9\u4e2a\u534f\u7a0b\u65f6\uff0c\u624d\u4f1a\u5f00\u59cb\u6267\u884c\u51fd\u6570\u7684\u903b\u8f91\u3002<\/p>\n<h5>\u793a\u4f8b\u5bf9\u6bd4<\/h5>\n<p><span class=\"token comment\"># \u666e\u901a\u51fd\u6570<\/span><br \/>\n<span class=\"token keyword\">def<\/span> <span class=\"token function\">normal_function<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token string\">\\&#8221;I am a normal function.\\&#8221;<\/span><\/p>\n<p><span class=\"token comment\"># \u5f02\u6b65\u51fd\u6570<\/span><br \/>\n<span class=\"token keyword\">async<\/span> <span class=\"token keyword\">def<\/span> <span class=\"token function\">async_function<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token string\">\\&#8221;I am an async function.\\&#8221;<\/span><\/p>\n<p><span class=\"token comment\"># \u8c03\u7528\u7ed3\u679c\u5bf9\u6bd4<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>normal_function<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># \u8f93\u51fa: \\&#8221;I am a normal function.\\&#8221;<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>async_function<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>   <span class=\"token comment\">#<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb593\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u672c\u6587\u6df1\u5165\u89e3\u6790 Python \u4e2d\u7684 async \u548c await \u5173\u952e\u5b57\uff0c\u63ed\u793a\u5f02\u6b65\u7f16\u7a0b\u7684\u6838\u5fc3\u673a\u5236\u3002async \u5c06\u51fd\u6570\u8f6c\u6362\u4e3a\u534f\u7a0b\uff0c\u4f7f\u5176\u53ef\u88ab\u4e8b\u4ef6\u5faa\u73af\u8c03\u5ea6\uff1bawait \u5219\u6682\u505c\u534f\u7a0b\u6267\u884c\uff0c\u7b49\u5f85\u5f02\u6b65\u64cd\u4f5c\u5b8c\u6210\u3002\u6587\u7ae0\u901a\u8fc7\u4ee3\u7801\u793a\u4f8b\u5bf9\u6bd4\u666e\u901a\u51fd\u6570\u4e0e\u534f\u7a0b\u51fd\u6570\u7684\u5dee\u5f02\uff0c\u9610\u8ff0\u534f\u7a0b\u5bf9\u8c61\u7684\u60f0\u6027\u8fd0\u884c\u7279\u6027\uff0c\u5e76\u8be6\u7ec6\u8bb2\u89e3 await \u7684\u5de5\u4f5c\u539f\u7406\u53ca\u5176\u652f\u6301\u7684 awaitable \u5bf9\u8c61\u3002\u6b64\u5916\uff0c\u8fd8\u5c55\u793a\u4e86\u5982\u4f55\u5229\u7528 asyncio \u8fdb\u884c\u4efb\u52a1\u8c03\u5ea6\u548c\u8d85\u65f6\u63a7\u5236\uff0c\u4ee5\u53ca\u5f02\u6b65\u722c\u866b\u7b49\u5b9e\u6218\u5e94\u7528\u573a\u666f\u3002\u8fd9\u4e9b\u77e5\u8bc6\u80fd\u5e2e\u52a9\u5f00\u53d1\u8005\u9ad8\u6548\u5904\u7406 I\/O \u5bc6\u96c6\u578b\u4efb\u52a1\uff0c\u4f18\u5316\u7a0b\u5e8f\u6027\u80fd\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,2754,190,4494],"topic":[],"class_list":["post-47057","post","type-post","status-publish","format-standard","hentry","category-server","tag-python","tag-2754","tag-190","tag-4494"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u89e3\u6790 Python \u7684\u5f02\u6b65\u9b54\u6cd5\uff1a\u6df1\u5165\u7406\u89e3 `async` \u548c `await` - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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:\/\/www.wsisp.com\/helps\/47057.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u89e3\u6790 Python \u7684\u5f02\u6b65\u9b54\u6cd5\uff1a\u6df1\u5165\u7406\u89e3 `async` \u548c `await` - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb593\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u672c\u6587\u6df1\u5165\u89e3\u6790 Python \u4e2d\u7684 async \u548c await \u5173\u952e\u5b57\uff0c\u63ed\u793a\u5f02\u6b65\u7f16\u7a0b\u7684\u6838\u5fc3\u673a\u5236\u3002async \u5c06\u51fd\u6570\u8f6c\u6362\u4e3a\u534f\u7a0b\uff0c\u4f7f\u5176\u53ef\u88ab\u4e8b\u4ef6\u5faa\u73af\u8c03\u5ea6\uff1bawait \u5219\u6682\u505c\u534f\u7a0b\u6267\u884c\uff0c\u7b49\u5f85\u5f02\u6b65\u64cd\u4f5c\u5b8c\u6210\u3002\u6587\u7ae0\u901a\u8fc7\u4ee3\u7801\u793a\u4f8b\u5bf9\u6bd4\u666e\u901a\u51fd\u6570\u4e0e\u534f\u7a0b\u51fd\u6570\u7684\u5dee\u5f02\uff0c\u9610\u8ff0\u534f\u7a0b\u5bf9\u8c61\u7684\u60f0\u6027\u8fd0\u884c\u7279\u6027\uff0c\u5e76\u8be6\u7ec6\u8bb2\u89e3 await \u7684\u5de5\u4f5c\u539f\u7406\u53ca\u5176\u652f\u6301\u7684 awaitable \u5bf9\u8c61\u3002\u6b64\u5916\uff0c\u8fd8\u5c55\u793a\u4e86\u5982\u4f55\u5229\u7528 asyncio \u8fdb\u884c\u4efb\u52a1\u8c03\u5ea6\u548c\u8d85\u65f6\u63a7\u5236\uff0c\u4ee5\u53ca\u5f02\u6b65\u722c\u866b\u7b49\u5b9e\u6218\u5e94\u7528\u573a\u666f\u3002\u8fd9\u4e9b\u77e5\u8bc6\u80fd\u5e2e\u52a9\u5f00\u53d1\u8005\u9ad8\u6548\u5904\u7406 I\/O \u5bc6\u96c6\u578b\u4efb\u52a1\uff0c\u4f18\u5316\u7a0b\u5e8f\u6027\u80fd\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/47057.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-29T21:52:03+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/47057.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/47057.html\",\"name\":\"\u89e3\u6790 Python \u7684\u5f02\u6b65\u9b54\u6cd5\uff1a\u6df1\u5165\u7406\u89e3 `async` \u548c `await` - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-29T21:52:03+00:00\",\"dateModified\":\"2025-07-29T21:52:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/47057.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/47057.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/47057.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u89e3\u6790 Python \u7684\u5f02\u6b65\u9b54\u6cd5\uff1a\u6df1\u5165\u7406\u89e3 `async` \u548c `await`\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u89e3\u6790 Python \u7684\u5f02\u6b65\u9b54\u6cd5\uff1a\u6df1\u5165\u7406\u89e3 `async` \u548c `await` - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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:\/\/www.wsisp.com\/helps\/47057.html","og_locale":"zh_CN","og_type":"article","og_title":"\u89e3\u6790 Python \u7684\u5f02\u6b65\u9b54\u6cd5\uff1a\u6df1\u5165\u7406\u89e3 `async` \u548c `await` - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb593\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u672c\u6587\u6df1\u5165\u89e3\u6790 Python \u4e2d\u7684 async \u548c await \u5173\u952e\u5b57\uff0c\u63ed\u793a\u5f02\u6b65\u7f16\u7a0b\u7684\u6838\u5fc3\u673a\u5236\u3002async \u5c06\u51fd\u6570\u8f6c\u6362\u4e3a\u534f\u7a0b\uff0c\u4f7f\u5176\u53ef\u88ab\u4e8b\u4ef6\u5faa\u73af\u8c03\u5ea6\uff1bawait \u5219\u6682\u505c\u534f\u7a0b\u6267\u884c\uff0c\u7b49\u5f85\u5f02\u6b65\u64cd\u4f5c\u5b8c\u6210\u3002\u6587\u7ae0\u901a\u8fc7\u4ee3\u7801\u793a\u4f8b\u5bf9\u6bd4\u666e\u901a\u51fd\u6570\u4e0e\u534f\u7a0b\u51fd\u6570\u7684\u5dee\u5f02\uff0c\u9610\u8ff0\u534f\u7a0b\u5bf9\u8c61\u7684\u60f0\u6027\u8fd0\u884c\u7279\u6027\uff0c\u5e76\u8be6\u7ec6\u8bb2\u89e3 await \u7684\u5de5\u4f5c\u539f\u7406\u53ca\u5176\u652f\u6301\u7684 awaitable \u5bf9\u8c61\u3002\u6b64\u5916\uff0c\u8fd8\u5c55\u793a\u4e86\u5982\u4f55\u5229\u7528 asyncio \u8fdb\u884c\u4efb\u52a1\u8c03\u5ea6\u548c\u8d85\u65f6\u63a7\u5236\uff0c\u4ee5\u53ca\u5f02\u6b65\u722c\u866b\u7b49\u5b9e\u6218\u5e94\u7528\u573a\u666f\u3002\u8fd9\u4e9b\u77e5\u8bc6\u80fd\u5e2e\u52a9\u5f00\u53d1\u8005\u9ad8\u6548\u5904\u7406 I\/O \u5bc6\u96c6\u578b\u4efb\u52a1\uff0c\u4f18\u5316\u7a0b\u5e8f\u6027\u80fd\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/47057.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-29T21:52:03+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/47057.html","url":"https:\/\/www.wsisp.com\/helps\/47057.html","name":"\u89e3\u6790 Python \u7684\u5f02\u6b65\u9b54\u6cd5\uff1a\u6df1\u5165\u7406\u89e3 `async` \u548c `await` - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-29T21:52:03+00:00","dateModified":"2025-07-29T21:52:03+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/47057.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/47057.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/47057.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u89e3\u6790 Python \u7684\u5f02\u6b65\u9b54\u6cd5\uff1a\u6df1\u5165\u7406\u89e3 `async` \u548c `await`"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/47057","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=47057"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/47057\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=47057"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=47057"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=47057"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=47057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}