1.把字符串转为list
str="fengxuelianyi"
strList=list(str)
2.不需要创建list,可以直接使用for循环
for c in thestring:
do_something_with(c)
3.也可以使用for子句
results = [do_something_with(c) for c in thestring]
4.也可以使用map函数
results = map(do_something, thestring)