python遍历字符串中的字符的代码

171 阅读1分钟
把内容过程中比较常用的内容收藏起来,如下内容是关于python遍历字符串中的字符的内容。 

word = raw_input("Enter a word: ")

print "nHere's each letter in your word:"
for letter in word:
    print letter