通过sys访问模块

    sys.print(string)

    此函数和console.log()类似,只是它不输出结尾的换行符。

    sys.debug(string)

    sys.log(string)

    将字符串输出至标准输出(stdout,就是控制台),附加时间戳。

    sys.inspect(object, showHidden=false, depth=2)

    如果showHidden 参数设定为true,则对象的非枚举属性也会被转化。
    如果指定depth 参数,它告诉解析器(inspectter)格式化对象的时候要递归的次数。这个参数对于解析(inspecting)
    复杂的对象很有用。

    默认只递归两次。要想无限递归,请传递null。
    例子,解析sys 对象的所有属性:

    sys.pump(readableStream, writeableStream, [callback])
    Experimental 实验性的