@RTenfrancais · Post #80051 · 25.04.2026 г., 14:00
❌Les médias israéliens diffusent des images qui montreraient une nouvelle frappe de #Tsahal contre la centrale nucléaire iranienne de Bouchehr. RT en français • Osez questionner !
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #32 · 7 фев.
Скорее всего уже слышали, что складывать строки через + это плохая практика. Падение производительности, и всё такое. Без лишних слов, давайте измерять: from timeit import timeit def t1(): # складываем 10 строк через + из переменной t = 'text' for _ in range(1000): s = t + t + t + t + t + t + t + t + t def t2(): # склеиваем список строк через метод join arr = ['text'] * 10 for _ in range(1000): s = ''.join(arr) def t3(): # складываем через + но не из переменной а непосредственно инлайн объекты for _ in range(1000): s = 'text' + 'text' + 'text' + ... # всего 10 раз Теперь каждую строку склейки запустим по 10М раз >>> timeit(t1, number=10000) 0.21951690399964718 >>> timeit(t2, number=10000) 1.4978306379998685 >>> timeit(t3, number=10000) 0.2213820789993406 Хм, а нам говорили что через "+" это плохо и медленно ))) 😁 Тут стоит учитывать, что речь идёт о склейке множества длинных строк. Давайте изменим условия: def t4(): t = 'text'*100 for _ in range(1000): s = t + t + t + t + t + t + t + t + t def t5(): arr = ['text'*100] * 10 for _ in range(1000): s = ''.join(arr) def t6(): for _ in range(1000): s = 'text'*100 + 'text'*100 + ... # всего 10 раз >>> timeit(t4, number=10000) 12.795130728000004 >>> timeit(t5, number=10000) 2.642637542999182 >>> timeit(t6, number=10000) 0.2184546610005782 Вот, уже другой разговор, сразу видна разница, в среднем в 6 раз. Но погодите, почему последний тест t6() по скорости такой же как и t3()? Ведь строки теперь в 100 раз длиннее! Это вопросы оптимизации кода, какие простые изменения ускоряют или замедляют выполнение программы. Мы столкнулись с примером обхода обращения к переменной. Например, именно так работает директива #define в С++, во время компиляции подставляя значение переменной вместо ссылки на неё. В Python это тоже работает, но часто ли вы сможете встретить такой способ работы со строками? К сожалению, способ почти только теоретический. В целом, тесты показали то, что мы хотели. Делаем выводы самостоятельно. Полный листинг 🌍 #tricks
Пребарај: #tsahal
@RTenfrancais · Post #80051 · 25.04.2026 г., 14:00
❌Les médias israéliens diffusent des images qui montreraient une nouvelle frappe de #Tsahal contre la centrale nucléaire iranienne de Bouchehr. RT en français • Osez questionner !
Hashtags
@kurash_and_Co · Post #959 · 26.03.2026 г., 20:22
🟠Échanges réciproques de frappes : l'escalade se poursuit entre #Tsahal et le Hezbollah Alors qu'Israël et le Hezbollah ne semblent avoir aucune intention ni de faire baisser les tensions ni de mettre fin aux combats, malgré les appels de la communauté internationale, les habitants de la capitale libanaise sont descendus dans la rue. Ils protestent contre l’expulsion de l'ambassadeur d’Iran. Les précisions avec notre envoyé spécial sur place, Igor Kourachenko. RT en français • Osez questionner !
Hashtags
@corrAntoine · Post #621 · 16.03.2026 г., 07:23
⚡️L’offensive israélienne s’élargit au #Liban Les troupes de #Tsahal multiplient les incursions dans le sud du pays. Face à l'urgence, le gouvernement libanais tente d'amorcer une médiation internationale, mais les obstacles restent nombreux. Notre envoyé spécial Antoine Cléraux nous en dit plus sur la situation sur place. RT en français • Osez questionner !
@rt_fra · Post #40762 · 07.05.2026 г., 09:20
⚡️Tsahal-Hezbollah : frappes au Liban Selon un communiqué de presse de l’armée israélienne, #Tsahal a frappé 15 sites du #Hezbollah dans plusieurs zones du Sud-Liban. RT en français • Osez questionner !
Hashtags
@voir_yeux · Post #12555 · 16.04.2026 г., 09:27
🇮🇱🇱🇧 Tsahal a annoncé avoir intercepté un drone lancé depuis le Liban. #drone#liban#tsahal
@corrAntoine · Post #603 · 10.03.2026 г., 21:28
🔴#Tsahal multiplie les ordres d'évacuation sur fond de guerre avec le #Hezbollah libanais Alors que le Sud du #Liban est la cible de frappes israéliennes, les ordres d'évacuation se multiplient dans la région. Pourtant, de nombreux habitants refusent de partir. RT en français • Osez questionner !
Hashtags
@american_observer · Post #5260 · 02.03.2026 г., 00:59
The IDF confirmed the murder of several high-ranking Iranian officials as part of the military operation : - Ali Shamhani: adviser to the supreme head of security, secretary of the defense council, former commander of the CSIR, minister of defense and head of the navy. Responsible for the Iranian nuclear project and weapons development. - Mohammad Pakpur: the commander of the CSIR, former commander of the ground forces, led the brutal repression of the protests and commanded strategic firing positions against Israel. - Saleh Asadi: the chief of intelligence of the general staff Khatam Al-Anbiya, senior intelligence officer of the Iranian military high command, participated in the development of the strategy against the United States and Israel and in the planning of recent attacks. - Mohammad Shirazi: head of the supreme leader's military office since 1989, in charge of communication between senior commanders and Khamenei. - Aziz Naserizadeh: the Minister of defense, former commander of the air force, was responsible for the defense industry, including long-range missiles and weapons for the proxy forces. - Hossein Jabel Aamelian: head of the SPND (organization for innovation and research in defense), responsible for nuclear, biological and chemical weapons programs. - Reza Mosaffari: former head of the SPND, promoted Iran's efforts to create nuclear weapons. #tsahal#murder#iranian#officials#operation 📱American Оbserver - Stay up to date on all important events 🇺🇸