{"id":24,"date":"2024-12-11T23:57:24","date_gmt":"2024-12-11T15:57:24","guid":{"rendered":"http:\/\/www.luips.com\/?p=24"},"modified":"2024-12-11T23:57:24","modified_gmt":"2024-12-11T15:57:24","slug":"python%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e5%8c%96%e6%97%b6%e9%97%b4%e6%a0%bc%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/www.luips.com\/index.php\/jinyanjiaocheng\/python\/python%e6%97%b6%e9%97%b4%e6%88%b3%e8%bd%ac%e5%8c%96%e6%97%b6%e9%97%b4%e6%a0%bc%e5%bc%8f\/","title":{"rendered":"Python\u65f6\u95f4\u6233\u8f6c\u5316\u65f6\u95f4\u683c\u5f0f"},"content":{"rendered":"<div>\n<p># \u65f6\u95f4\u6233\u8f6c\u5316\u65e5\u671f\u65f6\u95f4<br \/>\ndef stampToDatetime(timestamp):<br \/>\nimport time<br \/>\ndatetime = time.localtime(timestamp)<br \/>\ndatetime = time.strftime(&#8216;%Y-%m-%d %H:%M:%S&#8217;, datetime)<br \/>\nreturn datetime<\/p>\n<p>print(stampToDatetime(1618358599))<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p># \u65f6\u95f4\u6233\u8f6c\u5316\u65e5\u671f\u65f6\u95f4 def stampToDatetim&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-python"],"_links":{"self":[{"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/comments?post=24"}],"version-history":[{"count":0,"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/posts\/24\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/media?parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/categories?post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.luips.com\/index.php\/wp-json\/wp\/v2\/tags?post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}