方法1:s= 'asdfer'for i in s : print(i)方法2:index =0while 1: print(s[index]) index+=1 if index ==len(s):break
本文共 175 字,大约阅读时间需要 1 分钟。
方法1:s= 'asdfer'for i in s : print(i)方法2:index =0while 1: print(s[index]) index+=1 if index ==len(s):break
转载于:https://www.cnblogs.com/yuhoucaihong/p/10275800.html