Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fighteryu/python

Repository files navigation

python & c 共存

ZigBee中已包含.h文件

生成pyc文件

  • import py_compile
  • py_compile.compile('path') //path是包括.py文件名的路径

生成exe文件

  • 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

jupyter更改默认路径

  • cmd----jupyter notebook --generate-config 生成jupyter_notebook_config.py文件
  • 更改文件配置
## The directory to use for notebooks and kernels.
c.NotebookApp.notebook_dir = 'D:\\jupyter'

About

Large melting pot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /