For loop always prints last iteration in python

后端 未结 0 1992
情书的邮戳
情书的邮戳 2021-02-10 12:25
for sentence in reviewlist:
    print(sentence)
    scores = sid.polarity_scores(sentence)
    for key in sorted(scores):
         print(\'{0}: {1}, \'.format(key, score         


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