请问如何select 出一个函数的多个输出

def func(Open,High,Low,Close,20)

xxxxxxxxxxxxxxxxxxxxxxxx

return x,y 

t=select TimeStamp,func(Open,High,Low,Close,20) as factor from xxx

因为一个函数就可以计算出里面需要的结果 如果写很多函数同样的计算过程会很浪费时间

比如 t=select TimeStamp,funcA(Open,High,Low,Close,20) as factorA,funcB(Open,High,Low,Close,20) as factorB, from xxx

请先 登录 后评论

最佳答案 2021-07-23 13:08

select中改成as `factor1`factor2,示例如下:


attachments-2021-07-6mChIldX60fa38d196af5.png

请先 登录 后评论

其它 0 个回答