TypeError: __init__() takes at least 4 non-keyword arguments (3 given)

前端 未结 3 1477
天涯浪人
天涯浪人 2021-01-16 01:58

Advice please :)

When I use this script:

class CustomStreamListener(tweepy.StreamListener):

    def on_status(self, status):

        # We\'ll simpl         


        
3条回答
  •  不知归路
    2021-01-16 03:03

    __init__ is the constructor of a class, in this case Stream. The error means you have provided a wrong number of arguments to the constructor call.

提交回复
热议问题