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

Резултати

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

Пребарај: #techleadership

当前筛选 #techleadership清除筛选
AI & Law

@ai_and_law · Post #336 · 21.06.2024 г., 07:04

Appian CEO Challenges AI Industry to Prioritize Trust Matt Calkins, CEO of Appian, has called on the AI industry to prioritize responsible development and trust. At a critical moment for AI, Calkins unveiled guidelines promoting data transparency, user consent, and respect for intellectual property. "We must ensure AI flourishes by building trust," Calkins stated. His four principles include disclosing data sources, using private data with consent, anonymizing personally identifiable data, and compensating for copyrighted information. These steps aim to shift AI development from a data race to a trust race. As AI faces increasing scrutiny, Calkins positions Appian as a leader in responsible AI, encouraging others to join this movement. Trust, he argues, will unlock AI's full potential and redefine industry success. #AI#ResponsibleAI#DataPrivacy#Appian#TechLeadership

INHA University in Tashkent

@inha_uz · Post #10083 · 13.02.2026 г., 09:44

🚀 ICT WEEK UZBEKISTAN 2026 The future isn’t coming. It’s being built — right here, right now. This September, Tashkent becomes the meeting point of global innovation. Visionary leaders, fast-growing startups, top tech companies, policymakers, and international partners will gather to shape the next era of digital transformation in Central Asia and beyond. 🌍 Discover breakthrough technologies 🤝 Meet decision-makers and global partners 💡 Turn bold ideas into real projects 📈 Unlock new markets and opportunities This is not just an event. Whether you are a government leader, investor, entrepreneur, tech professional, or innovator — ICT Week Uzbekistan is where you need to be. ✨ Why attend? ✔️ High-level networking with global tech leaders ✔️ Startup & innovation showcases ✔️ Strategic forums and policy dialogues ✔️ Investment and partnership opportunities ✔️ Access to the fast-growing Central Asian tech market 📍 Tashkent, Uzbekistan 📅 September 22–25, 2026 Be part of the conversations that will define your tomorrow. Join ICT Week Uzbekistan 2026. Let’s connect. Let’s collaborate. Let’s build the future — together. #ICTWeekUzbekistan2026#ICTWeek#DigitalTransformation#Innovation#TechLeadership#CentralAsia#FutureIsNow#Uzbekistan

IT Ladies Uzbekistan

@itladiesuzbekistan · Post #257 · 09.02.2026 г., 14:44

🚀 ICT WEEK UZBEKISTAN 2026 The future isn’t coming. It’s being built — right here, right now. This September, Tashkent becomes the meeting point of global innovation. Visionary leaders, fast-growing startups, top tech companies, policymakers, and international partners will gather to shape the next era of digital transformation in Central Asia and beyond. 🌍 Discover breakthrough technologies 🤝 Meet decision-makers and global partners 💡 Turn bold ideas into real projects 📈 Unlock new markets and opportunities This is not just an event. Whether you are a government leader, investor, entrepreneur, tech professional, or innovator — ICT Week Uzbekistan is where you need to be. ✨ Why attend? ✔️ High-level networking with global tech leaders ✔️ Startup & innovation showcases ✔️ Strategic forums and policy dialogues ✔️ Investment and partnership opportunities ✔️ Access to the fast-growing Central Asian tech market 📍 Tashkent, Uzbekistan 📅 September 22–25, 2026 Be part of the conversations that will define your tomorrow. Join ICT Week Uzbekistan 2026. Let’s connect. Let’s collaborate. Let’s build the future — together. #ICTWeekUzbekistan2026#ICTWeek#DigitalTransformation#Innovation#TechLeadership#CentralAsia#FutureIsNow#Uzbekistan

Venture Village Wall 🦄

@venturevillagewall · Post #3969 · 24.01.2025 г., 10:00

Trump Signs AI Development Plan President Trump has signed an executive order to establish the U.S. as the world leader in AI. A 180-day deadline is set for creating an AI Action Plan aimed at strengthening America's global dominance in this field. Additionally, Trump has tasked his AI advisor to eliminate policies from the previous administration. This announcement was made during his speech at the World Economic Forum, affirming plans for leadership in AI and cryptocurrency. For more details, check the full articles: Forklog News #AI#Crypto#Policy#TechLeadership #AI#Crypto#Policy#TechLeadership#Trump#Innovation#Economy#NationalSecurity#ExecutiveOrder#Davos#ActionPlan#America#FutureTech#Leadership#GlobalDominance

Venture Village Wall 🦄

@venturevillagewall · Post #3903 · 17.01.2025 г., 13:00

Market Trends Impact Developer Salaries Developers face salary stagnation as the job market grows competitive. With more candidates than job openings, mid-senior professionals find job switches yield minimal salary increases. Becoming a tech lead is rare and corporations limit hiring senior candidates. Stability may lie in entrepreneurship or pet projects instead. Consider exploring these options for long-term financial health. #JobMarket#DeveloperSalaries#Entrepreneurship#PetProject#IT#CareerGrowth#TechIndustry#EmploymentTrends#SalaryTrends#BusinessModel#Stability#Competition#JobSwitch#MidCareer#SeniorDevelopers#MarketAnalysis#ITCareers#FinancialPlanning#TechJobs#Startup#TechLeadership