安装:
git clone https://github.com/dvarrazzo/py-setproctitle.git
cd py-setproctitle
python setup.py build
python setup.py install
pip install setproctitle
使用:
import setproctitle
setproctitle.setproctitle(“进程别名”)
参考连接:
https://www.jianshu.com/p/6881d8582f3a