[Sowya] print 和 println
print 打印后面的字符串、数值、变量的值等等. 项和项之间用逗号隔开, 最后加分号.
例子:
print "Hello World!";
print a, b, c, "\n", a+b, b*c;
>> :mode clox
> print "Hello World!";
Hello World!> var a=2, b=3, c=a*b;
> print a,b,c,"\n", a+b, b*c;
236
518>
println 的功能基本等同于 print, 不过会在最后加上换行.
println "Hello World!";
Hello World!
>
println a,b,c,"\n", a+b, b*c;
236
518
>