[Tutor] put?
Robert Kirkpatrick
robertk at bcgsc.ca
Tue May 6 18:46:09 CEST 2008
Hey Alan! Is there a dict program for the MacOS flavour of *nix? That's a
slick little bit of code but it doesn't work on my Mac:
robertk01$ dict
-bash: dict: command not found
but it works fine when I ssh into a Linux box...
>
> OTOH, if you are happy with those ideas:
>
>>> word = raw_input("enter your word >>")
>>> put, get=os.popen4("dict -d wn " + (word))
>>> for lines in get.readlines():
>>> print lines
More information about the Tutor
mailing list