import re , strings , os ,sys
sentence = "abcdefghijkl"
for i in range(0,len(sentence),3):
twoletters = sentence[i:i+2] + sentence[i+1:i+3]
print twoletters
这给我:
abbc
deef
ghhi
jkkl
我想要的地方:
ab
bc
cd
de
ef
fg
gh
hi
ij
jk
kl
这种拼接怎么做?