# ! /usr/bin/env python
# -*- coding: utf-8 -*-
# __author__ = "Miller"
# Datetime: 2019/10/21 16:02

# import time
# import os
# from multiprocessing import Process

# def task():
#     print("进程 id: %s" % os.getpid())
#     print("子进程的父进程是  %s" % os.getppid())
#     time.sleep(100)
#     Process()


# if __name__ == '__main__':
#     p = Process(target=task)
#     p.start()
#     p.terminate()
#     print("主进程的id ：%s" % os.getpid())
#     print("主进程的父进程 %s " % os.getppid())
#     time.sleep(100)
