如何快速的将一个str转换为list

# -*- coding: cp936 -*-
#python 27
#xiaodeng
#如何快速的将一个str转换为list


str='python'

print list(str)#['p', 'y', 't', 'h', 'o', 'n']

 

posted @ 2015-12-03 10:05  Xiao|Deng  阅读(2131)  评论(0编辑  收藏  举报