Python题目求教答:from collections import Counterwords = ['李雷','张玉','王晓刚','陈静红','方向','司马清','施然','李芳芳','刘潇','方向','孙一航','黄煌','陈静红','方向','刘培良','张玉','史小冉','司马清']count=Counter(words) #words是列表count = dict(count)num1, num2, num3 = 0,...
一个python的题目答:i=raw_input('Type in a line of text: ')print [j for j in i]punctuation = ['(', ')', '?', ':', ';', ',', '.', '!', '/', '"', "'"]k=0ret=[]while k<len(i): if i[k] not in punctuation: ret.append(i[...