Python Slice Object
Posted 2023-02-27 22:23:14
0
9K
A slice object is used to specify how to slice a sequence. You can specify where to start the slicing, and where to end. You can also specify the step, which allows you to e.g. slice only every other item. Here's an example of the usage:
x = ("hi", "hello", "greetings", "hola")
y = slice(3)
print(x[y])
>> ("hi", "hello", "greetings")
Căutare
Categorii
- Arts
- Business
- Computers
- Jocuri
- Health
- Home
- Kids and Teens
- Money
- News
- Recreation
- Reference
- Regional
- Science
- Shopping
- Society
- Sports
- Бизнес
- Деньги
- Дом
- Досуг
- Здоровье
- Игры
- Искусство
- Источники информации
- Компьютеры
- Наука
- Новости и СМИ
- Общество
- Покупки
- Спорт
- Страны и регионы
- World
Citeste mai mult
Всё о Еве. All About Eve. (1950)
Стареющая звезда Бродвея Марго Ченнинг имела все: успех, друзей, молодого любовника. Скромная и...
Interesting Central American Countries / Cities
Ranking of Central American countries by interestingness
Due to the fact that I spent as...
Company Information Security
From cybersecurity solutions to risk management systems, these services are tailored to meet the...
How Can I Make Meetings More Inclusive and Prevent Dominance by a Few Voices?
In many meetings, a handful of voices tend to dominate the conversation, often unintentionally...
TV BRICS международная сеть. Прямая трансляция. Россия. Русский, Португальский (Бразильский). Rede internacional TV BRICS. Transmissão ao vivo. Rússia. russo, português (brasileiro).
Российский телеканал TV BRICS транслируемый в Бразилии. Потенциальная аудитория 111 млн...