Numbers 0-19
0 zéro
1 un
2 deux
3 trois
4 quatre
5 cinq
6 six
7 sept
8 huit
9 neuf
10 dix
使用python REG EX代码进行“搜索”示例:
import re
txt = "The rain in Spain"
x = re.search("^The.*Spain$", txt)
使用python字典进行“搜索”示例:
thisdict = {
"brand": "Ford",
"model": "Mustang",
"year": 1964
}
if "model" in thisdict:
print("Yes, 'model' is one of the keys in the thisdict dictionary")
您可以使用
textblob
。但这并不是那么安全,因为如果你提出“太多的请求”,它们可能会被阻止。你知道吗信息:https://textblob.readthedocs.io/en/dev/ 你可以这样做:
现在你可以做一个数字列表,把字母转换成整数
创建一个法语单词和数字等价物的数据库。你知道吗
把它载入内存。你知道吗
使用“find in set”命令查找与输入的单词相等的数字。你知道吗
要从http://www.french-linguistics.co.uk/tutorials/numbers/创建的数据库
使用python REG EX代码进行“搜索”示例:
使用python字典进行“搜索”示例:
只是在google上搜索了一下,发现了一个名为text2num的类似项目:
他们的演示:
回馈
95
,这似乎是正确的相关问题 更多 >
编程相关推荐