Text Manipulator
删除源代码中的行注释和块注释,保留代码及其引号中的字符串。
159 个字符26 个单词6 行
133 个字符19 个单词6 行
/** 返回总价。 */
function total(items) {
// 计算价格总和
const url = "https://example.com"; /* 暂未使用 */
return items.reduce((sum, i) => sum + i.price, 0); // 单位:分
}/** 返回总价。 */
function total(items) {
const url = "https://example.com";
return items.reduce((sum, i) => sum + i.price, 0);
}def greet(name):
"""返回问候语。"""
# 拼接消息
message = "你好, #" + name # 引号中的 # 保留
return messagedef greet(name):
"""返回问候语。"""
message = "你好, #" + name
return message<header>欢迎光临</header> <!-- 这里放标志 --> <p>不要错过我们的优惠。</p><!-- TODO:添加链接 -->
<header>欢迎光临</header> <p>不要错过我们的优惠。</p>
在文本流程构建器中将此工具与其他步骤组合,对同一段文本依次执行。
添加到流程