$ python >>> import os >>> os.getpid() 12252
参考:
http://stackoverflow.com/questions/8281345/how-to-get-current-linux-process-id-pid-from-cmdline-in-shell-and-language-i
$ python >>> import os >>> os.getpid() 12252
参考:
http://stackoverflow.com/questions/8281345/how-to-get-current-linux-process-id-pid-from-cmdline-in-shell-and-language-i
Leave a Reply