For loop always prints last iteration in python

后端 未结 0 345
情深已故
情深已故 2021-02-10 13:02
for sentence in reviewlist:
    print(sentence)
    scores = sid.polarity_scores(sentence)
    for key in sorted(scores):
         print(\'{0}: {1}, \'.format(key, score         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题