我的朋友列表后,我正在学习的单词和他们的意思,我需要帮助试图让我们想要了解的话。我有一个单词列表,我们可以在命令行中键入这些单词,以告诉计算机我们想要的单词的含义或历史。我的问题是找出我们在打好字的字,这里是我到目前为止的代码:查找字符串中的单词词
Meaning = {"Meaning", "define", "history"}
text1 = raw_input("Text: ")
tokens = commands.lower().split()
if Meaning.intersection(tokens):
#Here is the problem, because i don't know what word we might type
#so i need it to check the word after the Meaning. How can i do this?
我使用的程序输入到一个网站,并获得了字的信息,所以我不能加注和定义,因为要知道每一个字都太难了。我怎么才能得到这个词的意思?,谢谢。
“我的朋友和我正在研究的单词和它们的含义” - 是的东西你实际上在做,或用于介绍你的家庭作业,并给予你将实现东西的动机取景器?我们需要知道是否将您指向english.stackexchange.com。 – user2357112