经过沟通 了解了您的具体需求是,将多个参数传参后,一起采用链式调用,对于自定义函数,可以通过元组的形式传参,如:
def info(config){
print(config[0])
print(config[1])
}
config1=("日志", "任务类别")
config1.info()
本人正在写一个模块。
以下场景主要在于modules模块中实现。
本人想实现dolphindb已有的链式调用方式。 比如
database(::getDatabase()).createPartitionedTable(mtable,name,"trade_date")
而非必须变成