Text 按tcl中的方式打印文本

Text 按tcl中的方式打印文本,text,tcl,Text,Tcl,就像在python中一样,我可以简单地接收整个文本,并将其存储在 是否可以将整个文本放在某种括号内,打印出文本,而无需逐个放置每一行或在每一行末尾使用\n?使用大括号: set outText {some text that doesn't contain "\n" and everything can be outputted with 1 put command} puts $outText set outText {some text that doesn't contain "\n"

就像在python中一样,我可以简单地接收整个文本,并将其存储在

是否可以将整个文本放在某种括号内,打印出文本,而无需逐个放置每一行或在每一行末尾使用\n?使用大括号:

set outText {some text that doesn't contain "\n" and
everything can be outputted with 1 put command}
puts $outText
set outText {some text that doesn't contain "\n" and
everything can be outputted with 1 put command}
puts $outText