{"id":423,"date":"2021-09-10T00:31:03","date_gmt":"2021-09-10T00:31:03","guid":{"rendered":"https:\/\/262235.xyz\/?p=423"},"modified":"2021-09-10T00:31:03","modified_gmt":"2021-09-10T00:31:03","slug":"423","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/09\/10\/423\/","title":{"rendered":"\u8f6c\u6362Excel\u8868\u683c\u5230MarkDown\u8868\u683c"},"content":{"rendered":"<p><a href=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/09\/1284690906.zip\">exceltk.0.1.3.zip<\/a><\/p>\n<pre><code>exceltk\u7528\u4f8b\n\u6574\u4e2a\u8868\u683c\uff1a    exceltk.exe -t md -xls xxx.xls\n              exceltk.exe -t md -xls xxx.xlsx\n\u6307\u5b9asheet\uff1a\n              exceltk.exe -t md -xls xx.xls -sheet sheetname\n              exceltk.exe -t md -xls xx.xlsx -sheet sheetnameexceltk\n\u7279\u6027\uff1a\n     \u8f6c\u6362Excel\u8868\u683c\u5230MarkDown\u8868\u683c\n     \u652f\u6301Excel\u5355\u5143\u683c\u5e26\u8d85\u94fe\u63a5\n     \u5982\u679cExcel\u91cc\u6709\u5408\u5e76\u7684\u8de8\u884c\u5355\u5143\u683c\uff0c\u5728\u8f6c\u6362\u540e\u7684MarkDown\u91cc\u662f\u5206\u5f00\u7684\u5355\u5143\u683c\uff0c\u8fd9\u662f\u56e0\u4e3aMarkDown\u672c\u8eab\u4e0d\u652f\u6301\u8de8\u884c\u5355\u5143\u683c\n     \u5982\u679cExcel\u8868\u683c\u53f3\u4fa7\u6709\u5927\u91cf\u7684\u7a7a\u5217\uff0c\u5219\u4f1a\u88ab\u81ea\u52a8\u88c1\u526a\uff0c\u7b97\u6cd5\u662f\u6839\u636e\u524d100\u884c\u6765\u68c0\u6d4b\u5e76\u8ba1\u7b97<\/code><\/pre>\n<h2>\u7279\u6027<\/h2>\n<ul>\n<li>\u8f6c\u6362Excel\u8868\u683c\u5230MarkDown\u8868\u683c<\/li>\n<li>\u652f\u6301Excel\u5355\u5143\u683c\u5e26\u8d85\u94fe\u63a5\uff0c\u5982\u679c\u4e00\u4e2a\u5355\u5143\u683c\uff0c\u4f60\u53f3\u952e\u6dfb\u52a0\u4e86\u8d85\u94fe\u63a5\uff0c\u81ea\u52a8\u8f6c\u6210<code>(url)<\/code><\/li>\n<li>\u5982\u679cExcel\u91cc\u6709\u5408\u5e76\u7684\u8de8\u884c\u5355\u5143\u683c\uff0c\u5728\u8f6c\u6362\u540e\u7684MarkDown\u91cc\u662f\u5206\u5f00\u7684\u5355\u5143\u683c\uff0c\u8fd9\u662f\u56e0\u4e3aMarkDown\u672c\u8eab\u4e0d\u652f\u6301\u8de8\u884c\u5355\u5143\u683c<\/li>\n<li>\u5982\u679cExcel\u8868\u683c\u53f3\u4fa7\u6709\u5927\u91cf\u7684\u7a7a\u5217\uff0c\u5219\u4f1a\u88ab\u81ea\u52a8\u88c1\u526a\uff0c\u7b97\u6cd5\u662f\u6839\u636e\u524d100\u884c\u6765\u68c0\u6d4b\u5e76\u8ba1\u7b97<\/li>\n<li>\u652f\u6301\u6307\u5b9a\u5c0f\u6570\u6570\u5b57\u7684\u7cbe\u5ea6<\/li>\n<li>\u652f\u6301\u4f7f\u7528\u8868\u683c\u9996\u884c\u4ee3\u66ff\u8868\u5934\uff08\u4fdd\u6301\u7a7a\u8868\u5934\uff09<\/li>\n<li>\u652f\u6301\u6307\u5b9a\u5bf9\u9f50\u65b9\u5f0f<\/li>\n<li>\u540c\u4e00\u4e2aExcel\u8de8\u8868\u8d85\u94fe\u63a5\u516c\u5f0f\uff0c\u5982<code>HYPERLINK(test_sheet!C9,...)<\/code> \u4f1a\u88ab\u81ea\u52a8\u5c55\u5f00\u6210 <code>(url)<\/code> \u683c\u5f0f<\/li>\n<li>\u540c\u8868\u8d85\u94fe\u63a5\u516c\u5f0f\uff0c\u5982<code>HYPERLINK(C9,...)<\/code> \u4f1a\u88ab\u81ea\u52a8\u5c55\u5f00\u6210 <code>(url)<\/code> \u683c\u5f0f<\/li>\n<\/ul>\n<h2>\u5e38\u89c4\u7528\u4f8b\uff0c\u6587\u4ef6\u8f6c\u6362<\/h2>\n<p>Mac OS \u7248\u672c\u8bf7\u5728\u547d\u4ee4\u884c\u4e0b\u76f4\u63a5\u4f7f\u7528<code>exceltk<\/code>\uff0c\u4e0d\u7528\u5e26exe\u540e\u7f00\uff0cMacOS\u7684\u5b89\u88c5\u5305\u81ea\u52a8\u914d\u7f6e\u597d\u73af\u5883\u53d8\u91cf<\/p>\n<ul>\n<li>\n<p>\u6574\u4e2a\u8868\u683c<\/p>\n<ul>\n<li><code>exceltk.exe -t md -xls xxx.xls<\/code><\/li>\n<li><code>exceltk.exe -t md -xls xxx.xlsx<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u6307\u5b9asheet<\/p>\n<ul>\n<li><code>exceltk.exe -t md -xls xx.xls -sheet sheetname<\/code><\/li>\n<li><code>exceltk.exe -t md -xls xx.xlsx -sheet sheetname<\/code><\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u6307\u5b9a\u5c0f\u6570\u6570\u5b57\u7684\u7cbe\u5ea6\uff0c\u4f8b\u5982\u6307\u5b9a\u7cbe\u786e\u5230\u5c0f\u6570\u70b9\u540e2\u4f4d\u6570\u5b57<\/p>\n<ul>\n<li><code>exceltk.exe -t md -p 2 -xls xxx.xls<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u89e3\u51b3\u5728\u79fb\u52a8\u8bbe\u5907\u4e0a\u8868\u683c\u4e0d\u80fd\u81ea\u9002\u5e94\u7684\u95ee\u9898<\/h2>\n<p>\u901a\u8fc7\u6307\u5b9a<code>-bhead<\/code> \u9009\u9879\u89e3\u51b3\uff0c\u4f7f\u7528\u8868\u683c\u9996\u884c\u4ee3\u66ff\u8868\u5934\uff0c\u8868\u5934\u7528\u7a7a\u7684\u4ee3\u66ff\uff1a<\/p>\n<pre><code>exceltk.exe -t md -bhead -xsl test.xsl<\/code><\/pre>\n<p>\u8f93\u51fa\u5982\u4e0b\u98ce\u683c\u7684markdown\uff1a<\/p>\n<pre><code>||||||||||||||\n|:--|:--|:--|:--|:--|:--|:--|:--|:--|:--|:--|:--|:--|\n|**\u59d3\u540d**|**\u5e8f\u53f7**|**\u79ef\u70b9\u548c**|**\u79ef\u70b9\u548c**|**\u79ef\u70b9\u548c**|**\u79ef\u70b9\u548c**|**\u79ef\u70b9\u548c**|**\u79ef\u70b9\u548c**|**\u79ef\u70b9\u548c**|**\u79ef\u70b9\u548c**|**\u79ef\u70b9\u548c**|**\u79ef\u70b9\u548c**|**\u79ef\u70b9\u548c**|\n|\u67d0\u67d0\u67d0|34|6.86|6.86|6.86|6.86|6.86|6.86|6.86|6.86|6.86|6.86|6.86|<\/code><\/pre>\n<p>\u6548\u679c\u5982\u4e0b\uff1a<\/p>\n<table>\n<thead>\n<tr>\n<th align=\"left\"> <\/th>\n<th align=\"left\"> <\/th>\n<th align=\"left\"> <\/th>\n<th align=\"left\"> <\/th>\n<th align=\"left\"> <\/th>\n<th align=\"left\"> <\/th>\n<th align=\"left\"> <\/th>\n<th align=\"left\"> <\/th>\n<th align=\"left\"> <\/th>\n<th align=\"left\"> <\/th>\n<th align=\"left\"> <\/th>\n<th align=\"left\"> <\/th>\n<th align=\"left\"> <\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"left\"><strong>\u59d3\u540d<\/strong><\/td>\n<td align=\"left\"><strong>\u5e8f\u53f7<\/strong><\/td>\n<td align=\"left\"><strong>\u79ef\u70b9\u548c<\/strong><\/td>\n<td align=\"left\"><strong>\u79ef\u70b9\u548c<\/strong><\/td>\n<td align=\"left\"><strong>\u79ef\u70b9\u548c<\/strong><\/td>\n<td align=\"left\"><strong>\u79ef\u70b9\u548c<\/strong><\/td>\n<td align=\"left\"><strong>\u79ef\u70b9\u548c<\/strong><\/td>\n<td align=\"left\"><strong>\u79ef\u70b9\u548c<\/strong><\/td>\n<td align=\"left\"><strong>\u79ef\u70b9\u548c<\/strong><\/td>\n<td align=\"left\"><strong>\u79ef\u70b9\u548c<\/strong><\/td>\n<td align=\"left\"><strong>\u79ef\u70b9\u548c<\/strong><\/td>\n<td align=\"left\"><strong>\u79ef\u70b9\u548c<\/strong><\/td>\n<td align=\"left\"><strong>\u79ef\u70b9\u548c<\/strong><\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u67d0\u67d0\u67d0<\/td>\n<td align=\"left\">34<\/td>\n<td align=\"left\">6.86<\/td>\n<td align=\"left\">6.86<\/td>\n<td align=\"left\">6.86<\/td>\n<td align=\"left\">6.86<\/td>\n<td align=\"left\">6.86<\/td>\n<td align=\"left\">6.86<\/td>\n<td align=\"left\">6.86<\/td>\n<td align=\"left\">6.86<\/td>\n<td align=\"left\">6.86<\/td>\n<td align=\"left\">6.86<\/td>\n<td align=\"left\">6.86<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u6307\u5b9a\u5bf9\u9f50\u65b9\u5f0f<\/h2>\n<pre><code>exceltk -t md -a r -xls example.xlsx<\/code><\/pre>\n<p><code>-a<\/code> \u53c2\u6570\u6307\u5b9a\u5bf9\u9f50\u65b9\u5f0f\uff0c\u53ef\u9009\u53c2\u6570\u662f<code>l<\/code>\uff0c<code>c<\/code>\uff0c<code>r<\/code>\uff0c\u5206\u522b\u662f\u5de6\u5bf9\u9f50\u3001\u5c45\u4e2d\u5bf9\u9f50\u3001\u53f3\u5bf9\u9f50<\/p>\n<h1>\u8f6c\u6362\u5230Json<\/h1>\n<ul>\n<li><code>exceltk.exe -t json -xls example.xls <\/code><\/li>\n<\/ul>\n<h1>\u8f6c\u6362\u5230TeX<\/h1>\n<ul>\n<li><code>exceltk.exe -t tex -xls example.xls<\/code><\/li>\n<li>\u4f7f\u7528 <code>-st n<\/code> \u62c6\u5206\u8868\u683c<\/li>\n<li>\u4f7f\u7528 <code>-sn<\/code> \u628a\u6570\u5b57\u62c6\u5206\uff0c\u4f8b\u5982<code>1234656<\/code> \u4f1a\u88ab\u62c6\u6210<code>1 2 3 4 5 6<\/code>, \u5982\u679c\u8868\u592a\u5927\u65f6\u6709\u7528<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>exceltk.0.1.3.zip exceltk\u7528\u4f8b \u6574\u4e2a\u8868\u683c\uff1a exceltk.exe -t m [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-423","post","type-post","status-publish","format-standard","hentry","category-learn"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=423"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/423\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=423"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}