ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
spacify会在变量的字符串中插入空格。 你可以设置插入的是空格或者别的字符。 <table border="1"> <colgroup> <col align="center"> <col align="center"> <col align="center"> <col align="center"> <col> </colgroup> <thead><tr> <th align="center">参数顺序</th> <th align="center">类型</th> <th align="center">必选参数</th> <th align="center">默认值</th> <th>说明</th> </tr></thead> <tbody><tr> <td align="center">1</td> <td align="center">string</td> <td align="center">No</td> <td align="center"><span class="emphasis"><em>one space</em></span></td> <td>插入字符间的字符</td> </tr></tbody> </table> 例子: articleTitle:`Something Went Wrong in Jet Crash, Experts Say.` 模板: ``` _{$articleTitle}_ _{$articleTitle|spacify}_ _{$articleTitle|spacify:"^^"}_ ``` 输出: ``` Something Went Wrong in Jet Crash, Experts Say. S o m e t h i n g W .... snip .... s h , E x p e r t s S a y . S^^o^^m^^e^^t^^h^^i^^n^^g^^ .... snip .... ^^e^^r^^t^^s^^ ^^S^^a^^y^^. ```