在python中的类方法上应用装饰器

时间:2018-04-12 10:31:29

标签: python

在下面的代码中,我试图在类方法上应用装饰器。我将错误视为splitChunks: { chunks: "async", minSize: 30000, minChunks: 1, maxAsyncRequests: 5, maxInitialRequests: 3, name: true, cacheGroups: { default: { minChunks: 2, priority: -20 reuseExistingChunk: true, }, vendors: { test: /[\\/]node_modules[\\/]/, priority: -10 } } } 如何解决此问题

TypeError: myfunc() takes exactly 2 arguments (1 given)

0 个答案:

没有答案