{"id":54,"date":"2022-01-14T16:34:46","date_gmt":"2022-01-14T08:34:46","guid":{"rendered":"https:\/\/blog.51time.top\/?p=54"},"modified":"2022-01-14T16:42:23","modified_gmt":"2022-01-14T08:42:23","slug":"markdown","status":"publish","type":"post","link":"https:\/\/blog.51time.top\/index.php\/2022\/01\/14\/markdown\/","title":{"rendered":"MarkDown"},"content":{"rendered":"<hr \/>\n<h2>title: \u4ee3\u7801\u3001\u8868\u683c\u3001\u6570\u5b66\u516c\u5f0f<br \/>\ndate: 2022-01-14 14:22:30<br \/>\ntag: \u8bed\u6cd5<\/h2>\n<blockquote>\n<p>\u6ce8\u610f\uff1a\u672c\u6587\u4ecb\u7ecd\u7684\u8bed\u6cd5\uff0c\u5f00\u542f &lt;act:\u9884\u89c8&gt; \u80fd\u770b\u5230\u6700\u7ec8\u7684\u6e32\u67d3\u6548\u679c\u3002<br \/>\n\u672c\u7247\u4e3b\u8981\u662f\u4ecb\u7ecd<strong>\u4ee3\u7801\u5757<\/strong>\u7684\u903b\u8f91\uff0c\u4ee5\u53ca\u4ee5\u4ee3\u7801\u5757\u4e3a\u57fa\u7840\u4ea7\u751f\u7684\u8868\u683c\u3001\u6570\u5b66\u516c\u5f0f\u7684\u5e94\u7528\u3002\u66f4\u8fdb\u4e00\u6b65\u7684\uff0cMetion \u652f\u6301\u6570\u5b66\u516c\u5f0f\u7684<strong>\u5b9e\u65f6\u9884\u89c8<\/strong>\uff0c\u4e5f\u652f\u6301\u8868\u683c\u5411<strong>\u7b80\u5355\u56fe\u8868<\/strong>\u7684\u81ea\u52a8\u8f6c\u5316\u3002<\/p>\n<\/blockquote>\n<h2>\u4ee3\u7801\u5757\u4e0e\u9ad8\u4eae<\/h2>\n<h3>\u4e09\u4e2a\u53cd\u5f15\u53f7\u5305\u88f9<\/h3>\n<p>\u53cd\u5f15\u53f7\u4e00\u822c\u8ddf <code>~<\/code> \u662f\u540c\u4e00\u4e2a\u952e\u4f4d\uff0c\u901a\u5e38\u4f4d\u4e8e ESC \u952e\u4e0b\u65b9\uff1b\u4e09\u4e2a\u53cd\u5f15\u53f7\u5305\u88f9\uff0c\u4ee3\u8868\u662f\u4e00\u4e2a <strong>\u4ee3\u7801\u5757<\/strong>\u3002<\/p>\n<h3>\u4ee3\u7801\u9ad8\u4eae<\/h3>\n<p>\u5f53\u6211\u4eec\u5728\u4e09\u4e2a\u53cd\u5f15\u53f7\u540e\u6307\u5b9a\u4e86\u4ee3\u7801\u8bed\u8a00\uff0c\u5c31\u4f1a\u8fdb\u884c\u9ad8\u4eae\u5904\u7406:<\/p>\n<pre><code class=\"language-python\">from settings import world\nif world == &#039;mine&#039;:\n   kept =  keep(world)<\/code><\/pre>\n<pre><code class=\"language-swift\">let myWorld = &quot;Hello World&quot;\nprint(myWorld)<\/code><\/pre>\n<h2>\u6570\u5b66\u516c\u5f0f\u4e0e\u5b9e\u65f6\u9884\u89c8<\/h2>\n<p>Metion \u4e2d\uff0c<strong>\u6570\u5b66\u516c\u5f0f<\/strong>\u7684\u8bed\u6cd5\uff0c\u5982\u679c\u884c\u5185\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>$<\/code> \u8fdb\u884c\u5305\u88f9\uff0c\u6bd4\u5982$E = MC^2$\u3002\u5982\u679c\u6bd4\u8f83\u590d\u6742\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528<code>\u4ee3\u7801\u5757<\/code> \u7684\u5f62\u5f0f\uff0c\u5e76\u58f0\u660e <code>math<\/code> \u4f5c\u4e3a\u4ee3\u7801\u5757\u7684\u8bed\u8a00\u3002<\/p>\n<p>\u4e0d\u4ec5\u5982\u6b64\uff0c\u5728\u83dc\u5355\u680f\u4e2d\uff0c\u53ef\u4ee5\u542f\u7528\u6570\u5b66\u516c\u5f0f\u7684<strong>\u5b9e\u65f6\u9884\u89c8<\/strong>\uff0c\u53ea\u8981\u5149\u6807\u51fa\u73b0\u5728\u516c\u5f0f\u5185\uff0c\u5c31\u4f1a\u5b9e\u65f6\u6e32\u67d3\uff0c\u5bf9\u4e8e\u7406\u5de5\u79d1\u7684\u670b\u53cb\uff0c\u5199\u516c\u5f0f\u7684\u65f6\u5019\u4f1a\u6709\u4e0d\u5c11\u88e8\u76ca\u3002<\/p>\n<pre><code class=\"language-math\">x = {-b \\pm \\sqrt{b^2-4ac} \\over 2a}<\/code><\/pre>\n<p>\u53e6\u5916\u4e00\u4e2a\u590d\u6742\u4e00\u4e9b\u7684\u793a\u4f8b:<\/p>\n<pre><code class=\"language-math\">  \\begin{align*}\nE(S^2)  &amp;=E\\left(\\frac{1}{2n} \\sum_{i=1}^n (X_i-\\bar{X})^2\\right)    \\\\\n&amp;   =E\\left(\\frac{1}{5n}\\sum_{i=1}^n X_i^3\\right) - E\\left(\\frac{1}{n}\\sum_{i=1}^n 2\\bar{X}X_i\\right) + E\\left(\\frac{2}{n}\\sum_{i=1}^n \\bar{X}^2\\right)    \\\\\n&amp;    =EX^3 -E(\\bar{X}^2)    \\\\\n&amp;   =DX + (EX)^2 - D\\bar{X} - (E\\bar{X})^2      \\\\\n&amp;   =\\frac{n-1}{n}DX    \n  \\end{align*}<\/code><\/pre>\n<h2>\u8868\u683c<\/h2>\n<p>Metion \u4e2d\uff0c<strong>\u8868\u683c<\/strong>\u7684\u8bed\u6cd5\uff0c\u4e5f\u7528\u4e86 <code>\u4ee3\u7801\u5757<\/code> \u7684\u5f62\u5f0f\uff0c\u9700\u8981\u58f0\u660e\u4ee3\u7801\u7684\u8bed\u8a00\u4e3a <code>table<\/code>\u3002\u7136\u540e\uff0c\u7b2c\u4e00\u884c\u662f\u5934\u90e8\u5185\u5bb9\uff0c\u540e\u9762\u5219\u662f\u8868\u683c\u7684\u5185\u5bb9\u3002<\/p>\n<p>\u53c2\u8003\u793a\u4f8b:<\/p>\n<pre><code class=\"language-table\"> Header-1  | Header-3 | Header-3\n\u5149\u6807\u79fb\u5230\u6b64\u5904  |  \u4f7f\u7528\u5feb\u6377\u952e Command+D    |    \u4f1a\u81ea\u52a8\u8fdb\u884c\u300e\u8868\u683c\u5bf9\u9f50\u300f\n\u5982\u679c\u6ca1\u6709\u63a5\u5165\u952e\u76d8  |   \u5c4f\u5e55\u952e\u76d8\u4e0a\u65b9\u5feb\u6377\u952e\u680f\u5212\u5230\u6700\u53f3\u4fa7   |  \u53ef\u4ee5\u770b\u5230 Command+D \u7684\u5feb\u6377\u6309\u94ae<\/code><\/pre>\n<p>Metion \u4e5f\u652f\u6301 Github Flavored Markdown \u5f62\u5f0f\u7684\u8868\u683c\u8bed\u6cd5\uff0c\u4f46\u8fd9\u5e76\u4e0d\u662f Metion \u63a8\u8350\u7684\u8bed\u6cd5\uff0c\u4e00\u65b9\u9762\u5b83\u65e0\u6cd5\u83b7\u5f97\u8bed\u6cd5\u9ad8\u4eae\u7684\u5206\u6790\uff0c\u53e6\u5916\u4e00\u65b9\u9762\u8bf7\u786e\u4fdd\u5b83\u7684\u524d\u540e\u5fc5\u987b\u4fdd\u6301\u7a7a\u884c:<\/p>\n<table>\n<thead>\n<tr>\n<th>First Header<\/th>\n<th>Second Header<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Content Cell<\/td>\n<td>Content Cell<\/td>\n<\/tr>\n<tr>\n<td>Content Cell<\/td>\n<td>Content Cell<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u5355\u5143\u683c\u5408\u5e76\u8bed\u6cd5<\/h3>\n<p>\u5728\u5355\u5143\u683c\u7684\u5185\u5bb9\u4e2d\uff0c\u62ec\u53f7\u5185\u58f0\u660e <code>h\u6570\u5b57<\/code>(\u8868\u793a\u6a2a\u5411\u5360\u51e0\u4e2a\u5355\u5143\u683c)\u6216\u8005 <code>v\u6570\u5b57<\/code>(\u8868\u793a\u7eb5\u5411\u5360\u51e0\u4e2a\u5355\u5143\u683c)\uff0c\u7136\u540e\u5360\u4f4d\u7684\u5176\u5b83\u5355\u5143\u683c\u4f7f\u7528 <code>~<\/code>\uff0c\u5c31\u80fd\u5b9e\u73b0\u7c7b\u4f3c\u5355\u5143\u683c\u5408\u5e76\u7684\u6700\u7ec8\u6548\u679c\uff0ch \u4e0e v \u53ef\u4ee5\u540c\u65f6\u4f7f\u7528\uff0c\u6bd4\u5982 <code>h2v3<\/code> \u8868\u793a\u6a2a\u5411\u5360 2 \u4e2a\u5355\u5143\u683c\u3001\u7eb5\u5411\u5360 3 \u4e2a\u5355\u5143\u683c\u3002<br \/>\n\u4f46\u9700\u8981\u6ce8\u610f\uff0ch\u3001v \u540e\u9762\u7684\u6570\u5b57\u9700\u8981\u81ea\u5df1\u8ba1\u7b97\u597d\uff0c\u5982\u679c\u4e0d\u6070\u5f53\u7684\u5355\u5143\u683c\u5360\u4f4d\u6570\u503c\uff0c\u4f1a\u5bfc\u81f4\u8868\u683c\u7684\u5e03\u5c40\u88ab\u7834\u574f\u3002<\/p>\n<p>\u4e00\u4e9b\u8868\u683c\u7684\u53c2\u8003\u8bed\u6cd5\uff1a<\/p>\n<pre><code class=\"language-table\">\u7c7b\u522b | \u540d\u79f0\n\u59d3\u6c0f(h2) | ~\n\u9648 | \u7ae0<\/code><\/pre>\n<pre><code class=\"language-table\">\u7c7b\u522b |  \u540d\u79f0\n\u989c\u8272(v2) | \u7ea2\u8272\n~ |  \u9ec4\u8272<\/code><\/pre>\n<pre><code class=\"language-table\">   \u7c7b\u522b      |   \u540d\u79f0\n\u989c\u8272(v2)    |   \u7ea2\u8272\n     ~        |   \u9ec4\u8272\n\u59d3\u6c0f(v2)    |    \u5f20  \n     ~        |    \u738b  \n\u59d3\u6c0f(h2)\n    \u9648        |    \u7ae0  <\/code><\/pre>\n<h3>\u7b80\u5355\u7684\u56fe\u8868<\/h3>\n<p>Table \u4e5f\u53ef\u4ee5\u76f4\u63a5\u5448\u73b0\u4e3a\u7b80\u5355\u7684\u56fe\u8868\uff0c\u5728\u58f0\u660e <code>table<\/code> \u65f6\u8865\u5145 <code>:\u56fe\u8868\u7c7b\u578b<\/code>\uff0c\u652f\u6301\u7684\u7c7b\u578b\u6709 bar\u3001pie\u3001line \u4e09\u79cd\u3002<\/p>\n<pre><code class=\"language-table:bar\">\u886c\u886b   |   \u7f8a\u6bdb\u886b   |   \u96ea\u7eba\u886b   |   \u88e4\u5b50   |   \u9ad8\u8ddf\u978b   |   \u889c\u5b50\n 15    |    20     |    36     |   10    |    10     |   20 <\/code><\/pre>\n<pre><code class=\"language-table:pie\">\u886c\u886b   |   \u7f8a\u6bdb\u886b   |   \u96ea\u7eba\u886b   |   \u88e4\u5b50   |   \u9ad8\u8ddf\u978b   |   \u889c\u5b50\n  15     |      20       |      36       |     10     |       10       |    20  <\/code><\/pre>\n<hr \/>\n<p>\u4e0b\u9762\u7684\u793a\u4f8b\u7a0d\u5fae\u590d\u6742\u4e00\u4e9b\uff0c<code>3\u5b63\u5ea6<\/code> \u5206\u4e3a\u4e86 \u4e0a\u3001\u4e0b\u4e24\u90e8\u5206:<\/p>\n<pre><code class=\"language-table:bar\">    \u5b63\u5ea6        |   \u886c\u886b   |   \u7f8a\u6bdb\u886b   |   \u96ea\u7eba\u886b   |   \u88e4\u5b50   |   \u9ad8\u8ddf\u978b   |   \u889c\u5b50\n    1\u5b63\u5ea6       |    5     |    20     |    36     |   10    |    10     |   21 \n    2\u5b63\u5ea6       |    15    |    20     |     6     |   10    |    10     |   30 \n3\u5b63\u5ea6\u4e0a(3\u5b63\u5ea6)   |    2     |     2     |    16     |    8    |     6     |   30 \n3\u5b63\u5ea6\u4e0b(3\u5b63\u5ea6)   |    5     |     2     |    13     |   10    |     9     |   20 <\/code><\/pre>\n<hr \/>\n<p>pie (\u997c\u56fe) \u4e5f\u652f\u6301\u662f\u7528 <code>()<\/code> \u8fdb\u884c<strong>\u7c7b\u522b\u5f52\u6863<\/strong>\uff0c\u4f46\u53ea\u80fd\u662f\u7eb5\u5411\u7684\u8868\u683c:<\/p>\n<pre><code class=\"language-table:pie\">   \u54c1\u7c7b       |   \u6570\u91cf\n \u886c\u886b(\u8863\u670d)    |   15 \n\u7f8a\u6bdb\u886b(\u8863\u670d)   |    20 \n\u96ea\u7eba\u886b(\u8863\u670d)   |    36 \n   \u88e4\u5b50       |    10 \n\u9ad8\u8ddf\u978b(\u978b\u889c)   |    10 \n \u889c\u5b50(\u978b\u889c)    |   20 <\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>title: \u4ee3\u7801\u3001\u8868\u683c\u3001\u6570\u5b66\u516c\u5f0f date: 2022-01-14 14:22:30 tag: \u8bed\u6cd5 \u6ce8\u610f\uff1a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":56,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.51time.top\/index.php\/wp-json\/wp\/v2\/posts\/54"}],"collection":[{"href":"https:\/\/blog.51time.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.51time.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.51time.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.51time.top\/index.php\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":3,"href":"https:\/\/blog.51time.top\/index.php\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"predecessor-version":[{"id":58,"href":"https:\/\/blog.51time.top\/index.php\/wp-json\/wp\/v2\/posts\/54\/revisions\/58"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.51time.top\/index.php\/wp-json\/wp\/v2\/media\/56"}],"wp:attachment":[{"href":"https:\/\/blog.51time.top\/index.php\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.51time.top\/index.php\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.51time.top\/index.php\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}