脚本向导-帮助文档

脚本向导-帮助文档


读取CSV

<h1>功能</h1> <p>读取CSV文件中的所有条目。</p> <h1><strong>文件</strong></h1> <table> <thead> <tr> <th>名称</th> <th>说明</th> <th>示例</th> </tr> </thead> <tbody> <tr> <td>文件路径</td> <td>【字符串】CSV文件的完整路径。</td> <td>'F:\11.csv'</td> </tr> </tbody> </table> <h1><strong>选项</strong></h1> <table> <thead> <tr> <th>名称</th> <th>说明</th> <th>示例</th> </tr> </thead> <tbody> <tr> <td>分隔符</td> <td>【枚举】分隔符类型。</td> <td>Comma</td> </tr> <tr> <td>包括列名称</td> <td>【布尔】是否包括列的表头名称。</td> <td>是</td> </tr> <tr> <td>忽略引号</td> <td>【布尔】读取CSV时是否应该忽略替换引号。默认为空</td> <td>True:指忽略替换引号,即读取的csv内容中英文格式&quot;&quot;,将不被替换,读取出来的内容是保留原有的引号;Flase:则表示不忽略替换引号,即英文的&quot;&quot;将被替换为空。</td> </tr> <tr> <td>编码</td> <td>【枚举】选择编码的类型,一般为默认Default类型</td> <td>Default</td> </tr> </tbody> </table> <h1><strong>输出</strong></h1> <table> <thead> <tr> <th>名称</th> <th>说明</th> <th>示例</th> </tr> </thead> <tbody> <tr> <td>数据表</td> <td>【数据表】输出为数据表,数据表变量。</td> <td>{填入变量名称}</td> </tr> </tbody> </table> <h1><strong>注意/说明</strong></h1> <p>1.选项中的“忽略引号”:针对的是英文格式的双引号,如:&quot;&quot;该类型的引号;中文格式的引号或者是单引号等其他类型的引号均不受限制。 2.忽略引号:指的是是否忽略替换引号。 3.编码的类型选择,必须要和读取的CSV文档的编码类型一致。</p> <h1>相关函数</h1> <p>无</p> <h1><strong>示例/演示</strong></h1> <p>1.忽略引号类型选择为True类型的效果图: <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/50184970470b73f7d09c716e8c92b19f" alt="" /> 2.忽略引号类型选择为Flase类型的效果图: <img src="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/b2928092c261487a4266e65b3be32aa1" alt="" /></p> <h1>示例附件</h1> <p><a href="https://www.showdoc.com.cn/server/api/attachment/visitfile/sign/2dfce82c0956acb983bf3c215ab05eba" title="[组件[读取CSV]_20210219.db">组件[读取CSV]_20210219.db</a></p>

页面列表

ITEM_HTML