Python Tools
IPython、timeit 等 Python 开发辅助工具
IPython
pip install jupyter
jupyter notebook
%timeit
In IPython, we could use %timeit to calculate the time consume of a command:
In [1]: %timeit [1, 2, 3, 4, 5]
In [2]: %timeit (1, 2, 3, 4, 5)
Personalized
import sys
sys.ps1
'>>>'
sys.ps1 = 'cwg-python>>'
这样就可以改变解释器前面的那个外观了,注意修改后退出不会保存修改的结果。
File Server
python -m http.server
#default port: 8000
python -m http.server 80
#in port 80 修改历史8 次提交
- fix(wiki): clean all lint errors to enable strict CI (PR-3)xiaocheng··
9acd1f2 - refactor: reorganize documentation structure and update Navbar componentxiaocheng··
e7d22e5 - chore(project): clean up obsolete configuration and build artifactsxiaocheng··
d659171 - new struct for lblogsxiaocheng··
6ea1ca2 - move blogs to docsxiaocheng··
a8edecd - updatexiaocheng··
fafb44b - update python fileschenweigao··
ac3581b