py tools
Python Tools
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 修改历史6 次提交
- refactor: reorganize documentation structure and update Navbar componentxiaocheng··
2fb8f42 - chore(project): clean up obsolete configuration and build artifactsxiaocheng··
3574bd3 - new struct for lblogsxiaocheng··
8c9b28e - move blogs to docsxiaocheng··
c8535a0 - updatexiaocheng··
fd22f62 - update python fileschenweigao··
407ee26