我的代码是
import time
a = raw_input("Enter a string: ")
b = len(a)
#print 1st letter of string
time.sleep(2)
#print 2nd letter of string
#continue doing that until the last character in the string
我需要做什么才能让我的代码在python2.7中做到这一点?
如能按正确方向操作,将不胜感激。你知道吗
谢谢你。你知道吗
Tags:
您可以迭代字符串本身:
示例:
相关问题 更多 >
编程相关推荐