文章列表
#coding=utf-8
def countSubStr(str1):
dict1 = {}
list1 = []
s_len = len(str1) + 1
if s_len<2:
return dict;
for i in range(0,s_len):
for j in range(i+2,s_len):
list1.append(str1[i:j])
for s in list1:
# print('%s-%s' % (s,list1.count(s)))
dict1.setdefault(s, ...