我尝试运行这段代码,但出现了以下错误信息:
我已经尝试了所有相关的解决方案,但都没有起作用。请问该如何消除这个错误信息?NameError: name 'process_or_store' is not defined
import tweepy
import json
import nltk
from tweepy import Stream
from tweepy import OAuthHandler
from tweepy.streaming import StreamListener
consumer_key = 'key'
consumer_secret = 'secret'
access_token = '-token'
access_secret = 'secret'
auth = OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_secret)
api = tweepy.API(auth)
for status in tweepy.Cursor(api.home_timeline).items(10):
# Process a single status
process_or_store(status.json)
process_or_store
方法? - R Narprocess_or_store
会从哪里来呢? - jonrsharpe