Solution Output 结果输出
However, you can use input redirection for the first command and then pipe that command's output through the rest of the pipeline for the more usual solution.
不过,您可以对第一个命令使用输入重定向,然后在剩余的管道下中导出该命令的输出,这是更加常见的解决方案。
Since you do need to reformat each text block type differently to produce the correct HTML output, a state machine seems like a natural solution.
由于需要以不同方式重新格式化每个文本块以生成正确的HTML输出,状态机似乎就是自然的解决方案。
Finally, we conclude by stressing the versatility of the solution with respect to changes in requirements, as well as input and output data formats.
最后,涉及到修改需求以及输入输出数据格式的问题时,我们强调了该解决方案的通用性。
应用推荐