Created
November 30, 2016 07:02
-
-
Save nariaki3551/f13a200ec61207d8e8e546980c9698f4 to your computer and use it in GitHub Desktop.
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
from sys import argv | |
from DictionaryServices import DCSCopyTextDefinition | |
def main(word): | |
result = DCSCopyTextDefinition(None, word, (0, len(word))) | |
result = result.split('.') | |
for row in result: | |
print(row) | |
if __name__ == '__main__': | |
main(argv[1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment