就像在python中一样,我可以简单地将整个文本放在"""
中,它将在您在"""
outText = """ some text that doesn't contain "\n" and
everything can be outputted with 1 print command """
print outText
是否可以将整个文本保留在某种括号内并打印出文本,而不是puts
逐行 - 或在行的每一行使用\n
?
答案 0 :(得分:4)
使用大括号:
set outText {some text that doesn't contain "\n" and
everything can be outputted with 1 put command}
puts $outText