📜  字符串切片 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:12.503000             🧑  作者: Mango

代码示例3
s = 'Hello'
  #    01234    ## Showing the index numbers for the 'Hello'
  s[1:4]  ## 'ell' -- starting at 1, up to but not including 4
  s[0:2]  ## 'He'