Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save zhoudaxia233/15389af910113e6eb82d9664306b32ce to your computer and use it in GitHub Desktop.
Save zhoudaxia233/15389af910113e6eb82d9664306b32ce to your computer and use it in GitHub Desktop.
Python:获取当前文件所在的文件夹路径
@zhoudaxia233
Copy link
Author

if we use pathlib, then Path(__file__)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment