{"id":1161969,"date":"2025-01-13T19:23:00","date_gmt":"2025-01-13T11:23:00","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1161969.html"},"modified":"2025-01-13T19:23:02","modified_gmt":"2025-01-13T11:23:02","slug":"python%e5%a6%82%e4%bd%95%e6%9b%b4%e6%94%b9%e4%bb%a3%e7%a0%81%e5%ad%97%e4%bd%93","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1161969.html","title":{"rendered":"python\u5982\u4f55\u66f4\u6539\u4ee3\u7801\u5b57\u4f53"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25203124\/24ccfe5d-52ff-477f-bb50-864ec31359c3.webp\" alt=\"python\u5982\u4f55\u66f4\u6539\u4ee3\u7801\u5b57\u4f53\" \/><\/p>\n<p><p> \u8981\u5728Python\u4e2d\u66f4\u6539\u4ee3\u7801\u5b57\u4f53\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u6765\u5b9e\u73b0\uff0c\u4e3b\u8981\u53d6\u51b3\u4e8e\u4f60\u6240\u4f7f\u7528\u7684\u4ee3\u7801\u7f16\u8f91\u5668\u6216\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u3002<strong>\u5177\u4f53\u65b9\u6cd5\u5305\u62ec\u66f4\u6539\u7f16\u8f91\u5668\u8bbe\u7f6e\u3001\u4f7f\u7528\u4e3b\u9898\u63d2\u4ef6\u3001\u4fee\u6539\u914d\u7f6e\u6587\u4ef6<\/strong>\u3002\u4ee5\u4e0b\u662f\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\u7684\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/p>\n<\/p>\n<p><p><strong>\u5728VS Code\u4e2d\u66f4\u6539Python\u4ee3\u7801\u5b57\u4f53<\/strong>\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u6253\u5f00VS Code\u3002<\/li>\n<li>\u8fdb\u5165\u8bbe\u7f6e\uff1a\u53ef\u4ee5\u901a\u8fc7\u70b9\u51fb\u5de6\u4e0b\u89d2\u9f7f\u8f6e\u56fe\u6807\u5e76\u9009\u62e9\u201cSettings\u201d\u6216\u8005\u4f7f\u7528\u5feb\u6377\u952e<code>Ctrl + ,<\/code>\u3002<\/li>\n<li>\u641c\u7d22\u201cFont Family\u201d\uff1a\u5728\u8bbe\u7f6e\u754c\u9762\u7684\u641c\u7d22\u680f\u4e2d\u8f93\u5165\u201cFont Family\u201d\u3002<\/li>\n<li>\u4fee\u6539\u5b57\u4f53\uff1a\u627e\u5230\u201cEditor: Font Family\u201d\u9009\u9879\uff0c\u7136\u540e\u5728\u8f93\u5165\u6846\u4e2d\u8f93\u5165\u4f60\u60f3\u8981\u4f7f\u7528\u7684\u5b57\u4f53\u540d\u79f0\uff0c\u4f8b\u5982\u201cFira Code\u201d\u3002<\/li>\n<li>\u4fdd\u5b58\u8bbe\u7f6e\uff1a\u66f4\u6539\u540e\uff0c\u8bbe\u7f6e\u4f1a\u81ea\u52a8\u4fdd\u5b58\uff0c\u4ee3\u7801\u7f16\u8f91\u5668\u4e2d\u7684\u5b57\u4f53\u4f1a\u968f\u4e4b\u66f4\u6539\u3002<\/li>\n<\/ol>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5404\u79cd\u7f16\u8f91\u5668\u548cIDE\u4e2d\u66f4\u6539Python\u4ee3\u7801\u5b57\u4f53\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001VS Code<\/h3>\n<\/p>\n<p><h4>1\u3001\u6253\u5f00\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>VS Code\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u5b83\u7684\u8bbe\u7f6e\u754c\u9762\u975e\u5e38\u76f4\u89c2\u3002\u8981\u66f4\u6539\u5b57\u4f53\uff0c\u9996\u5148\u9700\u8981\u6253\u5f00\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u901a\u8fc7\u70b9\u51fb\u5de6\u4e0b\u89d2\u9f7f\u8f6e\u56fe\u6807\u5e76\u9009\u62e9\u201cSettings\u201d\u6216\u8005\u4f7f\u7528\u5feb\u6377\u952e<code>Ctrl + ,<\/code>\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u641c\u7d22\u5b57\u4f53\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>\u5728\u8bbe\u7f6e\u754c\u9762\u7684\u641c\u7d22\u680f\u4e2d\u8f93\u5165\u201cFont Family\u201d\uff0c\u8fd9\u5c06\u8fc7\u6ee4\u51fa\u4e0e\u5b57\u4f53\u8bbe\u7f6e\u76f8\u5173\u7684\u6240\u6709\u9009\u9879\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u4fee\u6539\u5b57\u4f53<\/h4>\n<\/p>\n<p><p>\u627e\u5230\u201cEditor: Font Family\u201d\u9009\u9879\uff0c\u7136\u540e\u5728\u8f93\u5165\u6846\u4e2d\u8f93\u5165\u4f60\u60f3\u8981\u4f7f\u7528\u7684\u5b57\u4f53\u540d\u79f0\uff0c\u4f8b\u5982\u201cFira Code\u201d\u3002\u5982\u679c\u4f60\u60f3\u4f7f\u7528\u591a\u4e2a\u5b57\u4f53\uff0c\u53ef\u4ee5\u7528\u9017\u53f7\u5206\u9694\uff0c\u4f8b\u5982<code>&quot;Fira Code, Consolas, &#39;Courier New&#39;&quot;<\/code>\u3002\u786e\u4fdd\u4f60\u8f93\u5165\u7684\u5b57\u4f53\u5df2\u7ecf\u5b89\u88c5\u5728\u4f60\u7684\u7cfb\u7edf\u4e2d\u3002<\/p>\n<\/p>\n<p><h4>4\u3001\u8c03\u6574\u5b57\u4f53\u5927\u5c0f\u548c\u5b57\u8ddd<\/h4>\n<\/p>\n<p><p>\u9664\u4e86\u66f4\u6539\u5b57\u4f53\uff0c\u4f60\u8fd8\u53ef\u4ee5\u8c03\u6574\u5b57\u4f53\u5927\u5c0f\u548c\u5b57\u8ddd\u3002\u5728\u641c\u7d22\u680f\u4e2d\u8f93\u5165\u201cFont Size\u201d\u6216\u201cLetter Spacing\u201d\uff0c\u7136\u540e\u5728\u5bf9\u5e94\u7684\u8bbe\u7f6e\u4e2d\u8f93\u5165\u4f60\u60f3\u8981\u7684\u6570\u503c\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001PyCharm<\/h3>\n<\/p>\n<p><h4>1\u3001\u6253\u5f00\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>PyCharm\u662f\u53e6\u4e00\u4e2a\u975e\u5e38\u53d7\u6b22\u8fce\u7684Python IDE\u3002\u8981\u66f4\u6539\u5b57\u4f53\uff0c\u9996\u5148\u9700\u8981\u6253\u5f00\u8bbe\u7f6e\u3002\u70b9\u51fb\u9876\u90e8\u83dc\u5355\u680f\u7684<code>File<\/code>\uff0c\u7136\u540e\u9009\u62e9<code>Settings<\/code>\uff08\u6216\u8005\u4f7f\u7528\u5feb\u6377\u952e<code>Ctrl + Alt + S<\/code>\uff09\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u5bfc\u822a\u5230\u5b57\u4f53\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>\u5728\u8bbe\u7f6e\u754c\u9762\u4e2d\uff0c\u5bfc\u822a\u5230<code>Editor -&gt; Font<\/code>\u3002\u8fd9\u91cc\u4f60\u53ef\u4ee5\u770b\u5230\u5f53\u524d\u4f7f\u7528\u7684\u5b57\u4f53\u8bbe\u7f6e\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u66f4\u6539\u5b57\u4f53\u548c\u5927\u5c0f<\/h4>\n<\/p>\n<p><p>\u5728\u201cFont\u201d\u9009\u9879\u5361\u4e2d\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u4f60\u60f3\u8981\u4f7f\u7528\u7684\u5b57\u4f53\u548c\u8c03\u6574\u5b57\u4f53\u5927\u5c0f\u3002\u4f60\u8fd8\u53ef\u4ee5\u9009\u62e9\u662f\u5426\u542f\u7528\u8fde\u5b57\uff08Ligatures\uff09\uff0c\u8fd9\u5bf9\u4e8e\u67d0\u4e9b\u7f16\u7a0b\u5b57\u4f53\u975e\u5e38\u6709\u7528\uff0c\u4f8b\u5982Fira Code\u548cJetBr<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ns Mono\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001Sublime Text<\/h3>\n<\/p>\n<p><h4>1\u3001\u6253\u5f00\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>Sublime Text\u4e5f\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u4ee3\u7801\u7f16\u8f91\u5668\u3002\u8981\u66f4\u6539\u5b57\u4f53\uff0c\u9996\u5148\u9700\u8981\u6253\u5f00\u8bbe\u7f6e\u3002\u70b9\u51fb\u9876\u90e8\u83dc\u5355\u680f\u7684<code>Preferences<\/code>\uff0c\u7136\u540e\u9009\u62e9<code>Settings<\/code>\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u4fee\u6539\u914d\u7f6e\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>Sublime Text\u7684\u8bbe\u7f6e\u662f\u4ee5JSON\u683c\u5f0f\u5b58\u50a8\u7684\u3002\u5728\u53f3\u4fa7\u7684\u7528\u6237\u8bbe\u7f6e\u9762\u677f\u4e2d\uff0c\u6dfb\u52a0\u6216\u4fee\u6539\u4ee5\u4e0b\u952e\u503c\u5bf9\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-json\">&quot;font_face&quot;: &quot;Fira Code&quot;,<\/p>\n<p>&quot;font_size&quot;: 12<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u4fdd\u5b58\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>\u66f4\u6539\u5b8c\u6210\u540e\uff0c\u4fdd\u5b58\u914d\u7f6e\u6587\u4ef6\uff0c\u4f60\u7684\u7f16\u8f91\u5668\u5b57\u4f53\u5c06\u4f1a\u7acb\u5373\u66f4\u65b0\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001Jupyter Notebook<\/h3>\n<\/p>\n<p><h4>1\u3001\u6253\u5f00\u81ea\u5b9a\u4e49CSS\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>Jupyter Notebook\u7684\u5b57\u4f53\u8bbe\u7f6e\u9700\u8981\u901a\u8fc7\u81ea\u5b9a\u4e49CSS\u6765\u5b9e\u73b0\u3002\u9996\u5148\uff0c\u5728\u4f60\u7684Jupyter\u914d\u7f6e\u76ee\u5f55\u4e0b\uff08\u901a\u5e38\u662f<code>~\/.jupyter\/<\/code>\uff09\uff0c\u521b\u5efa\u6216\u7f16\u8f91\u4e00\u4e2a\u540d\u4e3a<code>custom.css<\/code>\u7684\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u6dfb\u52a0CSS\u89c4\u5219<\/h4>\n<\/p>\n<p><p>\u5728<code>custom.css<\/code>\u6587\u4ef6\u4e2d\uff0c\u6dfb\u52a0\u4ee5\u4e0bCSS\u89c4\u5219\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-css\">.CodeMirror pre {<\/p>\n<p>    font-family: &quot;Fira Code&quot;, monospace;<\/p>\n<p>    font-size: 12pt;<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u91cd\u65b0\u542f\u52a8Jupyter Notebook<\/h4>\n<\/p>\n<p><p>\u4fdd\u5b58\u6587\u4ef6\u5e76\u91cd\u65b0\u542f\u52a8Jupyter Notebook\uff0c\u5b57\u4f53\u8bbe\u7f6e\u5c06\u4f1a\u751f\u6548\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001Atom<\/h3>\n<\/p>\n<p><h4>1\u3001\u6253\u5f00\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>Atom\u662f\u53e6\u4e00\u4e2a\u53d7\u6b22\u8fce\u7684\u4ee3\u7801\u7f16\u8f91\u5668\u3002\u8981\u66f4\u6539\u5b57\u4f53\uff0c\u9996\u5148\u9700\u8981\u6253\u5f00\u8bbe\u7f6e\u3002\u70b9\u51fb\u9876\u90e8\u83dc\u5355\u680f\u7684<code>Edit<\/code>\uff0c\u7136\u540e\u9009\u62e9<code>Preferences<\/code>\uff08\u6216\u8005\u4f7f\u7528\u5feb\u6377\u952e<code>Ctrl + ,<\/code>\uff09\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u5bfc\u822a\u5230\u5b57\u4f53\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>\u5728\u8bbe\u7f6e\u754c\u9762\u4e2d\uff0c\u5bfc\u822a\u5230<code>Editor<\/code>\u9009\u9879\u5361\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u66f4\u6539\u5b57\u4f53\u548c\u5927\u5c0f<\/h4>\n<\/p>\n<p><p>\u5728\u201cFont Family\u201d\u8f93\u5165\u6846\u4e2d\u8f93\u5165\u4f60\u60f3\u8981\u4f7f\u7528\u7684\u5b57\u4f53\u540d\u79f0\uff0c\u4f8b\u5982\u201cFira Code\u201d\u3002\u4f60\u4e5f\u53ef\u4ee5\u5728\u201cFont Size\u201d\u8f93\u5165\u6846\u4e2d\u8c03\u6574\u5b57\u4f53\u5927\u5c0f\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001Vim<\/h3>\n<\/p>\n<p><h4>1\u3001\u6253\u5f00\u914d\u7f6e\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>Vim\u7684\u914d\u7f6e\u662f\u901a\u8fc7\u7f16\u8f91<code>.vimrc<\/code>\u6587\u4ef6\u6765\u5b8c\u6210\u7684\u3002\u6253\u5f00\u4f60\u7684<code>.vimrc<\/code>\u6587\u4ef6\uff0c\u901a\u5e38\u4f4d\u4e8e\u4f60\u7684\u4e3b\u76ee\u5f55\u4e0b\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u6dfb\u52a0\u5b57\u4f53\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>\u5728<code>.vimrc<\/code>\u6587\u4ef6\u4e2d\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-vim\">set guifont=Fira\\ Code:h12<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u4fdd\u5b58\u5e76\u91cd\u65b0\u542f\u52a8Vim<\/h4>\n<\/p>\n<p><p>\u4fdd\u5b58\u6587\u4ef6\u5e76\u91cd\u65b0\u542f\u52a8Vim\uff0c\u5b57\u4f53\u8bbe\u7f6e\u5c06\u4f1a\u751f\u6548\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001Emacs<\/h3>\n<\/p>\n<p><h4>1\u3001\u6253\u5f00\u914d\u7f6e\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>Emacs\u7684\u914d\u7f6e\u662f\u901a\u8fc7\u7f16\u8f91<code>.emacs<\/code>\u6216<code>init.el<\/code>\u6587\u4ef6\u6765\u5b8c\u6210\u7684\u3002\u6253\u5f00\u4f60\u7684<code>.emacs<\/code>\u6216<code>init.el<\/code>\u6587\u4ef6\uff0c\u901a\u5e38\u4f4d\u4e8e\u4f60\u7684\u4e3b\u76ee\u5f55\u4e0b\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u6dfb\u52a0\u5b57\u4f53\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-elisp\">(set-face-attribute &#39;default nil :font &quot;Fira Code-12&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u4fdd\u5b58\u5e76\u91cd\u65b0\u542f\u52a8Emacs<\/h4>\n<\/p>\n<p><p>\u4fdd\u5b58\u6587\u4ef6\u5e76\u91cd\u65b0\u542f\u52a8Emacs\uff0c\u5b57\u4f53\u8bbe\u7f6e\u5c06\u4f1a\u751f\u6548\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001Spyder<\/h3>\n<\/p>\n<p><h4>1\u3001\u6253\u5f00\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>Spyder\u662f\u4e00\u4e2a\u4e13\u95e8\u4e3a\u79d1\u5b66\u8ba1\u7b97\u8bbe\u8ba1\u7684Python IDE\u3002\u8981\u66f4\u6539\u5b57\u4f53\uff0c\u9996\u5148\u9700\u8981\u6253\u5f00\u8bbe\u7f6e\u3002\u70b9\u51fb\u9876\u90e8\u83dc\u5355\u680f\u7684<code>Tools<\/code>\uff0c\u7136\u540e\u9009\u62e9<code>Preferences<\/code>\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u5bfc\u822a\u5230\u5b57\u4f53\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>\u5728\u8bbe\u7f6e\u754c\u9762\u4e2d\uff0c\u5bfc\u822a\u5230<code>Syntax coloring<\/code>\u9009\u9879\u5361\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u66f4\u6539\u5b57\u4f53\u548c\u5927\u5c0f<\/h4>\n<\/p>\n<p><p>\u5728\u201cFont\u201d\u9009\u9879\u5361\u4e2d\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u4f60\u60f3\u8981\u4f7f\u7528\u7684\u5b57\u4f53\u548c\u8c03\u6574\u5b57\u4f53\u5927\u5c0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e5d\u3001Thonny<\/h3>\n<\/p>\n<p><h4>1\u3001\u6253\u5f00\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>Thonny\u662f\u4e00\u4e2a\u9002\u5408\u521d\u5b66\u8005\u7684Python IDE\u3002\u8981\u66f4\u6539\u5b57\u4f53\uff0c\u9996\u5148\u9700\u8981\u6253\u5f00\u8bbe\u7f6e\u3002\u70b9\u51fb\u9876\u90e8\u83dc\u5355\u680f\u7684<code>Tools<\/code>\uff0c\u7136\u540e\u9009\u62e9<code>Options<\/code>\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u5bfc\u822a\u5230\u5b57\u4f53\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>\u5728\u8bbe\u7f6e\u754c\u9762\u4e2d\uff0c\u5bfc\u822a\u5230<code>Font &amp; Theme<\/code>\u9009\u9879\u5361\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u66f4\u6539\u5b57\u4f53\u548c\u5927\u5c0f<\/h4>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u9009\u62e9\u4f60\u60f3\u8981\u4f7f\u7528\u7684\u5b57\u4f53\u548c\u8c03\u6574\u5b57\u4f53\u5927\u5c0f\u3002<\/p>\n<\/p>\n<p><h3>\u5341\u3001\u7ec8\u7aef\u548c\u547d\u4ee4\u884c\u754c\u9762<\/h3>\n<\/p>\n<p><h4>1\u3001\u6253\u5f00\u7ec8\u7aef\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u662f\u5728\u7ec8\u7aef\u6216\u547d\u4ee4\u884c\u754c\u9762\u4e2d\u8fd0\u884cPython\u811a\u672c\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u66f4\u6539\u7ec8\u7aef\u7684\u8bbe\u7f6e\u6765\u66f4\u6539\u5b57\u4f53\u3002\u6bcf\u79cd\u7ec8\u7aef\u5e94\u7528\u90fd\u6709\u81ea\u5df1\u7684\u8bbe\u7f6e\u754c\u9762\uff0c\u4f8b\u5982GNOME Terminal\u3001iTerm2\u3001Windows Terminal\u7b49\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u4fee\u6539\u5b57\u4f53\u8bbe\u7f6e<\/h4>\n<\/p>\n<p><p>\u5728\u7ec8\u7aef\u8bbe\u7f6e\u4e2d\uff0c\u627e\u5230\u5b57\u4f53\u8bbe\u7f6e\u9009\u9879\uff0c\u7136\u540e\u9009\u62e9\u4f60\u60f3\u8981\u4f7f\u7528\u7684\u5b57\u4f53\u548c\u8c03\u6574\u5b57\u4f53\u5927\u5c0f\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u7f16\u8f91\u5668\u548cIDE\u4e2d\u66f4\u6539Python\u4ee3\u7801\u7684\u5b57\u4f53\u3002\u9009\u62e9\u5408\u9002\u7684\u5b57\u4f53\u548c\u5b57\u53f7\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u4f60\u7684\u7f16\u7801\u4f53\u9a8c\u548c\u6548\u7387\u3002\u5e0c\u671b\u8fd9\u4e9b\u65b9\u6cd5\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4ee3\u7801\u7f16\u8f91\u5668\u4e2d\u66f4\u6539\u5b57\u4f53\uff1f<\/strong><br \/>\u5728\u5927\u591a\u6570Python IDE\u6216\u4ee3\u7801\u7f16\u8f91\u5668\u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u9009\u9879\u6765\u66f4\u6539\u5b57\u4f53\u3002\u4ee5PyCharm\u4e3a\u4f8b\uff0c\u60a8\u53ef\u4ee5\u8fdb\u5165\u201cFile\u201d -&gt; \u201cSettings\u201d -&gt; \u201cEditor\u201d -&gt; \u201cFont\u201d\u8fdb\u884c\u5b57\u4f53\u7684\u9009\u62e9\u548c\u8c03\u6574\u3002\u5bf9\u4e8eVS Code\uff0c\u70b9\u51fb\u5de6\u4e0b\u89d2\u7684\u8bbe\u7f6e\u56fe\u6807\uff0c\u9009\u62e9\u201cSettings\u201d\uff0c\u7136\u540e\u641c\u7d22\u201cFont\u201d\uff0c\u5728\u201cEditor: Font Family\u201d\u4e2d\u53ef\u4ee5\u6307\u5b9a\u60a8\u559c\u6b22\u7684\u5b57\u4f53\u3002<\/p>\n<p><strong>\u66f4\u6539Python\u4ee3\u7801\u5b57\u4f53\u4f1a\u5f71\u54cd\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u5417\uff1f<\/strong><br \/>\u5b57\u4f53\u7684\u9009\u62e9\u786e\u5b9e\u4f1a\u5f71\u54cd\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002\u9009\u62e9\u6613\u4e8e\u8bc6\u522b\u7684\u7b49\u5bbd\u5b57\u4f53\uff08\u5982Courier New\u3001Consolas\u6216Fira Code\uff09\u53ef\u4ee5\u5e2e\u52a9\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002\u6b64\u5916\uff0c\u8c03\u6574\u5b57\u4f53\u5927\u5c0f\u3001\u884c\u95f4\u8ddd\u548c\u989c\u8272\u65b9\u6848\u4e5f\u6709\u52a9\u4e8e\u589e\u5f3a\u4ee3\u7801\u7684\u89c6\u89c9\u6548\u679c\uff0c\u4f7f\u5176\u66f4\u5bb9\u6613\u9605\u8bfb\u548c\u7406\u89e3\u3002<\/p>\n<p><strong>\u5728Jupyter Notebook\u4e2d\u5982\u4f55\u6539\u53d8\u4ee3\u7801\u5b57\u4f53\uff1f<\/strong><br \/>\u5728Jupyter Notebook\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u81ea\u5b9a\u4e49CSS\u6587\u4ef6\u6765\u66f4\u6539\u5b57\u4f53\u3002\u60a8\u53ef\u4ee5\u5728Jupyter\u7684\u7528\u6237\u6587\u4ef6\u5939\u4e2d\u627e\u5230<code>custom.css<\/code>\u6587\u4ef6\uff0c\u6dfb\u52a0\u6216\u4fee\u6539\u5b57\u4f53\u6837\u5f0f\u3002\u901a\u8fc7\u4f7f\u7528<code>font-family<\/code>\u5c5e\u6027\u6765\u8bbe\u7f6e\u6240\u9700\u7684\u5b57\u4f53\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u6dfb\u52a0\u5982\u4e0b\u4ee3\u7801\uff1a<code>body { font-family: &#39;YourFontName&#39;; }<\/code>\u3002\u4fdd\u5b58\u66f4\u6539\u540e\uff0c\u91cd\u65b0\u542f\u52a8Jupyter Notebook\u5373\u53ef\u770b\u5230\u6548\u679c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728Python\u4e2d\u66f4\u6539\u4ee3\u7801\u5b57\u4f53\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u6765\u5b9e\u73b0\uff0c\u4e3b\u8981\u53d6\u51b3\u4e8e\u4f60\u6240\u4f7f\u7528\u7684\u4ee3\u7801\u7f16\u8f91\u5668\u6216\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09 [&hellip;]","protected":false},"author":3,"featured_media":1161978,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1161969"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1161969"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1161969\/revisions"}],"predecessor-version":[{"id":1161979,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1161969\/revisions\/1161979"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1161978"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1161969"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1161969"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1161969"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}