- import py_compile
- py_compile.compile('path') //path是包括.py文件名的路径
- pip pyinstaller
- pyinstaller -F .py --noconsole //取消调试框
- pip freeze>requirements.txt
a='<title>helloworld</title>'
b=re.findall('<title>(.*?)</title>',a,flags=re.S)[0]
print(b)#helloworld
- cmd----jupyter notebook --generate-config 生成jupyter_notebook_config.py文件
- 更改文件配置
## The directory to use for notebooks and kernels.
c.NotebookApp.notebook_dir = 'D:\\jupyter'