Python 如何公开具有多个参数的dbus方法?

Python 如何公开具有多个参数的dbus方法?,python,dbus,Python,Dbus,是否可以创建一个接受多个参数的dbus方法 我想做一个这样的方法: def some_method(self, string, list_of_strings): #do something with arguments 进入一个可以使用dbus访问的方法。是否有一种方法可以在dbus中指定多个参数。到目前为止,我唯一的解决方案是使用一个大列表作为我的参数: @dbus.service.method('org.my.service', in_signature='as') def so

是否可以创建一个接受多个参数的dbus方法

我想做一个这样的方法:

def some_method(self, string, list_of_strings):
    #do something with arguments
进入一个可以使用dbus访问的方法。是否有一种方法可以在dbus中指定多个参数。到目前为止,我唯一的解决方案是使用一个大列表作为我的参数:

@dbus.service.method('org.my.service', in_signature='as')
def some_method(self, list_of_strings):
    string = list_of_strings.pop(0)

我更愿意把论点分开——如果有的话,怎么做?

我相信
in_signature='sas'
会达到你想要的效果