{"id":1659,"date":"2011-08-18T10:37:00","date_gmt":"2011-08-18T02:37:00","guid":{"rendered":""},"modified":"2011-08-18T10:37:00","modified_gmt":"2011-08-18T02:37:00","slug":"","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/1659.html","title":{"rendered":"Ubuntu\u7ec8\u7aef\u5b57\u7b26\u989c\u8272"},"content":{"rendered":"<p><html><head><meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\" \/><title>Ubuntu\u7ec8\u7aef\u5b57\u7b26\u989c\u8272<\/title><\/head><body><\/p>\n<h1 style=\"display:none\">Ubuntu\u7ec8\u7aef\u5b57\u7b26\u989c\u8272<\/h1>\n<div>\n<p><span style=\"font-size:14px\">\u7ec8\u7aef\u7684\u5b57\u7b26\u989c\u8272\u662f\u7528\u8f6c\u4e49\u5e8f\u5217\u63a7\u5236\u7684\uff0c\u662f\u6587\u672c\u6a21\u5f0f\u4e0b\u7684\u7cfb\u7edf\u663e\u793a\u529f\u80fd\uff0c\u548c\u5177\u4f53\u7684\u8bed\u8a00\u65e0\u5173\u3002<\/span><\/p>\n<p><span style=\"font-size:14px\">\u8f6c\u4e49\u5e8f\u5217\u662f\u4ee5 ESC \u5f00\u5934,\u53ef\u4ee5\u7528 \\033 \u5b8c\u6210\u76f8\u540c\u7684\u5de5\u4f5c\uff08ESC \u7684 ASCII \u7801\u7528\u5341\u8fdb\u5236\u8868<br \/>\n\u793a\u5c31\u662f 27\uff0c = \u7528\u516b\u8fdb\u5236\u8868\u793a\u7684 33\uff09\u3002<\/span><\/p>\n<p><span style=\"font-size: 14px; color: rgb(255, 0, 0);\">\\033[\u663e\u793a\u65b9\u5f0f;\u524d\u666f\u8272;\u80cc\u666f\u8272m<\/span><\/p>\n<p><span style=\"font-size:14px\">\u663e\u793a\u65b9\u5f0f:0\uff08\u9ed8\u8ba4\u503c\uff09\u30011\uff08\u9ad8\u4eae\uff09\u300122\uff08\u975e\u7c97\u4f53\uff09\u30014\uff08\u4e0b\u5212\u7ebf\uff09\u300124\uff08\u975e\u4e0b\u5212\u7ebf\uff09\u3001<br \/>\n5\uff08\u95ea\u70c1\uff09\u300125\uff08\u975e\u95ea\u70c1\uff09\u30017\uff08\u53cd\u663e\uff09\u300127\uff08\u975e\u53cd\u663e\uff09<\/span><\/p>\n<p><span style=\"font-size:14px\">\u524d\u666f\u8272:30\uff08\u9ed1\u8272\uff09\u300131\uff08\u7ea2\u8272\uff09\u300132\uff08\u7eff\u8272\uff09\u3001 33\uff08\u9ec4\u8272\uff09\u300134\uff08\u84dd\u8272\uff09\u300135\uff08\u6d0b<br \/>\n\u7ea2\uff09\u300136\uff08\u9752\u8272\uff09\u300137\uff08\u767d\u8272\uff09<\/span><\/p>\n<p><span style=\"font-size: 14px;\">\u80cc\u666f\u8272:40\uff08\u9ed1\u8272\uff09\u300141\uff08\u7ea2\u8272\uff09\u300142\uff08\u7eff\u8272\uff09\u3001 43\uff08\u9ec4\u8272\uff09\u300144\uff08\u84dd\u8272\uff09\u300145\uff08\u6d0b<br \/>\n\u7ea2\uff09\u300146\uff08\u9752\u8272\uff09\u300147\uff08\u767d\u8272\uff09<\/span><\/p>\n<p><span style=\"font-size:14px\">\u5982\uff1a<br \/><\/span><\/p>\n<p><span style=\"font-size:14px\">\\033[0m \u9ed8\u8ba4<\/span><\/p>\n<p><span style=\"font-size:14px\">\\033[1;32;40m \u7eff\u8272<\/span><\/p>\n<p><span style=\"font-size: 14px;\">033[1;31;40m \u7ea2\u8272<\/span><\/p>\n<p><span style=\"font-size:14px\"><span style=\"color: rgb(255, 0, 0); font-size: 14px;\">\u5728python\u4e2d\u6253\u5370\uff1a<\/span><br \/><\/span><\/p>\n<p><span style=\"font-size: 14px;\">print &#8220;\\033[1;31;40m%s\\033[0m&#8221; % &#8221; \u8f93\u51fa\u7ea2\u8272\u5b57\u7b26&#8221;<\/span><\/p>\n<p><span style=\"font-size: 14px;\">\u540e\u9762\u90a3\u4e2a<\/span><span style=\"font-size:14px\">\\033[0m\u662f\u5c06\u4ee5\u540e\u7684\u5b57\u7b26\u989c\u8272\u91cd\u7f6e\u3002<br \/><\/span><\/p>\n<\/div>\n<p><\/body><\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu\u7ec8\u7aef\u5b57\u7b26\u989c\u8272 Ubuntu\u7ec8\u7aef\u5b57\u7b26\u989c\u8272 \u7ec8\u7aef\u7684\u5b57\u7b26\u989c\u8272\u662f\u7528\u8f6c\u4e49\u5e8f\u5217\u63a7\u5236\u7684\uff0c\u662f\u6587\u672c\u6a21\u5f0f\u4e0b\u7684\u7cfb\u7edf\u663e\u793a\u529f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1659","post","type-post","status-publish","format-standard","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=1659"}],"version-history":[{"count":0,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1659\/revisions"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=1659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=1659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=1659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}