Создание скриншотов с использованием модуля pyscreenshot
Модуль pyscreenshot, обеспечивая кросс-платформенную функциональность, позволяет легко создавать скриншоты как всего экрана, так и его отдельных частей. Для работы этого модуля необходимо установить библиотеку Pillow.
Для захвата изображения используется метод grab, для его отображения – show, а для сохранения – save. В метод grab можно также передать аргумент bbox, чтобы ограничить захват только определенной областью экрана.
Этот модуль оказывается особенно полезным, например, при логировании скриптов, использующих Selenium.
Selenium может открывать браузер и выполнять различные операции в нем, и использование pyscreenshot позволяет создавать скриншоты для последующего анализа и отладки.
#python#pyscreenshot
#Python
🖥
Test your typing knowledge in Python
Cool free project Python Type Challenger is a quiz where you have to write code. A good way to remember the basics of type hints (dictionaries, variables, return) and drill into the depths of the typing ocean (recursive, decorators, constructors, etc.).
🔗Link
-----
Main channel: @repo_science
Coupons: @freecoupons_reposcience
-----
Python bilan yo‘lingizni boshlayapsizmi? Mana sizga kerakli maslahatlar!
Python — oddiy sintaksis, kuchli kutubxonalar va keng imkoniyatlarga ega dasturlash tili. Yangi boshlayotgan bo‘lsangiz, quyidagilarni yodda tuting:
1. Har kuni oz bo‘lsa ham kod yozing
Python’da kuchayishning eng yaxshi yo‘li — amaliyot. Har kuni 30 daqiqa mashq qilish ham yetarli.
2. input(), if, for, def— bu sizning do‘stlaringiz!
Dasturlash asoslari — sizga har qanday murakkab loyihaga eshik ochadi.
3. Real project boshlang!
Masalan: kalkulyator, To-do ilova, Telegram bot yoki oddiy CRUD tizimi. O‘rganishdan ko‘ra, real loyiha qilish 3x ko‘proq foyda beradi.
4. error ko‘rsangiz — xafa bo‘lmang😁
Python xatoliklarni aniqlashni o‘rgatadi. Har bir xatolik — yangi bilim! 🔥
5. Ustozlar va hamjamiyatdan foydalaning
👉Stack Overflow
👉 YouTube’dagi Python kurslar
👉Exercism, Codewars, LeetCode — Python masalalar uchun zo‘r saytlar!
💡Esda tuting:
"Birinchi 100 ta kodlaringiz ishlamasligi normal holat. Muhimi — siz har kuni urinyapsiz."
#python
💻@dasturlash_hayoti— dasturchilar hayoti va dasturlash olami haqida qiziqarli loyiha!
#Python
tstock is a tool to easily generate stock charts from the command line.
tstock is a Python tool that allows you to easily generate stock charts from the command line.
Just enter tstock aapl to get a three-month candlestick chart of $AAPL in your terminal
▪Github
-----
Main channel: @repo_science
Coupons: @freecoupons_reposcience
-----
#python
🐍
Hitchhiker's Guide to Python
Python Best Practices Guidebook
Una guía de mejores prácticas para instalar, configurar y usar Python a diario, incluidos pip, numpy, virtualenv y más.
🔗Github
▪Docs
-----
Main channel: @repo_science
Coupons: @freecoupons_reposcience
-----
#python
🐍
Introducing LazyPredict! 🚀
A Python library that enables you to train, test, and evaluate multiple ML models at once using just a few lines of code.
pip install lazypredict
🔗Github
-----
Main channel: @repo_science
Coupons: @freecoupons_reposcience
-----