对字符串的内容进行遍历。
s="今天是星期一,大家都很忙!"
count=0
while count<len(s):
print(s[count])
count+=1
运行结果:
标签:count,0while,遍历,print,内容,字符串 From: https://www.cnblogs.com/libinghui/p/17811198.html
对字符串的内容进行遍历。
s="今天是星期一,大家都很忙!"
count=0
while count<len(s):
print(s[count])
count+=1
运行结果:
标签:count,0while,遍历,print,内容,字符串 From: https://www.cnblogs.com/libinghui/p/17811198.html