python

Back Open Paginator
23.09.2025 07:17
mr_daemon (@mr_daemon@untrusted.website)

Note to self: don't use naive datetimes in Python, just don't. It's so low effort to use UTC internally and you won't have to wonder "WAIT what happens to any of my time deltas when DST kicks in?" at 1am

#Python




Show Original Post


23.09.2025 06:06
r (@r@fed.brid.gy)

Each week, I'm playing word association with the tasks to pick the musical theme. Originally, this started because one of the tasks was literally a line from a musical. Perl Weekly Challenge 340 was more difficult though... #PerlWeeklyChallenge #raku #perl #python #elixir

packy.dardan.com/b/bj




Show Original Post


23.09.2025 06:06
r (@r@bsky.brid.gy)

Each week, I'm playing word association with the tasks to pick the musical theme. Originally, this started because one of the tasks was literally a line from a musical. Perl Weekly Challenge 340 was more difficult though... #PerlWeeklyChallenge #raku #perl #python #elixir

packy.dardan.com/b/bj




Show Original Post


23.09.2025 05:35
StartPy (@StartPy@mastodon.arabipro.social)

الدرس (1)
إعداد بيئة التعلّم
لغة بايثون حالها حال جميع اللغات، تحتاج إلى بيئة تشغيل (SDK) إضافة إلى أي محرّر نصوص بحسب ما تفضّله -حيث يمكنك استخدام NotePad- والأفضل أن تستخدم بيئة تطوير متكاملة (IDE) لأننا نريد في المستقبل القريب استخدام لغة بايثون باحتراف.

لتنزيل بيئة التشغيل (SDK)، اذهب إلى الرابط أدناه ثمّ اضغط على الزر الأصفر (Download Python 3.13.7) فهي آخر نسخة مستقرّة عند كتابة هذا النصّ:
python.org/downloads/
سيتم تنزيل النسخة المتوافقة مع نظام التشغيل المثبّت على جهازك، ويمكنك اختيار نظام التشغيل يدوياً.

أمّا بخصوص بيئة التطوير (IDE) فيوجد العديد من الخيارات، ولكنّني أفضّل كمبتدئ أن استخدم أحد اثنين:
- Thonny: قم بتنزيله بالضغط على اسم نظام تشغيل جهازك من الرابط التالي [صورة مرفقة]
thonny.org/

- VS Code أو أحد انشعاباته:
إنّ (VS Code) هو بيئة تطوير احترافية ومتكاملة من ناحية دعم لغات البرمجة، ولها العديد من المميزات من أهمّها دعمها للإضافات (Extensions) التي تجعلها قابلة للتوسعة بشكل رهيب، وهو مفتوح المصدر مقدّم من شركة ويندوز (الشبابيك المكسّرة)، ولكن هناك العديد من الانشعابات الأصلية منها حيث تمّ فيها حذف تتبّعات شركة مايكروسوفت منها، وأنا أفضل استخدام كوديوم (VS Codium)، يمكنك أن تنزله من الرباط التالي، وبعد تنزيله وتثبيته اختر بالماوس (Extensions) من القائمة العمودية على يدك اليسار أو اضغط على (CTRL+Shift+X) من لوحة المفاتيح وقم بثبيت (Python) و(Python Debugger) [صورة مرفقة].
لتنزيل (VS Codium) اضغط على الرابط التالي ثم اختر النسخة المتوافقة مع نظام تشغيل جهازك:
github.com/VSCodium/vscodium/r

وهكذا نكون قد انتهينا من تجهيز كل الإعدادات التي نحتاجها لكتابة برامج بلغة بايثون، وإذا واجهك أي سؤال فلا تتردّد في طرحه.

#python #programming_languages #لغات_برمجة #بايثون
#Thonny #VS_Codium





Show Original Post


23.09.2025 05:00
hn50 (@hn50@social.lansky.name)

Show HN: Python Audio Transcription: Convert Speech to Text Locally

Link: pavlinbg.com/posts/python-spee
Discussion: news.ycombinator.com/item?id=4

#python




Show Original Post


23.09.2025 04:14
villares (@villares@pynews.com.br)

#viridis Code at: github.com/villares/sketch-a-d
More sketch-a-day: abav.lugaralgum.com/sketch-a-d
If you like this, support my work:
paypal.com/donate/?hosted_butt
liberapay.com/Villares
wise.com/pay/me/alexandrev562 #Processing #Python #py5 #CreativeCoding





Show Original Post


23.09.2025 04:01
linuxgal (@linuxgal@techhub.social)

Deriving Egyptian fractions with #Python #79

(Egyptian fractions are a finite sum of distinct unit fractions)

#!/usr/bin/env python3
import sys
from sympy import Rational
from sympy.ntheory.egyptian_fraction import egyptian_fraction
try:
n,d = map(int, sys.argv[1].split('/'))
if d == 0: raise ValueError("zero denominator")
except Exception as e:
print(f"Usage: {sys.argv[0]} numerator/denominator ({e})")
sys.exit(1)
r = Rational(n,d)
e = egyptian_fraction(r)
print(f"{r} = {' + '.join(f'1/{x}' for x in e)}")





Show Original Post


23.09.2025 03:25
driceman (@driceman@mastodon.social)

Criando uma coisinha bem simples no Python.
Script para verificar a existência ou ausência do Headers de Segurança de site.
Código do Script , uma versão inicial, para você estudar e aprimorar em wcrodrigues.dev.br/codigos/ver





Show Original Post


23.09.2025 02:57
r (@r@bsky.brid.gy)

The new pip-installable #Python package passagemath-bootstrap maps a generic #PURL (package URL) to a package name in software distributions such as #Debian, #Ubuntu, #Fedora, #VoidLinux, etc. and formats system package manager commands to install the package. #PEP725 pypi.org/project/pass...

passagemath-bootstrap




Show Original Post


23.09.2025 02:15
clonbg (@clonbg@masto.es)

Mi primer CRUD con Python myblog.clonbg.es/mi-primer-cru #Programación #Python #PyQT clonbg.es





Show Original Post


23.09.2025 00:54
talkpython (@talkpython@fosstodon.org)

We are live on YouTube in 6 minutes. Join us and be part of the show with @mkennedy and Peter Wang, Calvin Hendrix-Parker, and Anthony Shaw. #python #podcast

Topic: 20 things Python developers should learn in 2025

youtube.com/watch?v=4BQrovxemXY




Show Original Post


23.09.2025 00:50
sharlatan (@sharlatan@mastodon.social)

lovers masters and twisters, your turn in the final rounds

codeberg.org/guix/guix/issues/




Show Original Post


1 ...1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 ...1555
UP