Skip to content

Instantly share code, notes, and snippets.

@nariaki3551
Created November 30, 2016 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nariaki3551/f13a200ec61207d8e8e546980c9698f4 to your computer and use it in GitHub Desktop.
Save nariaki3551/f13a200ec61207d8e8e546980c9698f4 to your computer and use it in GitHub Desktop.
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