摘要: #列表循环实数组相加 def Sum(n): a=list(range(n)) b=list(range(0,5*n,5)) c=[] for i in range(len(a)): c.append((c)) #print((Sum(10)) #用numpy实现实数组相加 import numpy 阅读全文
posted @ 2018-09-29 11:52 Peace* 阅读(67) 评论(0) 推荐(0) 编辑
摘要: for word in sep: str=str.replace(word,"") print(str) #排除无意义的词 li=str.split() strset=set(li) exclude={'in','you','i','go'} strset=strset-exclude #单词字数 dict={} f... 阅读全文
posted @ 2018-09-29 10:30 Peace* 阅读(99) 评论(0) 推荐(0) 编辑