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

Sun King 🌞
  • 387

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"

回复
阅读 527
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 )