python技巧合集(一)
- sys.path.append引入路径之后pycharm无法识别引入的该路径下的脚本/方法https://zhuanlan.zhihu.com/p/671363807
- 正则表达式的贪婪匹配和非贪婪匹配:正则表达式之贪婪匹配与非贪婪匹配-CSDN博客
- 正则表达式match方法和search方法的区别是什么:match从待匹配字符串的起始字符开始搜索,而search不一定。
- Python ctypes 使用详解-CSDN博客 解答了为什么msvcrt/libc使用printf函数,只能打印一个字符。
- pip安装whl包,报错externally-managed-environment, pip(3) install,完美解决 externally-managed-environment_pip3 install error: externally-managed-environment-CSDN博客
- pipx安装wheel包,报错No apps associated with package psutil or its dependencies. If you are attempting to install a library, pipx should not be used. Consider using pip or a similar tool instead, Ubuntu20.04.1 LTS在执行pip install espeakng时,报错“externally-managed-environment” | 鱼香ROS
- python3里启动一个http下载器:python -m http.server
- json格式化:echo ‘{“test”:”foo”, “test2″:”bar”}’ | python -m json.tool
- 使用pip命令补齐:pip completion –bash >> ~/.profile
souce ~/.profile