Python uses zero-based indexes: the first item is at index 0, the second is at index 1, and so on. The index of the last item is the length of the sequence minus 1— that is, len(s) - 1. Learning Python - Página 68de Mark Lutz - 2007 - 752 páginasVisualização parcial - Sobre este livro
| Chris Fehily - 2002 - 444 páginas
...individual item is identified by its position. or index. in the sequence. Python uses zero-based indexes: the first item is at index 0. the second is at index L and so on. The index of the last item is the length of the sequence minus 1 — that is. len(s) -... | |
| |