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

Резултати

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

Пребарај: #nostr

当前筛选 #nostr清除筛选
TokenPocket

@tokenpocket_channel · Post #1110 · 12.01.2024 г., 10:35

🆕 TokenPocket Chrome Extension's Latest (1.2.3) Version has enabled Nostr Protocol by default! #Nostr 👉https://extension.tokenpocket.pro/#/ ✅With no complex setting steps, all the TokenPocket users can get their own Nostr address easily! 🎯Your Points Matter! TokenPocket will keep working on listening to communities' voices and optimizing users' experience. #TokenPocket#nostr How to enable Nostr Protocol on TokenPocket Mobile wallet? Guide 👉https://help.tokenpocket.pro/en/wallet-operation/protocol/nostr 【Details】https://twitter.com/TokenPocket_TP/status/1745755553039802879 【Powered By】Crypto Box

TokenPocket

@tokenpocket_channel · Post #990 · 09.12.2023 г., 11:40

🔵Enjoy Nostr Protocol on TokenPocket_TP. TokenPocket now supports #Nostr Protocol on Mobile Wallet and Chrome Extension Wallet. You can easily enable your #Nostr address on #TokenPocket! Guide👇 https://tokenpocket-gm.medium.com/enjoy-nostr-protocol-on-tokenpocket-b53044dd10f0 【Details】https://twitter.com/TokenPocket_TP/status/1733450921391358056 【Powered By】Crypto Box

TokenPocket

@tokenpocket_channel · Post #1018 · 15.12.2023 г., 09:29

🆕New Tool: #Nostr Assets Batch Transfer Tool 👉https://tp-lab.tokenpocket.pro/nostr/index.html#/ ✅Performing multiple #Nostr transfers in a single transaction. ✅ Simplicity and efficiency. Guide👉https://help.tokenpocket.pro/en/wallet-operation/tptool/nostr-assets 🟦All-in-one, all-in TokenPocket. 🟦🟦🟦🟦 👉https://www.tokenpocket.pro/ #nostrassets#nostr ​NostrAssets 【Details】https://twitter.com/TokenPocket_TP/status/1735592342890111296 【Powered By】Crypto Box

TokenPocket

@tokenpocket_channel · Post #921 · 15.11.2023 г., 08:57

#Nostr Protocol is now available on TokenPocket_TP! 🔥TokenPocket now provides the Nostr support for #Bitcoin, dogecoin network, and all the EVM-compatible networks! How to enable Nostr in your TokenPocket wallet? 🔵Android: Tap “Me” - “Experience” - Enable Nostr. You can get your Nostr address by tapping “Details” on the Assets Page. 🔵iOS: Tap “Me” - “Setting” - Turn on “Nostr”. You can get your Nostr assets by tapping “Details” on the Assets page. #taproot#bitcoin#Nostr 【Details】https://twitter.com/TokenPocket_TP/status/1724712691523100844 【Powered By】Crypto Box

TokenPocket

@tokenpocket_channel · Post #1441 · 29.09.2024 г., 06:28

🌟Nostr Protocol is Live On TokenPocket! >Both on Mobile Wallet and Chrome Extension. And Nostr Protocol is available for all the EVM-compatible networks, #Bitcoin, and also #Dogecoin on TokenPocket! 🔥Nostr is a simple, open protocol for a global, decentralized, and censorship-resistant social networking system. 📝Here is the tutorial to guide you on how to enable/support #Nostr on your TokenPocket wallet. 👉https://help.tokenpocket.pro/en/wallet-operation/protocol/nostr

TokenPocket

@tokenpocket_channel · Post #1063 · 02.01.2024 г., 01:46

🔥#Nostr Protocol is Live On ​TokenPocket_TP! >Both on Mobile Wallet and Chrome Extension. 🔥Nostr is a simple, open protocol for a global, decentralized, and censorship-resistant social networking system. Here is the tutorial to guide you on how to enable/support #Nostr on your TokenPocket wallet. 👉https://help.tokenpocket.pro/en/wallet-operation/protocol/nostr 📣All in TokenPocket! #Nostr#EnableNostr#Bitcoin 👉https://www.tokenpocket.pro/ 👉https://extension.tokenpocket.pro/ ​NoScription 【Details】https://twitter.com/TokenPocket_TP/status/1741998782320136275 【Powered By】Crypto Box

TokenPocket

@tokenpocket_channel · Post #884 · 02.11.2023 г., 04:28

#Bitcoin Eco is on fire!!🔥🔥🔥 TokenPocket Mobile Wallet now provides a super easy-to-use experience for most #Nostr-based DApps. Recently, we also noticed that there is a new product live on #Nostr Protocol. NostrAssets 📣You can discover Nostr Assets on NostrAssets with #TokenPocket and access the new era of #Bitcoin Eco. > Enter "NostrAssets" on your Discover page then you can find it! ✅✅ Just the beginning! 💥 Let's work together and bring more highlights to #Bitcoin! #Taproot ❓How to enable #Nostr on your TokenPocket? Tutorial👉https://help.tokenpocket.pro/en/wallet-operation/protocol/nostr 【Details】https://twitter.com/TokenPocket_TP/status/1719933875059855422 【Powered By】Crypto Box

TokenPocket

@tokenpocket_channel · Post #654 · 28.06.2023 г., 07:53

#AMA TokenPocket × NostrSwap ⏰Jun 29th, 1 PM UTC 🪑 Venue: https://t.me/tokenPocket_en ✅Comment your Qs about NostrSwap, #BRC20 and #Nostron Twitter before AMA. ✅Join Telegram and enjoy the live AMA 🎁100 USDT to 5 best Twitter Qs & 5 best Live Qs

Libreware

@libreware · Post #1454 · 03.05.2025 г., 12:07

Zapstore Permissionless and social app store built on the #nostr protocol For #Android#Linux and #Mac https://zapstore.dev Download https://zapstore.dev/download/ Sources https://github.com/zapstore Secure by default Everything you install comes from trusted sources and is cryptographically verified. Not satisfied with the default? Choose your own curators, or mix and match! Censorship has no place in our world. Relevant to you Supercharged by the nostr open protocol, recommendations come right from your social connections — or use it in totally private way. With our growing catalog, you will never run out of great apps. Support your devs Connect with your favorite developers: send them direct feedback, request features and support them through micropayments, all without any middlemen. #apk#store

12
ПретходнаСтраница 1 од 2Следна