相关疑难解决方法(0)

Python:如何确定语言?

我想得到这个:

Input text: "???????? ?????"
Output text: "Russian" 

Input text: "??"
Output text: "Chinese" 

Input text: "????"
Output text: "Japanese" 

Input text: "????????????"
Output text: "Arabic" 
Run Code Online (Sandbox Code Playgroud)

我怎么能在python中做到这一点?谢谢.

python string parsing

61
推荐指数
6
解决办法
3万
查看次数

标签 统计

parsing ×1

python ×1

string ×1