Created
July 24, 2017 07:21
-
-
Save Shih-Po/e11986dac9eeb292b73808d4f5d0fabd 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
| from difflib import SequenceMatcher | |
| def similar(a, b): | |
| return SequenceMatcher(None, a, b).ratio() | |
| similar('abc', 'abc') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment