try this :
from __future__ import unicode_literals
import hazm
import json
import requests
import urllib
from translate import translator
text = "persian"
quoted = urllib.quote_plus(text.encode("utf-8"))
print translator('fa','en',quoted)
Go to File > Settings > Editor > Color Scheme > Console Font.
Tick "Use console font instead of the default" Choose font and size as you like.
Also follow: Set the font size in pycharm's python console or terminal
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.