dolphinDB运行代码IPADDR数据类型有错误

t=table(take(['AMZN','NFLX', 'NVDA'], 10) as str , 1..10 as id, rand([IPADDR("192.168.1.253")],10) as ip )

错误信息
Two objects in an expression must be connected by an operator. Object 1: IPADDR Object 2: "192.168.1.2"

阅读 1.2k
1 个回答

IPADDR表示类型,应该用ipaddr函数转换:

t=table(take(['AMZN','NFLX', 'NVDA'], 10) as str , 1..10 as id, rand([ipaddr("192.168.1.253")],10) as ip )
推荐问题
logo
101 新手上路
子站问答
访问
宣传栏