print

Syntax

print(X)

Details

Print out results and variable contents.

Note:

The core functionality of DolphinDB print is the same as that of Python's built-in print. The difference is that DolphinDB print accepts only a single DolphinDB object, whereas Python print can accept multiple objects and supports parameters such as sep, end, file, and flush to control the separator, line ending, output destination, and buffer flushing.

Parameters

X is arbitrary data.

Returns

None.

Examples

x=rand(10000,10);
print x;
// output: [9786,9501,8116,1266,1719,789,8162,3113,2740,6323]
The output format of a dictionary is "key -> value". The order of the keys is determined by the ordered parameter specified when the dictionary is created.
x=1 6 3
y=4.5 7.8 4.3
// The dictionaries are unordered if the ordered parameter is not specified.
z=dict(x,y);
// Unordered dictionaries do not retain the input order when output.
print(z)
/* output:
3->4.3
6->7.8
1->4.5
*/

// The dictionaries are ordered if ordered=true is specified.
z1=dict(x,y,true)

// Ordered dictionaries retain the input order of key-value pairs when output.
print(z1)
/* output:
1->4.5
6->7.8
3->4.3
*/