【python】PyQt5 QAction 添加点击事件

def test():
    #your function        

ui.yourQActionName.triggered.connect(lambda:test())
    #添加lambda:  就不报错了