Telegram Group & Telegram Channel
Что делает [::-1] ?

❗️ Ответ: [::-1] используется для изменения порядка массива или последовательности на обратный.

🔍 Например:
import array as arr
My_Array=arr.array('i',[1,2,3,4,5])
My_Array[::-1]


Вывод : array('i', [5, 4, 3, 2, 1])

🌟 [::-1] перепечатывает обратную копию упорядоченных структур данных, таких как массив или список. Исходный массив или список остается неизменным.

@python_job_interview
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/python_job_interview/904
Create:
Last Update:

Что делает [::-1] ?

❗️ Ответ: [::-1] используется для изменения порядка массива или последовательности на обратный.

🔍 Например:

import array as arr
My_Array=arr.array('i',[1,2,3,4,5])
My_Array[::-1]


Вывод : array('i', [5, 4, 3, 2, 1])

🌟 [::-1] перепечатывает обратную копию упорядоченных структур данных, таких как массив или список. Исходный массив или список остается неизменным.

@python_job_interview

BY Python вопросы с собеседований


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/python_job_interview/904

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

The STAR Market, as is implied by the name, is heavily geared toward smaller innovative tech companies, in particular those engaged in strategically important fields, such as biopharmaceuticals, 5G technology, semiconductors, and new energy. The STAR Market currently has 340 listed securities. The STAR Market is seen as important for China’s high-tech and emerging industries, providing a space for smaller companies to raise capital in China. This is especially significant for technology companies that may be viewed with suspicion on overseas stock exchanges.

Telegram has exploded as a hub for cybercriminals looking to buy, sell and share stolen data and hacking tools, new research shows, as the messaging app emerges as an alternative to the dark web.An investigation by cyber intelligence group Cyberint, together with the Financial Times, found a ballooning network of hackers sharing data leaks on the popular messaging platform, sometimes in channels with tens of thousands of subscribers, lured by its ease of use and light-touch moderation.telegram from tw


Telegram Python вопросы с собеседований
FROM USA