func() takes 0 positional arguments but 1 was given

Function parameter passing problem

Problem Description:

![wrapper() takes 0 positional arguments but 1 was given]](https://img-blog.csdnimg.cn/20200512234720553.png)

problem causes:

wrapper() takes 0 positional arguments but 1 was given

The function wrapper() does not set a parameter variable, but a parameter is passed in

Solution:

According to the parameters of the function definition, the corresponding parameters are passed in

Guess you like

Origin blog.csdn.net/weixin_45609519/article/details/106088145
Recommended