我试图删除所有不属于法语的短语。我试过使用langdetect库(不幸的是,没有熊猫)
CSV文件
message
Je suis fatiguée
The book is on the table
Il fait chaud aujourd'hui!
They are sicks
La vie est belle
脚本:
^{pr2}$我的输出:
None
Je suis fatiguée
None
Il fait chaud aujourd hui!
None
La vie est belle
我想要:
Je suis fatiguée
Il fait chaud aujourd hui!
La vie est belle
我怎样才能删除“无”?在
你能在打印邮件前做一下比较吗?在
在循环的每个迭代步骤中都要重新定义函数。在
相反,只需定义一次(全局)并且只在循环内调用它:
只需在打印前添加支票:
相关问题 更多 >
编程相关推荐