Created
December 8, 2011 03:19
-
-
Save heavenshell/1445961 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| Linux(Scientiffic linux):486581715bb2d5d80a7ddef8db81804e | |
| Mac(Snow Leopard):7d1e354a752529921cd202fea2c57c7a |
This file contains hidden or 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
| #!/usr/bin/env python | |
| import os | |
| import hashlib | |
| md5hash = hashlib.md5(open(os.path.abspath(__file__), 'rb').read()).hexdigest() | |
| print md5hash |
ありがとうございます!
奥が深いですね。はやく世間が Python3 になって欲しいです。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Python3では以下のようになるね!