摘要:
基本使用 # 安装 pip install numpy # 更新 pip install -U numpy # 卸载 pip uninstall numpy 指定源安装 安装时指定: # 清华源 pip install numpy -i https://pypi.tuna.tsinghua.edu. 阅读全文
摘要:
方法 使用如下命令可打印当前 python 所使用的三方包路径: python -m site 或: python -c 'import site; print(site.getsitepackages())' 参考 site Site-specific configuration hook — P 阅读全文
摘要:
时间复杂度与空间复杂度 常用O(1)或O(n)表示,其中1表示一个单位(最简单的单位,可以是多个或1个,但在时间上总体是较低且连续的),时间通常指的是程序运行时间,空间则是指程序在运行时所占用的内存空间。各个阶段的复杂度可用下面的顺序比较: O(1) < O(logn) < O(n) < O(nlo 阅读全文