【问题标题】:How to change the font of Run terminal on Pycharm如何在 Pycharm 上更改 Run 终端的字体
【发布时间】:2019-12-14 16:24:13
【问题描述】:

我使用一些波斯文本文件,当我运行 PyCharm 时,它会显示如下结果:

如您所见,阅读起来并不容易。如何更改该字体?

【问题讨论】:

  • 你真正想做的事
  • 你想从图片中提取波斯文字并转换成想要的语言

标签: python pycharm


【解决方案1】:

试试这个:

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)

【讨论】:

    【解决方案2】:

    转到文件 > 设置 > 编辑器 > 颜色方案 > 控制台字体。

    勾选“使用控制台字体而不是默认字体” 选择你喜欢的字体和大小。

    还请关注: Set the font size in pycharm's python console or terminal

    【讨论】:

      猜你喜欢
      • 2016-08-06
      • 2018-04-24
      • 2019-02-03
      • 2023-03-18
      • 2013-12-16
      • 1970-01-01
      • 1970-01-01
      • 2022-11-25
      • 2011-10-28
      相关资源
      最近更新 更多