我需要在python中使用Reformerin和bidi来转换一些阿拉伯语文本
我的问题是如何使用阿拉伯语重塑器转换txt文件中的文本,并将转换后的文本保存到其他txt文件中
这是我转换一行的代码
import arabic_reshaper
from bidi.algorithm import get_display
text = 'سلام محمد خوبی'
test = arabic_reshaper.reshape(text)
print(get_display(test))
我知道这是一个简单的问题,但直到今天我才使用Python tnx
可能使用列表
相关问题 更多 >
编程相关推荐