当我使用以下代码时,每个代码之间都有一条线。请参阅所附图片。
CODE:
helpText("method 1 = TwoStepCluster (Complete)"),
helpText("method 2 = TwoStepCluster (Ward.D2)"),
helpText("method 3 = TwoStepCluster (none)"),
helpText("method 4 = Fixed Solution used as a starting point"),
Run Code Online (Sandbox Code Playgroud)
我怎样才能在没有附加行的情况下显示结果?
它显示添加额外的行,因为您正在使用多个helpText. 您只需要使用一个helpText和多个换行符br()即可获得所需的结果:
helpText("method 1 = TwoStepCluster (Complete)",
br(),
"method 2 = TwoStepCluster (Ward.D2)",
br(),
"method 3 = TwoStepCluster (none)",
br(),
"method 4 = Fixed Solution used as a starting point")
Run Code Online (Sandbox Code Playgroud)
结果: