摘要: 1:编写for循环,利用索引遍历出每一个字符 msg='hello egon 666' msg = 'hello egon 666'j = len(msg)for i in range(0,j - 1): print( msg[i]) 2:编写while循环,利用索引遍历出每一个字符 msg='he 阅读全文
posted @ 2017-06-08 08:26 ALXPS 阅读(328) 评论(0) 推荐(0) 编辑