用Python库serial时显示takes no argument怎么解决

img


你发下代码看看,可能是__init__方法没写对
可能是
1.init写成了int
2.__init__前后是两个"_",你可能只写了一个"_"