不久前我运行了这些代码并且它起作用了,但现在有一个 ValueError: protocol not known。任何人都可以帮忙。谢谢。
import json
temp = json.dumps([status._json for status in tweet]) #create JSON
newdf = pd.read_json(temp, orient='records')
Run Code Online (Sandbox Code Playgroud) 我有一系列数字:
5138 22498 42955
我想为上面的每个数字添加 3 个数字(每个减少 1 个):
5135 5136 5137 5138 22495 22496 22497 22498 42952 42953 42954 42955
怎么做?谢谢。