Skip to content

Instantly share code, notes, and snippets.

@Keycatowo
Created June 30, 2022 12:38
Show Gist options
  • Save Keycatowo/d55a0171a701705164d50460ef7153c2 to your computer and use it in GitHub Desktop.
Save Keycatowo/d55a0171a701705164d50460ef7153c2 to your computer and use it in GitHub Desktop.
檢視目前python解釋器的路徑和模組
import sys
print(sys.executable) # 顯示目前python解釋器的路徑
print(help("modules")) # 顯示所有目前的模組
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment