{"id":100,"date":"2020-04-09T05:24:41","date_gmt":"2020-04-09T05:24:41","guid":{"rendered":"http:\/\/feellikelearning.com\/?p=100"},"modified":"2020-04-09T05:39:57","modified_gmt":"2020-04-09T05:39:57","slug":"cn-multithread-asynchronous-programming-in-python","status":"publish","type":"post","link":"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/","title":{"rendered":"Python \u591a\u7ebf\u7a0b\uff0f\u5f02\u6b65\u7f16\u7a0b\u4f8b\u5b50 | Multithread \/ asynchronous programming examples in Python"},"content":{"rendered":"\n<p>Python\u4e5f\u662f\u53ef\u4ee5\u591a\u7ebf\u7a0b\uff0f\u5f02\u6b65\u7f16\u7a0b\u7684\u3002\u5f02\u6b65\u6709\u4ec0\u4e48\u7528\u5462\uff1f\u4e00\u4e2a\u7ecf\u5178\u7684\u601d\u7ef4\u6a21\u578b\u5982\u4e0b\uff1a<br>\u4e00\u4e2a\u7a0b\u5e8f\u9700\u8981\u5230\u4e0d\u540c\u7684\u670d\u52a1\u5668\u4e0a\u53bb\u53d6\u6570\u636e\uff0c\u9700\u8981\u7b49\u5404\u79cd\u6570\u636e\u6536\u96c6\u9f50\u4e86\uff0c\u624d\u80fd\u7ee7\u7eed\u4e0b\u4e00\u6b65\u3002\u5047\u5982\u670910\u4e2a\u670d\u52a1\u5668\uff0c\u5982\u679c\u662f\u5355\u524d\u7a0b\uff0c\u90a3\u4e48\u53ea\u80fd\u53d1\u51fa\u4e00\u4e2a\u8bf7\u6c42\uff0c\u7136\u540e\u7b49\u5f85\u670d\u52a1\u5668\u8fd4\u56de\uff0c\u7136\u540e\u518d\u53d1\u4e00\u4e0b\u4e2a\u8bf7\u6c42\u3002\u8fd9\u6837\u6bcf\u4e2a\u65f6\u523b\u53ea\u6709\u4e00\u4e2a\u670d\u52a1\u5668\u5728\u5de5\u4f5c\u800c\u5176\u4ed69\u4e2a\u90fd\u662f\u95f2\u7f6e\u7684\u3002\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u662f\u540c\u4e8b\u541110\u4e2a\u670d\u52a1\u5668\u53d1\u9001\u8bf7\u6c42\uff0c\u7136\u540e\u9a6c\u4e0a\u62ff\u5230\u4e2a\u201c\u6536\u636e\u201d\uff0c\u6ce8\u610f\u62ff\u5230\u6536\u636e\u53ea\u662f\u8bf4\u5df2\u7ecf\u63d0\u4ea4\u5230\u670d\u52a1\u5668\u4e86\uff0c\u4e0d\u4ee3\u8868\u5df2\u7ecf\u5b8c\u6210\u8bf7\u6c42\u3002\u8fd9\u4e2a\u201c\u6536\u636e\u201d\u5c31\u53ebfuture\u3002\u8bf7\u6c42\u5168\u90e8\u63d0\u4ea4\u5b8c\u4e86\uff0c\u90a3\u4e48\u4e3b\u7a0b\u5e8f\u5c31\u53ef\u4ee5\u7b49\u7740\u5168\u90e8\u670d\u52a1\u5668\u5b8c\u6210\u8bf7\u6c42\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u662f\u4e2a\u5177\u4f53\u7684\u4f8b\u5b50\uff0c\u7528Python 2.7\u5b9e\u73b0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from concurrent.futures import ThreadPoolExecutor, as_completed\n\n# assume this is a request to a server\ndef add(x, y):\n    return x + y\n\nexecutor = ThreadPoolExecutor(max_workers=10)\nfutures = []\nfor i in range(10):\n    futures.append(executor.submit(add, i, i + 1))\n\nfor f in as_completed(futures):\n    print(f.result())<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u4e5f\u662f\u53ef\u4ee5\u591a\u7ebf\u7a0b\uff0f\u5f02\u6b65\u7f16\u7a0b\u7684\u3002\u5f02\u6b65\u6709\u4ec0\u4e48\u7528\u5462\uff1f\u4e00\u4e2a\u7ecf\u5178\u7684\u601d\u7ef4\u6a21\u578b\u5982\u4e0b\uff1a\u4e00\u4e2a\u7a0b\u5e8f\u9700\u8981\u5230\u4e0d\u540c\u7684\u670d\u52a1\u5668\u4e0a\u53bb\u53d6\u6570\u636e\uff0c\u9700\u8981\u7b49\u5404\u79cd\u6570\u636e\u6536\u96c6\u9f50\u4e86\uff0c\u624d\u80fd\u7ee7\u7eed\u4e0b\u4e00\u6b65\u3002\u5047\u5982\u670910\u4e2a\u670d\u52a1\u5668\uff0c\u5982\u679c\u662f\u5355\u524d\u7a0b\uff0c\u90a3\u4e48\u53ea\u80fd\u53d1\u51fa\u4e00\u4e2a\u8bf7\u6c42\uff0c\u7136\u540e\u7b49\u5f85\u670d\u52a1\u5668\u8fd4\u56de\uff0c\u7136\u540e\u518d\u53d1\u4e00\u4e0b\u4e2a\u8bf7\u6c42\u3002\u8fd9\u6837\u6bcf\u4e2a\u65f6\u523b\u53ea\u6709\u4e00\u4e2a\u670d\u52a1\u5668\u5728\u5de5\u4f5c\u800c\u5176\u4ed69\u4e2a\u90fd\u662f\u95f2\u7f6e\u7684\u3002\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u662f\u540c\u4e8b\u541110\u4e2a\u670d\u52a1\u5668\u53d1\u9001\u8bf7\u6c42\uff0c\u7136\u540e\u9a6c\u4e0a\u62ff\u5230\u4e2a\u201c\u6536\u636e\u201d\uff0c\u6ce8\u610f\u62ff\u5230\u6536\u636e\u53ea\u662f\u8bf4\u5df2\u7ecf\u63d0\u4ea4\u5230\u670d\u52a1\u5668\u4e86\uff0c\u4e0d\u4ee3\u8868\u5df2\u7ecf\u5b8c\u6210\u8bf7\u6c42\u3002\u8fd9\u4e2a\u201c\u6536\u636e\u201d\u5c31\u53ebfuture\u3002\u8bf7\u6c42\u5168\u90e8\u63d0\u4ea4\u5b8c\u4e86\uff0c\u90a3\u4e48\u4e3b\u7a0b\u5e8f\u5c31\u53ef\u4ee5\u7b49\u7740\u5168\u90e8\u670d\u52a1\u5668\u5b8c\u6210\u8bf7\u6c42\u3002 \u4ee5\u4e0b\u662f\u4e2a\u5177\u4f53\u7684\u4f8b\u5b50\uff0c\u7528Python 2.7\u5b9e\u73b0<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.10 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python \u591a\u7ebf\u7a0b\uff0f\u5f02\u6b65\u7f16\u7a0b\u4f8b\u5b50 | Multithread \/ asynchronous programming examples in Python | Feel Like Learning<\/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:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python \u591a\u7ebf\u7a0b\uff0f\u5f02\u6b65\u7f16\u7a0b\u4f8b\u5b50 | Multithread \/ asynchronous programming examples in Python | Feel Like Learning\" \/>\n<meta property=\"og:description\" content=\"Python\u4e5f\u662f\u53ef\u4ee5\u591a\u7ebf\u7a0b\uff0f\u5f02\u6b65\u7f16\u7a0b\u7684\u3002\u5f02\u6b65\u6709\u4ec0\u4e48\u7528\u5462\uff1f\u4e00\u4e2a\u7ecf\u5178\u7684\u601d\u7ef4\u6a21\u578b\u5982\u4e0b\uff1a\u4e00\u4e2a\u7a0b\u5e8f\u9700\u8981\u5230\u4e0d\u540c\u7684\u670d\u52a1\u5668\u4e0a\u53bb\u53d6\u6570\u636e\uff0c\u9700\u8981\u7b49\u5404\u79cd\u6570\u636e\u6536\u96c6\u9f50\u4e86\uff0c\u624d\u80fd\u7ee7\u7eed\u4e0b\u4e00\u6b65\u3002\u5047\u5982\u670910\u4e2a\u670d\u52a1\u5668\uff0c\u5982\u679c\u662f\u5355\u524d\u7a0b\uff0c\u90a3\u4e48\u53ea\u80fd\u53d1\u51fa\u4e00\u4e2a\u8bf7\u6c42\uff0c\u7136\u540e\u7b49\u5f85\u670d\u52a1\u5668\u8fd4\u56de\uff0c\u7136\u540e\u518d\u53d1\u4e00\u4e0b\u4e2a\u8bf7\u6c42\u3002\u8fd9\u6837\u6bcf\u4e2a\u65f6\u523b\u53ea\u6709\u4e00\u4e2a\u670d\u52a1\u5668\u5728\u5de5\u4f5c\u800c\u5176\u4ed69\u4e2a\u90fd\u662f\u95f2\u7f6e\u7684\u3002\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u662f\u540c\u4e8b\u541110\u4e2a\u670d\u52a1\u5668\u53d1\u9001\u8bf7\u6c42\uff0c\u7136\u540e\u9a6c\u4e0a\u62ff\u5230\u4e2a\u201c\u6536\u636e\u201d\uff0c\u6ce8\u610f\u62ff\u5230\u6536\u636e\u53ea\u662f\u8bf4\u5df2\u7ecf\u63d0\u4ea4\u5230\u670d\u52a1\u5668\u4e86\uff0c\u4e0d\u4ee3\u8868\u5df2\u7ecf\u5b8c\u6210\u8bf7\u6c42\u3002\u8fd9\u4e2a\u201c\u6536\u636e\u201d\u5c31\u53ebfuture\u3002\u8bf7\u6c42\u5168\u90e8\u63d0\u4ea4\u5b8c\u4e86\uff0c\u90a3\u4e48\u4e3b\u7a0b\u5e8f\u5c31\u53ef\u4ee5\u7b49\u7740\u5168\u90e8\u670d\u52a1\u5668\u5b8c\u6210\u8bf7\u6c42\u3002 \u4ee5\u4e0b\u662f\u4e2a\u5177\u4f53\u7684\u4f8b\u5b50\uff0c\u7528Python 2.7\u5b9e\u73b0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/\" \/>\n<meta property=\"og:site_name\" content=\"Feel Like Learning\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-09T05:24:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-04-09T05:39:57+00:00\" \/>\n<meta name=\"author\" content=\"feellikelearning\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"feellikelearning\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/\"},\"author\":{\"name\":\"feellikelearning\",\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a\"},\"headline\":\"Python \u591a\u7ebf\u7a0b\uff0f\u5f02\u6b65\u7f16\u7a0b\u4f8b\u5b50 | Multithread \/ asynchronous programming examples in Python\",\"datePublished\":\"2020-04-09T05:24:41+00:00\",\"dateModified\":\"2020-04-09T05:39:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/\"},\"wordCount\":10,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/\",\"url\":\"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/\",\"name\":\"Python \u591a\u7ebf\u7a0b\uff0f\u5f02\u6b65\u7f16\u7a0b\u4f8b\u5b50 | Multithread \/ asynchronous programming examples in Python | Feel Like Learning\",\"isPartOf\":{\"@id\":\"https:\/\/feellikelearning.com\/#website\"},\"datePublished\":\"2020-04-09T05:24:41+00:00\",\"dateModified\":\"2020-04-09T05:39:57+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/feellikelearning.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python \u591a\u7ebf\u7a0b\uff0f\u5f02\u6b65\u7f16\u7a0b\u4f8b\u5b50 | Multithread \/ asynchronous programming examples in Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/feellikelearning.com\/#website\",\"url\":\"https:\/\/feellikelearning.com\/\",\"name\":\"Feel Like Learning\",\"description\":\"\u7a0b\u5e8f\uff5c\u751f\u6d3b\uff5c\u5b66\u5230\u5c31\u662f\u8d5a\u5230\",\"publisher\":{\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/feellikelearning.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a\",\"name\":\"feellikelearning\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/72a1e86e9dcb0332e88bd7d54fd36c28?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/72a1e86e9dcb0332e88bd7d54fd36c28?s=96&d=mm&r=g\",\"caption\":\"feellikelearning\"},\"logo\":{\"@id\":\"https:\/\/feellikelearning.com\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/feellikelearning.com\/index.php\/author\/feellikelearning\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python \u591a\u7ebf\u7a0b\uff0f\u5f02\u6b65\u7f16\u7a0b\u4f8b\u5b50 | Multithread \/ asynchronous programming examples in Python | Feel Like Learning","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:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/","og_locale":"en_US","og_type":"article","og_title":"Python \u591a\u7ebf\u7a0b\uff0f\u5f02\u6b65\u7f16\u7a0b\u4f8b\u5b50 | Multithread \/ asynchronous programming examples in Python | Feel Like Learning","og_description":"Python\u4e5f\u662f\u53ef\u4ee5\u591a\u7ebf\u7a0b\uff0f\u5f02\u6b65\u7f16\u7a0b\u7684\u3002\u5f02\u6b65\u6709\u4ec0\u4e48\u7528\u5462\uff1f\u4e00\u4e2a\u7ecf\u5178\u7684\u601d\u7ef4\u6a21\u578b\u5982\u4e0b\uff1a\u4e00\u4e2a\u7a0b\u5e8f\u9700\u8981\u5230\u4e0d\u540c\u7684\u670d\u52a1\u5668\u4e0a\u53bb\u53d6\u6570\u636e\uff0c\u9700\u8981\u7b49\u5404\u79cd\u6570\u636e\u6536\u96c6\u9f50\u4e86\uff0c\u624d\u80fd\u7ee7\u7eed\u4e0b\u4e00\u6b65\u3002\u5047\u5982\u670910\u4e2a\u670d\u52a1\u5668\uff0c\u5982\u679c\u662f\u5355\u524d\u7a0b\uff0c\u90a3\u4e48\u53ea\u80fd\u53d1\u51fa\u4e00\u4e2a\u8bf7\u6c42\uff0c\u7136\u540e\u7b49\u5f85\u670d\u52a1\u5668\u8fd4\u56de\uff0c\u7136\u540e\u518d\u53d1\u4e00\u4e0b\u4e2a\u8bf7\u6c42\u3002\u8fd9\u6837\u6bcf\u4e2a\u65f6\u523b\u53ea\u6709\u4e00\u4e2a\u670d\u52a1\u5668\u5728\u5de5\u4f5c\u800c\u5176\u4ed69\u4e2a\u90fd\u662f\u95f2\u7f6e\u7684\u3002\u66f4\u9ad8\u6548\u7684\u65b9\u6cd5\u662f\u540c\u4e8b\u541110\u4e2a\u670d\u52a1\u5668\u53d1\u9001\u8bf7\u6c42\uff0c\u7136\u540e\u9a6c\u4e0a\u62ff\u5230\u4e2a\u201c\u6536\u636e\u201d\uff0c\u6ce8\u610f\u62ff\u5230\u6536\u636e\u53ea\u662f\u8bf4\u5df2\u7ecf\u63d0\u4ea4\u5230\u670d\u52a1\u5668\u4e86\uff0c\u4e0d\u4ee3\u8868\u5df2\u7ecf\u5b8c\u6210\u8bf7\u6c42\u3002\u8fd9\u4e2a\u201c\u6536\u636e\u201d\u5c31\u53ebfuture\u3002\u8bf7\u6c42\u5168\u90e8\u63d0\u4ea4\u5b8c\u4e86\uff0c\u90a3\u4e48\u4e3b\u7a0b\u5e8f\u5c31\u53ef\u4ee5\u7b49\u7740\u5168\u90e8\u670d\u52a1\u5668\u5b8c\u6210\u8bf7\u6c42\u3002 \u4ee5\u4e0b\u662f\u4e2a\u5177\u4f53\u7684\u4f8b\u5b50\uff0c\u7528Python 2.7\u5b9e\u73b0","og_url":"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/","og_site_name":"Feel Like Learning","article_published_time":"2020-04-09T05:24:41+00:00","article_modified_time":"2020-04-09T05:39:57+00:00","author":"feellikelearning","twitter_card":"summary_large_image","twitter_misc":{"Written by":"feellikelearning"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/#article","isPartOf":{"@id":"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/"},"author":{"name":"feellikelearning","@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a"},"headline":"Python \u591a\u7ebf\u7a0b\uff0f\u5f02\u6b65\u7f16\u7a0b\u4f8b\u5b50 | Multithread \/ asynchronous programming examples in Python","datePublished":"2020-04-09T05:24:41+00:00","dateModified":"2020-04-09T05:39:57+00:00","mainEntityOfPage":{"@id":"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/"},"wordCount":10,"commentCount":0,"publisher":{"@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a"},"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/","url":"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/","name":"Python \u591a\u7ebf\u7a0b\uff0f\u5f02\u6b65\u7f16\u7a0b\u4f8b\u5b50 | Multithread \/ asynchronous programming examples in Python | Feel Like Learning","isPartOf":{"@id":"https:\/\/feellikelearning.com\/#website"},"datePublished":"2020-04-09T05:24:41+00:00","dateModified":"2020-04-09T05:39:57+00:00","breadcrumb":{"@id":"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/feellikelearning.com\/index.php\/2020\/04\/09\/cn-multithread-asynchronous-programming-in-python\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/feellikelearning.com\/"},{"@type":"ListItem","position":2,"name":"Python \u591a\u7ebf\u7a0b\uff0f\u5f02\u6b65\u7f16\u7a0b\u4f8b\u5b50 | Multithread \/ asynchronous programming examples in Python"}]},{"@type":"WebSite","@id":"https:\/\/feellikelearning.com\/#website","url":"https:\/\/feellikelearning.com\/","name":"Feel Like Learning","description":"\u7a0b\u5e8f\uff5c\u751f\u6d3b\uff5c\u5b66\u5230\u5c31\u662f\u8d5a\u5230","publisher":{"@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/feellikelearning.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/91fb815bebebf166c217b5e3764d437a","name":"feellikelearning","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/72a1e86e9dcb0332e88bd7d54fd36c28?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/72a1e86e9dcb0332e88bd7d54fd36c28?s=96&d=mm&r=g","caption":"feellikelearning"},"logo":{"@id":"https:\/\/feellikelearning.com\/#\/schema\/person\/image\/"},"url":"https:\/\/feellikelearning.com\/index.php\/author\/feellikelearning\/"}]}},"_links":{"self":[{"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/posts\/100"}],"collection":[{"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/comments?post=100"}],"version-history":[{"count":3,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":104,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/posts\/100\/revisions\/104"}],"wp:attachment":[{"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/media?parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/categories?post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/feellikelearning.com\/index.php\/wp-json\/wp\/v2\/tags?post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}