{"id":232,"date":"2017-02-01T07:12:58","date_gmt":"2017-02-01T07:12:58","guid":{"rendered":""},"modified":"2017-02-01T07:12:58","modified_gmt":"2017-02-01T07:12:58","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=232","title":{"rendered":"[\u8f6c] Python\u65f6\u95f4,\u65e5\u671f,\u65f6\u95f4\u6233\u5904\u7406"},"content":{"rendered":"<p><span style=\"font-size:14px;\">\u8f6c\u8f7d\u8bf7\u9644\u4e0a\u5730\u5740\uff0c\u6e05\u98ce\u4e50\u900d\u9065\uff1ahttp:\/\/blog.csdn.net\/xiaobing_blog\/article\/details\/12591917<\/span><br \/>\n<span style=\"font-size:14px;\">1.\u5c06\u5b57\u7b26\u4e32\u7684\u65f6\u95f4\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; \u65b9\u6cd5:<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; a = &#8220;2013-10-10 23:40:00&#8221;<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; \u5c06\u5176\u8f6c\u6362\u4e3a\u65f6\u95f4\u6570\u7ec4<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; import time<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; timeArray = time.strptime(a, &#8220;%Y-%m-%d %H:%M:%S&#8221;)<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; \u8f6c\u6362\u4e3a\u65f6\u95f4\u6233:<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; timeStamp = int(time.mktime(timeArray))<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; timeStamp == 1381419600<\/span><br \/>\n<span style=\"font-size:14px;\">2.\u5b57\u7b26\u4e32\u683c\u5f0f\u66f4\u6539<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; \u5982a = &#8220;2013-10-10 23:40:00&#8221;,\u60f3\u6539\u4e3a a = &#8220;2013\/10\/10 23:40:00&#8221;<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; \u65b9\u6cd5:\u5148\u8f6c\u6362\u4e3a\u65f6\u95f4\u6570\u7ec4,\u7136\u540e\u8f6c\u6362\u4e3a\u5176\u4ed6\u683c\u5f0f<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; timeArray = time.strptime(a, &#8220;%Y-%m-%d %H:%M:%S&#8221;)<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; otherStyleTime = time.strftime(&#8220;%Y\/%m\/%d %H:%M:%S&#8221;, timeArray)<\/span><\/p>\n<p>\n<span style=\"font-size:14px;\">3.\u65f6\u95f4\u6233\u8f6c\u6362\u4e3a\u6307\u5b9a\u683c\u5f0f\u65e5\u671f:<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; \u65b9\u6cd5\u4e00:<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; \u5229\u7528localtime()\u8f6c\u6362\u4e3a\u65f6\u95f4\u6570\u7ec4,\u7136\u540e\u683c\u5f0f\u5316\u4e3a\u9700\u8981\u7684\u683c\u5f0f,\u5982<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; timeStamp = 1381419600<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; timeArray = time.localtime(timeStamp)<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; otherStyleTime = time.strftime(&#8220;%Y-%m-%d %H:%M:%S&#8221;, timeArray)<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; otherStyletime == &#8220;2013-10-10 23:40:00&#8221;<\/span><\/p>\n<p><span style=\"font-size:14px;\">&nbsp; &nbsp; \u65b9\u6cd5\u4e8c:<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; import datetime<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; timeStamp = 1381419600<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; dateArray = datetime.datetime.utcfromtimestamp(timeStamp)<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; otherStyleTime = dateArray.strftime(&#8220;%Y-%m-%d %H:%M:%S&#8221;)<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; otherStyletime == &#8220;2013-10-10 23:40:00&#8221;<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; \u6ce8\u610f\uff1a\u4f7f\u7528\u6b64\u65b9\u6cd5\u65f6\u5fc5\u987b\u5148\u8bbe\u7f6e\u597d\u65f6\u533a\uff0c\u5426\u5219\u6709\u65f6\u5dee<\/span><\/p>\n<p><span style=\"font-size:14px;\">4.\u83b7\u53d6\u5f53\u524d\u65f6\u95f4\u5e76\u8f6c\u6362\u4e3a\u6307\u5b9a\u65e5\u671f\u683c\u5f0f<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; \u65b9\u6cd5\u4e00:<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; import time<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; \u83b7\u5f97\u5f53\u524d\u65f6\u95f4\u65f6\u95f4\u6233<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; now = int(time.time()) &nbsp;-&gt;\u8fd9\u662f\u65f6\u95f4\u6233<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; \u8f6c\u6362\u4e3a\u5176\u4ed6\u65e5\u671f\u683c\u5f0f,\u5982:&#8221;%Y-%m-%d %H:%M:%S&#8221;<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; timeArray = time.localtime(timeStamp)<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; otherStyleTime = time.strftime(&#8220;%Y-%m-%d %H:%M:%S&#8221;, timeArray)<\/span><\/p>\n<p><span style=\"font-size:14px;\">&nbsp; &nbsp; \u65b9\u6cd5\u4e8c:<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; import datetime<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; \u83b7\u5f97\u5f53\u524d\u65f6\u95f4<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; now = datetime.datetime.now() &nbsp;-&gt;\u8fd9\u662f\u65f6\u95f4\u6570\u7ec4\u683c\u5f0f<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; \u8f6c\u6362\u4e3a\u6307\u5b9a\u7684\u683c\u5f0f:<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; otherStyleTime = now.strftime(&#8220;%Y-%m-%d %H:%M:%S&#8221;)<\/span><\/p>\n<p><span style=\"font-size:14px;\">5.\u83b7\u5f97\u4e09\u5929\u524d\u7684\u65f6\u95f4<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; \u65b9\u6cd5:<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; import time<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; import datetime<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; \u5148\u83b7\u5f97\u65f6\u95f4\u6570\u7ec4\u683c\u5f0f\u7684\u65e5\u671f<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; threeDayAgo = (datetime.datetime.now() &#8211; datetime.timedelta(days = 3))<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; \u8f6c\u6362\u4e3a\u65f6\u95f4\u6233:<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timeStamp = int(time.mktime(threeDayAgo.timetuple()))<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; \u8f6c\u6362\u4e3a\u5176\u4ed6\u5b57\u7b26\u4e32\u683c\u5f0f:<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; otherStyleTime = threeDayAgo.strftime(&#8220;%Y-%m-%d %H:%M:%S&#8221;)<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; \u6ce8:timedelta()\u7684\u53c2\u6570\u6709:days,hours,seconds,microseconds<\/span><\/p>\n<p><span style=\"font-size:14px;\">6.\u7ed9\u5b9a\u65f6\u95f4\u6233,\u8ba1\u7b97\u8be5\u65f6\u95f4\u7684\u51e0\u5929\u524d\u65f6\u95f4:<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; timeStamp = 1381419600<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; \u5148\u8f6c\u6362\u4e3adatetime<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; import datetime<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; import time<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; dateArray = datetime.datetime.utcfromtimestamp(timeStamp)<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; threeDayAgo = dateArray &#8211; datetime.timedelta(days = 3)<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; \u53c2\u80035,\u53ef\u4ee5\u8f6c\u6362\u4e3a\u5176\u4ed6\u7684\u4efb\u610f\u683c\u5f0f\u4e86 &nbsp;&nbsp;<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp;&nbsp;<\/span><br \/>\n<span style=\"font-size:14px;\">7. \u7ed9\u5b9a\u65e5\u671f\u5b57\u7b26\u4e32\uff0c\u76f4\u63a5\u8f6c\u6362\u4e3adatetime\u5bf9\u8c61<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; dateStr = &#8216;2013-10-10 23:40:00&#8217;<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; datetimeObj = datetime.datetime.strptime(dateStr, &#8220;%Y-%m-%d %H:%M:%S&#8221;)<\/span><\/p>\n<p><span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; \u6ce8\uff1a\u5c06\u5b57\u7b26\u4e32\u65e5\u671f\u8f6c\u6362\u4e3adatetime\u540e\u53ef\u4ee5\u5f88\u9ad8\u6548\u7684\u8fdb\u884c\u7edf\u8ba1\u64cd\u4f5c\uff0c\u56e0\u4e3a\u8f6c\u6362\u4e3adatetime\u540e\uff0c<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u53ef\u4ee5\u901a\u8fc7datetime.timedelta()\u65b9\u6cd5\u6765\u524d\u540e\u79fb\u52a8\u65f6\u95f4\uff0c\u6548\u7387\u5f88\u9ad8\uff0c\u800c\u4e14\u53ef\u8bfb\u6027\u5f88\u5f3a\u3002<\/span><\/p>\n<p><span style=\"font-size:14px;\">8.\u8ba1\u7b97\u4e24\u4e2adatetime\u4e4b\u95f4\u7684\u5dee\u8ddd<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp;a = datetime.datetime(2014,12,4,1,59,59)<\/span><br \/>\n<span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp;b = datetime.datetime(2014,12,4,3,59,59)<\/span><br \/>\n<span style=\"font-size:14px;\">diffSeconds = (b-a).total_seconds()<\/span><br \/>\n<span style=\"font-size:14px;\"><\/span><br \/>\n<span style=\"font-size:14px;\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p><span style=\"font-size:14px;\">\u8f6c\u8f7d\u8bf7\u9644\u4e0a\u5730\u5740\uff0c\u6e05\u98ce\u4e50\u900d\u9065\uff1ahttp:\/\/blog.csdn.net\/xiaobing_blog\/article\/details\/12591917<\/span><br \/><span style=\"font-size:14px;\">1.\u5c06\u5b57\u7b26\u4e32\u7684\u65f6\u95f4\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233<\/span><br \/><span style=\"font-size:14px;\">&nbsp; &nbsp; \u65b9\u6cd5:<\/span><br \/><span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; a = &#8220;2013-10-10 23:40:00&#8221;<\/span><br \/><span style=\"font-size:14px;\">&nbsp; &nbsp; &nbsp; &nbsp; \u5c06\u5176\u8f6c\u6362\u4e3a\u65f6\u95f4\u6570\u7ec4<\/span><br \/><span style=\"font-size:14px;\">&#038;nb&#8230;<\/span><\/p>\n","protected":false},"author":1,"featured_media":556,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[334],"tags":[],"class_list":["post-232","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[\u8f6c] Python\u65f6\u95f4,\u65e5\u671f,\u65f6\u95f4\u6233\u5904\u7406 - Wayne&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/weizn.net\/?p=232\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[\u8f6c] Python\u65f6\u95f4,\u65e5\u671f,\u65f6\u95f4\u6233\u5904\u7406 - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u8f6c\u8f7d\u8bf7\u9644\u4e0a\u5730\u5740\uff0c\u6e05\u98ce\u4e50\u900d\u9065\uff1ahttp:\/\/blog.csdn.net\/xiaobing_blog\/article\/details\/125919171.\u5c06\u5b57\u7b26\u4e32\u7684\u65f6\u95f4\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233&nbsp; &nbsp; \u65b9\u6cd5:&nbsp; &nbsp; &nbsp; &nbsp; a = &quot;2013-10-10 23:40:00&quot;&nbsp; &nbsp; &nbsp; &nbsp; \u5c06\u5176\u8f6c\u6362\u4e3a\u65f6\u95f4\u6570\u7ec4&amp;nb...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=232\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-01T07:12:58+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/weizn.net\/wp-content\/uploads\/2019\/01\/shutterstock_684957946.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"667\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zinan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/weizn.net\/#website\",\"url\":\"http:\/\/weizn.net\/\",\"name\":\"Wayne&#039;s Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/weizn.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/weizn.net\/?p=232#primaryimage\",\"inLanguage\":\"zh-Hans\",\"url\":\"http:\/\/weizn.net\/wp-content\/uploads\/2019\/01\/shutterstock_684957946.jpg\",\"contentUrl\":\"http:\/\/weizn.net\/wp-content\/uploads\/2019\/01\/shutterstock_684957946.jpg\",\"width\":1000,\"height\":667},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/weizn.net\/?p=232#webpage\",\"url\":\"http:\/\/weizn.net\/?p=232\",\"name\":\"[\\u8f6c] Python\\u65f6\\u95f4,\\u65e5\\u671f,\\u65f6\\u95f4\\u6233\\u5904\\u7406 - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=232#primaryimage\"},\"datePublished\":\"2017-02-01T07:12:58+00:00\",\"dateModified\":\"2017-02-01T07:12:58+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=232#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=232\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=232#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[\\u8f6c] Python\\u65f6\\u95f4,\\u65e5\\u671f,\\u65f6\\u95f4\\u6233\\u5904\\u7406\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=232#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=232#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"[\\u8f6c] Python\\u65f6\\u95f4,\\u65e5\\u671f,\\u65f6\\u95f4\\u6233\\u5904\\u7406\",\"datePublished\":\"2017-02-01T07:12:58+00:00\",\"dateModified\":\"2017-02-01T07:12:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=232#webpage\"},\"wordCount\":430,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"image\":{\"@id\":\"http:\/\/weizn.net\/?p=232#primaryimage\"},\"thumbnailUrl\":\"http:\/\/weizn.net\/wp-content\/uploads\/2019\/01\/shutterstock_684957946.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/weizn.net\/?p=232#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\",\"name\":\"zinan\",\"logo\":{\"@id\":\"http:\/\/weizn.net\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[\u8f6c] Python\u65f6\u95f4,\u65e5\u671f,\u65f6\u95f4\u6233\u5904\u7406 - Wayne&#039;s Blog","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":"http:\/\/weizn.net\/?p=232","og_locale":"zh_CN","og_type":"article","og_title":"[\u8f6c] Python\u65f6\u95f4,\u65e5\u671f,\u65f6\u95f4\u6233\u5904\u7406 - Wayne&#039;s Blog","og_description":"\u8f6c\u8f7d\u8bf7\u9644\u4e0a\u5730\u5740\uff0c\u6e05\u98ce\u4e50\u900d\u9065\uff1ahttp:\/\/blog.csdn.net\/xiaobing_blog\/article\/details\/125919171.\u5c06\u5b57\u7b26\u4e32\u7684\u65f6\u95f4\u8f6c\u6362\u4e3a\u65f6\u95f4\u6233&nbsp; &nbsp; \u65b9\u6cd5:&nbsp; &nbsp; &nbsp; &nbsp; a = \"2013-10-10 23:40:00\"&nbsp; &nbsp; &nbsp; &nbsp; \u5c06\u5176\u8f6c\u6362\u4e3a\u65f6\u95f4\u6570\u7ec4&nb...","og_url":"http:\/\/weizn.net\/?p=232","og_site_name":"Wayne&#039;s Blog","article_published_time":"2017-02-01T07:12:58+00:00","og_image":[{"width":1000,"height":667,"url":"http:\/\/weizn.net\/wp-content\/uploads\/2019\/01\/shutterstock_684957946.jpg","path":"\/app\/wp-content\/uploads\/2019\/01\/shutterstock_684957946.jpg","size":"full","id":556,"alt":"","pixels":667000,"type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zinan","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/weizn.net\/#website","url":"http:\/\/weizn.net\/","name":"Wayne&#039;s Blog","description":"","publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/weizn.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"ImageObject","@id":"http:\/\/weizn.net\/?p=232#primaryimage","inLanguage":"zh-Hans","url":"http:\/\/weizn.net\/wp-content\/uploads\/2019\/01\/shutterstock_684957946.jpg","contentUrl":"http:\/\/weizn.net\/wp-content\/uploads\/2019\/01\/shutterstock_684957946.jpg","width":1000,"height":667},{"@type":"WebPage","@id":"http:\/\/weizn.net\/?p=232#webpage","url":"http:\/\/weizn.net\/?p=232","name":"[\u8f6c] Python\u65f6\u95f4,\u65e5\u671f,\u65f6\u95f4\u6233\u5904\u7406 - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"primaryImageOfPage":{"@id":"http:\/\/weizn.net\/?p=232#primaryimage"},"datePublished":"2017-02-01T07:12:58+00:00","dateModified":"2017-02-01T07:12:58+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=232#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=232"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=232#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"[\u8f6c] Python\u65f6\u95f4,\u65e5\u671f,\u65f6\u95f4\u6233\u5904\u7406"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=232#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=232#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"[\u8f6c] Python\u65f6\u95f4,\u65e5\u671f,\u65f6\u95f4\u6233\u5904\u7406","datePublished":"2017-02-01T07:12:58+00:00","dateModified":"2017-02-01T07:12:58+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=232#webpage"},"wordCount":430,"commentCount":0,"publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"image":{"@id":"http:\/\/weizn.net\/?p=232#primaryimage"},"thumbnailUrl":"http:\/\/weizn.net\/wp-content\/uploads\/2019\/01\/shutterstock_684957946.jpg","articleSection":["Python"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/weizn.net\/?p=232#respond"]}]},{"@type":["Person","Organization"],"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264","name":"zinan","logo":{"@id":"http:\/\/weizn.net\/#personlogo"}}]}},"_links":{"self":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=232"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/232\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/media\/556"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=232"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}