Skip to content

Instantly share code, notes, and snippets.

@khahux
Created August 28, 2019 09:01
Show Gist options
  • Save khahux/087ee8ae3509184e802bb3f892b54c47 to your computer and use it in GitHub Desktop.
Save khahux/087ee8ae3509184e802bb3f892b54c47 to your computer and use it in GitHub Desktop.
Python3编译py文件为pyc
python3 -O -m compileall -b .
find . -name "*.py" | xargs rm -rf
find . -name "__pycache__" | xargs rm -rf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment