TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #208 · 29 јан.

Ранее мы уже говорили о том, как выполнить какой-либо код перед открытием интерактивной консоли. Расскажу еще один способ! На самом деле, даже запустив интерпретатор в обычном режиме с выполнением скрипта из файла вы можете в любом месте активировать интерактивный режим. Или даже несколько по очереди. За это отвечает модуль code. Как это может пригодиться? 🔸 Вам не хватает pdb и хочется больше "власти" 🔸 Нужно запросить у юзера данные в достаточно сложном виде. В этом случае можно попросить его создать что ему надо и сохранить в определённую переменную, с которой потом и работать. 🔸 Нужна изолированная среда для выполнения каких-либо действий. 🔸 Просто забавы ради😁 Запускается консоль очень просто import code ic = code.InteractiveConsole() try: ic.interact() except SystemExit: pass Выход обратно на предыдущий уровень происходит как обычно, вызов функции exit() или клавиши Ctrl+D(Ctrl+Z для Windows). Я набросал простой пример с некоторым функционалом 🔹 Меняются символы приглашения 🔹 В неймспейсы добавляются дополнительные объекты 🔹 Считается время, проведённое в интерактивном режиме 🔹 Скрипт просит юзера заполнить переменную и по выходу распечатывает её значение Код здесь ↗️ Для запуска сохраните код в файл и запускайте как обычный скрипт. python my_console.py Для быстрого запуска можно сделать отдельный алиас alias py="python3 /home/username/my_console.py" #tricks#source

Резултати

Пронајдени 8 слични објави

Пребарај: #stc

当前筛选 #stc清除筛选
Addis Standard

@addisstandardeng · Post #21167 · 23.01.2026 г., 13:13

#UAE abruptly cuts aid to vital hospitals after withdrawing from #Yemen The sudden exit of the United Arab Emirates (UAE) from Yemen early this month came with a decision to end years of humanitarian support for key hospitals, abruptly cutting off access to specialised healthcare for many Yemenis. The UAE withdrew its forces after its separatist allies, the Southern Transitional Council, were routed in southern Yemen as #Riyadh sharply opposed the Emirati role in the #STC’s seizure of territory under the control of the Saudi-backed government. UAE-funded hospitals played a vital role for Yemenis after more than a decade of conflict had damaged public health infrastructure and left many unable to afford private healthcare. Patients from far and wide sought these these facilities in search of high-quality, free healthcare. Many undertake long journeys to access specialised surgeries... https://web.facebook.com/AddisstandardEng/posts/pfbid07VH6x99PAkGsbTnAkN2FrHgamxE1MamXC2iwAk5cbJWG28AQzAKzEzvqysmTuBfFl

Addis Standard

@addisstandardeng · Post #21034 · 10.01.2026 г., 09:29

#Yemeni southern separatists in #Riyadh announce disputed disbanding of #STC -The STC, which #SaudiArabia says is backed by the #UAE, launched an offensive against Yemeni gov’t troops in December. Yemen’s main southern separatists ‍have decided to disband following talks in Saudi Arabia, the secretary-general of the organisation has said, although the announcement was dismissed by its spokesman, who called it “ridiculous”. The Southern Transitional Council (STC) Secretary-General Abdulrahman Jalal al-Subaihi said in a broadcast on Yemeni television on Friday that the dissolution of the group was taken to preserve peace and security in the south and in neighbouring countries. He praised “the measures taken by the Kingdom of Saudi Arabia and the solutions it has provided that meet the needs of the people of the South”. https://www.aljazeera.com/news/2026/1/9/yemens-separatist-southern-transitional-council-announces-its-dissolution

🔠🔠🔠🔠🔠🔠🔠🔠 Introducing StarTechCoin (STC) ⭐️Get Ready for the Future of Tech Investment!⭐️ 🚀 Launching on Binance Smart Chain (BSC) 🔥 🔥 🔥 🔥 🔥 🔥 🔥 Secure, Fast, and Reliable Transactions🙌 🔥 🔥 🔥 🔥 🔥 🔥 🔥 What is Star Tech Coin STC is your gateway to cutting-edge tech investments. Join us in revolutionizing the tech industry with blockchain power.🔄 🗓Stay Tuned! 👋 🚀ICO Launch Date Announced Soon 💮All Social Link's Our website: Coming Soon 🔥Telegram link https://t.me/Startechco 🐤Twitter link https://x.com/startechcoinSTC?t=dvA_E7PpPpsbI5V5NII-6Q&s=35 📌Linkedin Link https://www.linkedin.com/in/rav-dhillon-7360431bb?utm_source=share&utm_campaign=share_via&utm_content=profile&utm_mediukm=android_app #StarTechCoin#StC#Crypto#BinanceSmartChain#ICO#Blockchain

Nasy 美股与期权

@nasyso · Post #346 · 02.09.2022 г., 15:48

Nasy 美国股市非日内交易记录 虽然可能会有一些日内,但是应该很少,毕竟没那么多时间… O 是 open C 是 close + 为买 #BTO 或者 #BTC - 为卖 #STO 或者 #STC 大部分情况下会省略+ 主要交易包括 $SPY $SPX 期权 https://t.me/nasyso/347 $TQQQ 与 $SQQQ ETF(偶尔会加上期权) https://t.me/nasyso/348 $OXY & $XOM & $SLB & ... 股票与期权 https://t.me/nasyso/349 $AAPL $META $GOOGL $GOOG $NVDA $AMD 等期权 https://t.me/nasyso/350 $USEA 超长期持有 https://t.me/nasyso/351 以及其他乱七八糟的 #期权https://t.me/nasyso/352 #股票https://t.me/nasyso/353

Red Nile

@rednile12 · Post #10530 · 30.12.2025 г., 14:49

This isn't stability. It's managed fragmentation enforced by Gulf powers now in open competition. The war for Yemen's future has become the theater for the Saudi-UAE rivalry. --- 🔗 For the full context that predicted this collapse: Red Nile| Dec 6, 2025 — The Hadhramaut Offensive https://t.me/Rednile12Chat/9491?single #Yemen#Hadhramaut#STC#SaudiArabia#UAE#BreakingNews#ProxyWar#GulfRivalry#RedNileMedia

Минская прачечная

@minsky_laundry · Post #6970 · 08.01.2026 г., 11:01

⚡️Саудовская коалиция: лидер Южного переходного совета (STC) Айдарус аль-Зубайди бежал в ОАЭ через Сомалиленд Коалиция под руководством Саудовской Аравии заявила, что аль-Зубайди, исчезнувший вчера и обвинённый Президентским руководящим советом Йемена (PLC) в государственной измене, "бежал ночью" на судне из Адена в порт Бербера (Сомалиленд). Далее, под надзором офицеров ОАЭ, он сел на самолёт в Могадишо, а оттуда — на военный аэропорт в Абу-Даби. Это произошло после того, как аль-Зубайди не явился на мирные переговоры в Эр-Рияде. Саудовцы обвиняют ОАЭ в помощи бегству, что усиливает раскол в антихуситской коалиции. STC ранее отрицал бегство лидера, утверждая, что он остаётся в Адене. #Йемен#АльЗубайди#STC#СаудовскаяАравия#ОАЭ#Сомалиленд#Госизмена#Аден#Геополитика#БлижнийВосток