Created
July 29, 2013 11:31
-
-
Save 1c7/6103727 to your computer and use it in GitHub Desktop.
(Python) 获得文件的后缀
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file_path = r'D:\Everything\Everything.exe' | |
l = str(file_path).split('.') | |
extension = l[len(l)-1] | |
print (extension) | |
# exe | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment