上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 95 下一页
摘要: log日志,默认显示是黑白的,看这个不方便。加点颜色显示看着更方便。 一、颜色示例 1.默认显示: git log -1 --pretty="format:%h %s" 2.加彩色显示: git log -1 --pretty="format:%h %Cgreen %s %Creset" %h %s 阅读全文
posted @ 2023-07-08 14:40 悟透 阅读(693) 评论(0) 推荐(0)
摘要: 使用 pip 时 出现 pip is configured with locations that require TLS/SSL 是因为在编译时候没有加上开启 SSL 的参数, 现在大部分的网络链接为了安全,都开启了 SSL 加密,常见的有 HTTPS 。 加上 --with-openssl=/u 阅读全文
posted @ 2023-07-07 14:56 悟透 阅读(415) 评论(0) 推荐(0)
摘要: 1.动态库 lib-dynload 路径 ```bash python3 -c 'import random as m;print(m.__file__)' ``` ![image](https://img2023.cnblogs.com/blog/597729/202307/597729-2023 阅读全文
posted @ 2023-07-07 13:14 悟透 阅读(1337) 评论(0) 推荐(0)
摘要: 一、环境 1.更新 pip3 ,建议更新 ```bash python3.8 -m pip install --upgrade pip ``` 2.更新 setuptools ```bash sudo pip3 install --upgrade setuptools ``` 不更新,报错:Prep 阅读全文
posted @ 2023-07-07 12:44 悟透 阅读(5274) 评论(0) 推荐(0)
摘要: VMware ubuntu18.04中不能复制、粘贴、拖动 1.先确认安装了 vmware tools 2.重新安装 open-vm sudo apt-get install open-vm-tools-desktop -y 安装过程提示覆盖,选择Y 3.如安装过了,在终端手动执行命令启动: 任意目 阅读全文
posted @ 2023-07-07 10:06 悟透 阅读(1258) 评论(0) 推荐(2)
摘要: pydoc 是一个能生成网页版的模块,内置模块 命令: ```bash python -m pydoc -p 1234 ``` > -m 加载模块 > -p 网页访问端口 命令行: ![image](https://img2023.cnblogs.com/blog/597729/202307/597 阅读全文
posted @ 2023-07-06 18:57 悟透 阅读(186) 评论(0) 推荐(0)
摘要: pip默认用的是 https://pypi.org/simple/pip/ 国外源,慢。 一、临时切换源 py2: pip install 模块名 -i http://pypi.doubanio.com/simple --trusted-host pypi.doubanio.com py3: pip 阅读全文
posted @ 2023-07-06 09:59 悟透 阅读(544) 评论(0) 推荐(0)
摘要: **Defaulting to user installation because normal site-packages is not writeable** ![image](https://img2023.cnblogs.com/blog/597729/202307/597729-20230 阅读全文
posted @ 2023-07-05 18:36 悟透 阅读(1220) 评论(0) 推荐(0)
摘要: 1.git在日志中查找这个文件. git log --pretty=oneline --branches -- 文件名 或 git log --pretty=oneline --branches -- 文件夹名 注意:--后和文件(夹)名前,必须要有空格 筛选参数 [注] 1)按数量 -n:显示前n 阅读全文
posted @ 2023-07-05 11:01 悟透 阅读(3473) 评论(0) 推荐(0)
摘要: 拉取远程仓库所有的分支到本地 ```bash for i in $(git branch -r); do $(git checkout $i && git pull --all); done ``` 参考: https://www.zhihu.com/question/54419234/answer 阅读全文
posted @ 2023-07-05 10:51 悟透 阅读(147) 评论(0) 推荐(0)
上一页 1 ··· 57 58 59 60 61 62 63 64 65 ··· 95 下一页