printings characters of the string skipping one character

前端 未结 0 1619
伪装坚强ぢ
伪装坚强ぢ 2021-01-16 23:49

astring = "Hello world!"

print(astring[3:7:2])

Python prints out "l". Anyone can explain to me why?. I can\'t understand

相关标签:
回答
  • 消灭零回复
提交回复
热议问题