Passing more arguments to this type of python function

前端 未结 2 1406
北荒
北荒 2021-01-15 11:20

I figure this is pretty basic, but can\'t seem to figure out even how to ask google the right question. I am using this python websocket client to make some websocket conne

2条回答
  •  野的像风
    2021-01-15 12:14

    You can use a lambda to wrap the call:

    ws.on_open = lambda *x: on_open("this new arg", *x)
    

提交回复
热议问题