Programming – Telegram
Programming
350 subscribers
501 photos
66 videos
50 files
186 links
سایت نداره این کانال اصلا
Download Telegram
How to use .ini files in python ⚡️

چگونه با فایل هایی با پسوند .ini در پایتون استفاده کنیم ⚡️

#config
#ini
#configparser

@PySources
How to use .yaml files in python ⚡️

چگونه از فایل هایی با پسوند .yaml در پایتون استفاده کنیم ⚡️

#yaml

@PySources
from PIL import Image, ImageDraw, ImageFont

def write(
text:str,
x_y:tuple,
color:tuple,
font_path:str, font_size:int,
file_input:str, file_output:str
) -> None:
img = Image.open(file_input)
draw = ImageDraw.Draw(img)
font = ImageFont.truetype(font_path, font_size)
draw.text(x_y, text, color, font)
img.save(file_output)
img.close()

~ how to write on images with python

~ نوشتن روی تصاویر با پایتون
calendar (built-in module)

ماژول داخلی calendar

#calendar

@PySources
استاد یه برنامه نویس باگ/ارور هاشه

Bugs/errors are masters of a programmer
• how to know type of files and MIME type with python
× mimetypes is a standard library

• نحوه تشخیص تایپ فایل ها و MIME تایپ فایل ها در پایتون
× mimetypes استاندارد لایبرری هست
New features related to type hints in python3 new version:

🔗 https://docs.python.org/3/whatsnew/3.10.html#new-features-related-to-type-hints

قابلیت جدید پایتون ۳ مربوط به تایپ هینت ها
تاریخچه اینترنت-جادی
Jadi mirmirani
تاریخچه اینترنت
با تشکر از:
@jadinet
ویدیو:
https://news.1rj.ru/str/PyArchive/64
منبع پادکست:
https://youtu.be/08kkmPyT9EI
https://www.tiobe.com/tiobe-index/
پایتون محبوب ترین زبان سال ۲۰۲۱ شد
What is the result?

1: True
2: False
3: None
4: Error

Comment your answer
کامنت کنید
Source: instagram of python_hub

https://news.1rj.ru/str/PySources/431?comment=70312
This media is not supported in your browser
VIEW IN TELEGRAM
Programming
What is the result? 1: True 2: False 3: None 4: Error Comment your answer کامنت کنید Source: instagram of python_hub https://news.1rj.ru/str/PySources/431?comment=70312
#quiz

به صورت ذهنی حساب کنید:
a = set("systematic")
print(len(a))


1: 10
2: 9
3: 8
4: 5

Comment the answer 💬
جوابتونو کامنت کنید 💬

https://news.1rj.ru/str/PySources/587?comment=70422
phonenumbers package is practical for phone numbers in python

ماژول کاربردی برای کار با شماره تلفن ها در پایتون phonenumbers

Installation:
pip3 install phonenumbers

(Use pip on windows instead of pip3
در ویندوز به جای pip3 از pip استفاده کنید)

Documentation:
🔗: https://pypi.org/project/phonenumbers
How to calculate maximum and minimum of the numbers using 2 ways in python ⚡️

آموزش بدست آوردن حداقل و حداکثر اعداد با استفاده از دو روش در پایتون ⚡️

عزیزانی که پایتون ۳.۱۰ به پایین دارن:
لاین ۱۱ رو کامنت کنید
لاین ۱۲ رو از کامنت دربیارید
لاین ۲۱ رو کامنت کنید
لاین ۲۲ رو از کامنت دربیارید

و بعد اجرا کنید
2021-10-23 06-13-57.mkv
23.9 MB
آموزش گرفتن اسکرین شات زیبا از کد با دو روش ممکن:

1: استفاده از اکستنشن vscode
2: استفاده از سایت کربن
نسخه تحت وب ویژوال استادیو کد درست شد

https://vscode.dev/