Long story short story, I am playing with the tweepy library to make a markov bot on twitter: I am now trying to answer to the right tweet but...
array[0,:] = [1, 1, 1, 1, 2, 2, 2, 2, ...]
array[1,:] = [1, 1, 2, 2, 1, 1, 2, 2, ...]
array[2,:] = [1, 2, 1, 2, 1, 2, 1, 2, ...]
...
...
array[n,:] = [...]
The ID of the targeted tweet (I am currently working with a hardcoded tweet) has this exact ID but for some reason any check leads to a 'False' no matter how I do it (for instance by trying to convert it into strings)
Thanks in advance
答案 0 :(得分:0)
推文ID很可能是一个字符串。所以只需将它放在引号之间:mention.id is '698147667990441984'