代码示例:(标识:python_string_slice)
python_string_slice.py
b = "Hello, World!"
print(b[2:5])
运行结果: