Skip to content

Instantly share code, notes, and snippets.

@Jongbhin
Created March 2, 2020 00:08
Show Gist options
  • Save Jongbhin/2c473e89bfc62dd07b5e86e0ba26b6a2 to your computer and use it in GitHub Desktop.
Save Jongbhin/2c473e89bfc62dd07b5e86e0ba26b6a2 to your computer and use it in GitHub Desktop.
python reference

String

get extension

filename, file_extension = os.path.splitext('/path/to/somefile.ext')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment