{"id":7863,"date":"2016-07-24T14:14:09","date_gmt":"2016-07-24T06:14:09","guid":{"rendered":"http:\/\/jpuyy.com\/?p=7863"},"modified":"2016-07-24T14:14:32","modified_gmt":"2016-07-24T06:14:32","slug":"python-print-pid","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=7863","title":{"rendered":"python\u6253\u5370pid"},"content":{"rendered":"<pre>$ python\r\n>>> import os\r\n>>> os.getpid()\r\n12252\r\n<\/pre>\n<p>\u53c2\u8003:<br \/>\nhttp:\/\/stackoverflow.com\/questions\/8281345\/how-to-get-current-linux-process-id-pid-from-cmdline-in-shell-and-language-i<\/p>\n","protected":false},"excerpt":{"rendered":"<p>$ python >>> import os >>> os.getpid() 12252 \u53c2\u8003: http:\/\/stackoverflow.com\/questions\/8281345\/how-to-get-current-linux-process-id-pid-from-cmdline-in-shell-and-language-i<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-7863","post","type-post","status-publish","format-standard","hentry","category-life"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/7863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7863"}],"version-history":[{"count":1,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/7863\/revisions"}],"predecessor-version":[{"id":7864,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/7863\/revisions\/7864"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}