for i, j in {'chr':'\t', ':' : '\t', '..' : '\t'}.iteritems():
text = text.replace(i, j)
print text
转载于:https://blog.51cto.com/scpman/1117491
for i, j in {'chr':'\t', ':' : '\t', '..' : '\t'}.iteritems():
转载于:https://blog.51cto.com/scpman/1117491