![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
hoopec
这个作者很懒,什么都没留下…
展开
-
在python中使用nohup命令说明
nohup 是 no hang up 的缩写,就是不挂断的意思。如果你正在运行一个进程,而且你觉得在退出帐户时该进程还不会结束,那么可以使用nohup命令,该命令可以在你退出帐户/关闭终端之后继续运行相应的进程。原创 2022-11-01 10:46:05 · 2871 阅读 · 0 评论 -
Python数字/字符串补零操作
字符串补零可以使用 zfill() 函数来给字符串补零>>> str = "123">>> print(str.zfill(8))00000123还能把整数转化成字符来使用 zfill() 补零>>> num = 123>>> print(str(num).zfill(8))00000123数字补零对于数字可以使用 格式化 的方式来进行补零:>>> number = 123>>&原创 2022-05-19 10:07:53 · 11514 阅读 · 0 评论 -
pip永久换源(Windows)
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple 阿里云 http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 豆瓣(douban) http://pypi.douban.com/simple/ 清华大学 https://pypi.tuna.tsinghua.edu.cn/原创 2021-04-03 22:20:29 · 159 阅读 · 0 评论