Python 字符串常识

1,Python String不能修改。如果一定要修改,需要使用以下方法:

ss=list(s)

ss[x]=y

s="".join(ss)

posted @ 2014-11-26 22:18  zombies  阅读(101)  评论(0编辑  收藏  举报