字符串操作

1 a="good"
2 for item in a:
3     print(item)
1 # a="good"
2 # for item in a:
3 #     print(item)
4 # v=range(100)
5 # print(v)
6 a=input(">>>>")
7 print(a)
8 l=len(a)
9 print(l)
#     print(item)
# v=range(100)
# print(v)
# a=input(">>>>")
# print(a)
# l=len(a)
# print(l)
a=input(">>>")
for item in range(0,len(a)):
    print(item,a[item])

 

posted @ 2018-04-03 16:51  未来的技术  阅读(70)  评论(0编辑  收藏  举报