字符串位置

1 a="hello"
2 b=a[0]#0
3 print(b)
4 a="hello"
5 b=a[0:2]#0<= x<2
6 print(b)
原文地址:https://www.cnblogs.com/wfl9310/p/8709330.html