• AI & Python • – Telegram
• AI & Python •
20.7K subscribers
1.01K photos
381 videos
63 files
574 links
••• علاقه‌مند به دنیای هوش مصنوعی، تحول دیجیتال و زبان برنامه‌نویسی پایتون با نیم نگاهی به حوزه شبکه و
امنیت.

Library & archive: @SecBookSs

تبلیغات:
@n_h_raad


.
Download Telegram
• AI & Python •
تو مثل یه الگوریتم بودی… اولش پیچیده، ولی وقتی فهمیدمت، دیدم چقدر everything makes sense. #برنامه_نویسی #لاس ┏━━━━━━━━┓ 〓 @AIPyth0n ┗━━━━━━━━┛
تو مثل یه تابع pure بودی…
هر بار که بهت فکر میکردم،
خروجیت قابل پیش‌بینی بود:
آرامش.

#برنامه_نویسی #لاس
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
15😁7🔥6👍4
🤍 چطوری بسازیم

⚪️برای ساختش یک عکس معمولی از خودتون و دوستتون و یکی از پرامپت های زیر رو به یکی از هوش مصنوعی های ادیت عکس بدید ( الان بهترینش نانو بانانا پرو هست)

⚪️ نسخه کاپلی :
Make this:
A dimly lit music studio scene photographed with a phone flash. Camera angled up and toward the center of the room (top-down diagonal perspective).

Girl: She sits on a large, richly patterned red Persian rug exactly like the reference, legs stretched out in front of her, leaning on her hands, looking confidently at the camera. She is wearing thick-soled black ankle boots, a fitted long-sleeved black top, a short fitted black skirt, and slightly torn black tights (grunge style). A warm spotlight shines from the left, casting soft shadows on the rug and giving her hair a soft glowing highlight.

Boy: Add a boy (based on the uploaded reference photo). He sits on the rug close to her, naturally positioned, playing a musical instrument (match the instrument to the vibe of his reference photo). Pose should look candid and realistic, as if he’s focused on the instrument.

Environment:
On the left side of the room, place a full drum set with natural wood shells and black hardware.
On the right side of the frame, place a rolling red keyboard on black metal stands.
Several cables are scattered loosely across the rug.
A microphone stand is placed on the right side of the room.
Lighting should stay low, warm, cozy, and dramatic, emphasizing the warm tones of the carpet and the highlights in their hair.

Important:
“Do not change or modify the facial or hair details of either reference photo.”

⚪️ نسخه پسرونه :
Make this:
A dimly lit music studio scene photographed with a phone flash. The camera angle is up and toward the center of the room (a top-down diagonal perspective).

A boy (generated exactly from the uploaded reference photo, without changing facial or hair details) is sitting alone on a large, richly patterned red Persian rug. He sits comfortably on the rug, legs relaxed, focused on playing his instrument (match the instrument to his vibe in the reference photo). His posture should feel natural, candid, and absorbed in the music.

He is wearing casual but stylish studio-appropriate clothing (keep the style consistent with the reference photo).

A warm spotlight shines from the left side, casting soft shadows on the rug and creating a subtle glow around his hair.

Environment:
On the left side of the room, place a full drum set with natural wood shells and black hardware.
On the right side of the frame, place a rolling red keyboard on black metal stands.
Several audio cables are scattered casually across the rug.
A microphone stand is placed to the right side of the room.
The studio lighting remains low, warm, cozy, and dramatic, emphasizing the warm tones of the Persian carpet and the highlights on his hair.

Important:
“Do not change or modify the facial or hair details of the reference photo.”

⚪️ دخترونه اولی :
Make this: A dimly lit music studio scene photographed with a phone flash. Camera angled up and toward the center of the room (top-down diagonal perspective). The girl sits on a large, richly patterned red Persian rug, her legs stretched out in front of her, leaning on her hands, looking confidently at the camera. She is wearing thick-soled black ankle boots, a black long-sleeved, fitted shirt, and a short, fitted black skirt, and black tights that are torn in some places (grunge style). A warm spot light shines from the left, casting soft shadows on the rug and highlighting her hair with a glow. On the left side of the room, place a complete drum set with natural wood shells and black hardware. On the right side of the frame, place a rolling red keyboard on black metal stands. Several cables are scattered across the rug. A microphone stand is on the right side of the room.  The overall lighting is low, cozy, and dramatic, emphasizing the warm tones of the carpet and the shine on her hair. "Do not change or modify the facial and hair details of the reference photo."


┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
Please open Telegram to view this post
VIEW IN TELEGRAM
👍32🍌1
This media is not supported in your browser
VIEW IN TELEGRAM
وقتی هوش مصنوعی به مشاهیر ایرانی جان میبخشه

#Gemini #NanoBananaPro #هوش_مصنوعی #AI #ChatGPT #Artificial_Intelligence
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
👍76👏2
⌨️#Python_Quiz

خروجی این کد پایتون چیه؟ 🤔

#برنامه_نویسی #پایتون #Python #Programming #quiz
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
👍5
🟡 Options:
Anonymous Quiz
42%
A
21%
B
24%
C
13%
D
👍6
🗞 خلاصه گزارش کیفیت زندگی دیجیتال سرف‌شارک (DQL):

ایران در گزارش جدید «کیفیت زندگی دیجیتال» سال ۲۰۲۵ رتبه ۱۰۰ از ۱۲۱ کشور را گرفته و تقریباً در همه‌ی بخش‌ها نسبت به سال‌های قبل افت کرده است.

‏⦿‏DQL چه چیزهایی را بررسی میکند؟
۱) مقرون‌به‌صرفه بودن اینترنت
۲) کیفیت اینترنت
۳) زیرساخت دیجیتال
۴) امنیت دیجیتال
۵) آمادگی برای هوش مصنوعی (امسال اضافه شده)

‏⦿ مهم‌ترین نکات گزارش:
رتبه جهانی ایران: ۱۰۰ و در آسیا رتبه ۳۰؛ روند چندسال اخیر کاملاً نزولی بوده است.
اینترنت گران: ایران در بخش مقرون‌به‌صرفه بودن رتبه ۹۱ دارد؛ یعنی اینترنت نسبت به درآمد مردم گران است.
کیفیت پایین: کیفیت اینترنت رتبه ۱۱۰؛ سرعت موبایل رتبه ۷۵ و اینترنت ثابت ۱۰۲، و تأخیر شبکه هم بسیار ضعیف است.
امنیت دیجیتال بسیار پایین: ایران در امنیت دیجیتال رتبه ۱۱۹ را دارد؛ فقط گواتمالا و یمن پایین‌ترند.
زیرساخت دیجیتال ضعیف: رتبه ۸۱؛ درحالی‌که چند سال قبل رتبه استفاده از اینترنت بسیار بهتر بود.
هوش مصنوعی: رتبه ۷۹؛ نشان می‌دهد در پذیرش و آمادگی برای AI عقب هستیم.

┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
💔31👍1👎1😢1
🤍 ساخت عکس به سبک سریال Stranger Things که الان ترنده

⚪️برای ساختش یک عکس معمولی از خودتون و دوستتون و یکی از پرامپت های زیر رو به یکی از هوش مصنوعی های ادیت عکس بدید ( الان بهترینش نانو بانانا پرو هست) پرامپت هاش برای دختر و پسر متفاوت نیستند و برای هر دو قابل استفادست

پرامپت اول :
Use the exact face from the uploaded photo, messy hair with slight nosebleed, intense emotional eyes, standing in dark foggy forest with red lightning far away, worn 80s denim jacket over band t-shirt, soft cinematic rim light, floating particles, hyperrealistic skin texture and freckles, shot on Kodak Portra film, Stranger Things season 4 atmosphere --ar 4:5 --style raw --v 6 --q 2

پرامپت عکس دوم :
Use the exact face from the uploaded photo, standing alone in Upside Down school hallway, red spores floating, flickering fluorescent lights, backpack, scared but determined expression, dramatic red-teal lighting, photorealistic horror beauty --ar 3:4 --style raw

پرامپت عکس سوم :
Use the exact face from the uploaded photo, inside glowing 80s arcade at night, neon signs reflecting in eyes, oversized headphones + flannel shirt, confident smirk, warm pink-blue lighting, nostalgic dreamy mood, hyperrealistic details --ar 4:5 --v 6

پرامپت عکس چهارم :
Use the exact face from the uploaded photo, standing in Creel House attic Upside Down, huge glowing red portal behind, holding flashlight, layered 80s clothes, brave and ready expression, insane volumetric detail and god rays, Stranger Things poster come to life --ar 3:4 --v 6 --q 2

پرامپت عکس پنجم :
Use the exact face from the uploaded photo, in school science lab, safety goggles on head, rolled-up plaid shirt, soft natural window light, smart mysterious half-smile, warm vintage film look, effortlessly cool --ar 4:5 --style raw

پرامپت عکس ششم :
Use the exact face from the uploaded photo, sitting on Starcourt Mall fountain edge after the fire, soft red emergency lights + light rain, bomber jacket, thoughtful melancholic mood, wet reflections, emotional 80s nostalgia --ar 4:5 --v 6


┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
Please open Telegram to view this post
VIEW IN TELEGRAM
👍32
• AI & Python •
تو مثل یه تابع pure بودی… هر بار که بهت فکر میکردم، خروجیت قابل پیش‌بینی بود: آرامش. #برنامه_نویسی #لاس ┏━━━━━━━━┓ 〓 @AIPyth0n ┗━━━━━━━━┛
زندگی یه سیستم بزرگه؛
باگ میخوره، کند میشه،
یه جاهایی deadlock میکنه،
و گاهی مجبوری یه چیزهایی رو kill process کنی
تا بتونی دوباره ادامه بدی.

#برنامه_نویسی
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
👍10
💡 ۱۰ تا از مهم‌ترین ساختار داده‌هایی که هر روز ازشون استفاده میکنیم

‏⦿ List (لیست): نگه داشتن فیدهای توییتر یا هر جریان داده‌ی پشت‌سرهم.

‏⦿ Stack (پشته): امکان Undo/Redo توی ادیتورهای متن.

‏⦿ Queue (صف): مدیریت کارهای پرینتر یا ارسال اکشن‌های کاربر داخل بازی.

‏⦿ Hash Table (هش‌تیبل): سیستم‌های کشینگ برای دسترسی سریع‌تر به داده.

‏⦿ Array (آرایه): انجام عملیات ریاضی و پردازش‌هایی که سرعت بالا می‌خوان.

‏⦿ Heap (هیپ): زمان‌بندی تسک‌ها و مدیریت اولویت‌ها.

‏⦿ Tree (درخت): نگه‌داری ساختار HTML یا تصمیم‌گیری توی مدل‌های هوش مصنوعی.

‏⦿ Suffix Tree (درخت پسوندی): جستجوی فوق‌سریع رشته‌ها داخل یک متن.

‏⦿ Graph (گراف): دنبال کردن روابط مثل دوستی‌ها، یا پیدا کردن سریع‌ترین مسیر.

‏⦿ R-Tree (آر-تری): پیدا کردن نزدیک‌ترین همسایه در داده‌های مکانی.

‏⦿ Vertex Buffer (ورتکس بافر): ارسال داده‌های هندسی به GPU برای رندر گرفتن.

#DataStructure #DataScience #Data
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
👍43
⌨️#Python_Quiz

خروجی این کد پایتون چیه؟ 🤔

#برنامه_نویسی #پایتون #Python #Programming #quiz
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
👍4
🟢 Options:
Anonymous Quiz
21%
A
39%
B
32%
C
8%
D
👍61🔥1
اگه حوصلتون سر رفت
این متن رو بدید به جمینای و بعد هر جوری که دوست دارید ادامه بدید تا یکم اپیلاسیون بشید :)

میخوام برام نقش خدا رو بازی کنی
شروع کن


#Gemini #NanoBananaPro #هوش_مصنوعی #AI #ChatGPT #Artificial_Intelligence
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
👍41👎1
🔄 5 روش برای سوآپ کردن دو مقدار در پایتون

۱) متغیر موقت
temp = a; a = b; b = temp

روشی استاندارد و کاملاً ایمن. مناسب برای هر نوع داده.

۲) عملیات حسابی (+ / -)
a = a + b; b = a - b; a = a - b

بدون متغیر اضافه، اما برای اعداد بزرگ یا float قابل اعتماد نیست.

۳) Tuple Unpacking (پایتونیک‌ترین روش)
a, b = b, a

سریع، خوانا و بهترین انتخاب در پایتون. پایتون پشت‌صحنه به‌صورت atomic مقادیر رو جابه‌جا میکنه.

۴) XOR Swap
a = a ^ b; b = a ^ b; a = a ^ b

مخصوص int. بدون متغیر اضافه، ولی خوانایی پایین و استفاده محدود.

۵) ضرب و تقسیم ( / //)*
a = a * b; b = a // b; a = a // b

عملیاتی و بدون متغیر؛ اما در صفر، float و اعداد بزرگ مشکل‌ساز میشه.

بهترین انتخاب:
‏☜︎︎︎ Tuple Unpacking = سریع‌ترین، خواناترین و کاملاً استاندارد در پایتون.

#برنامه_نویسی #پایتون #Python #ML #NLP #Programming #Chatbot
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
👍31
This media is not supported in your browser
VIEW IN TELEGRAM
آقای پزشکیان توی سخنرانی روز دانشجو گفته : هوش مصنوعی اگه درست بود تا حالا مارو خورده بود!

#هوش_مصنوعی #AI #ChatGPT #Artificial_Intelligence
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
😐15🤣3🍌3👍2😴1
Prompt :
مواد تشکیل دهنده ( این غذا ) رو به صورت یک اینفوگرافیک واقع گرایانه با تایپوگرافی فارسی و فونت دانا" در ابعاد 9:16 بساز
#هوش_مصنوعی #Nano_Banana #پرامپت_نویسی #Prompt #Gemini #AI #ChatGPT #Artificial_Intelligence #OpenAI
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
👍83
♨️ فقط اینقدر 🤏 مونده تا هوش مصنوعی جای برنامه‌نویس هارو هم بگیره!

▪️مدل جدید Claude Opus 4.5 رسماً منتشر شده ، ولی آمار و ارقام این ابزار در زمینه های مختلف یه‌کم ترسناک‌تر از چیزیه که فکرشو میکردیم

▪️در بخش کد‌ نویسی تو بنچ مارک های مختلف زده 80.9% یعنی پیچیده‌ترین باگ‌ها و تسک‌های برنامه‌نویسی واقعی رو مثل آب خوردن حل میکنه ؛)

▪️تازه در Terminal Coding هم 59.3% زده…یعنی عملاً توی محیط ترمینال خودش میره ، دستور می‌نویسه، اجرا میکنه ، و کارو جمع میکنه!

+ خلاصه کع تا اینجا 80 درصد کار رو رفته و فقط 20 درصد دیگه مونده تا شما بهش بگی چی میخوای و خودش همه چیزو تحویل بده!

┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
👍6🤣43🔥1😡1
🤍پرامپتی برای پیدا کردن منابع علمیِ معتبر برای هر تحقیق یا مقاله

⚪️اگه دانشجو، پژوهشگر یا نویسنده‌ی مقاله‌ی دانشگاهی هستی و همیشه دغدغه‌ی پیدا کردن منابع معتبر از سایت‌هایی مثل Google Scholar، JSTOR، IEEE یا ResearchGate رو داری… این پرامپت دقیقاً کاری می‌کنه که هوش مصنوعی مثل یه دستیار تحقیقاتی حرفه‌ای برات منبع پیدا کنه

⚪️با این پرامپت می‌تونی برای هر موضوعی که بدی، منابع علمی، به‌روز و قابل استناد بگیری؛ حتی با فرمت APA یا MLA آماده تحویل
You are my academic research assistant.
Your task is to find credible, peer-reviewed, and up-to-date academic sources for the text or topic I will provide.
These sources must be suitable for university papers, research projects, or academic essays.

Please follow these steps:

1. Ask me to provide either:
- A research topic or question (e.g., “Impact of AI on education”)
- Or a paragraph/excerpt I’ve already written and want sources for.

2. Once I give you the topic or text:
- Identify the main keywords and subtopics.
- Search for peer-reviewed references from:
Google Scholar, JSTOR, IEEE Xplore, ResearchGate, Springer, ScienceDirect, or government/university publications.

3. Provide 5–10 recent and reliable references (preferably from the last 5–7 years) with:
- Full APA citation
- A one-sentence summary
- A note on relevance to my topic

4. If I request, format citations in APA, MLA, or Chicago.

5. End by asking:
👉 “Would you like me to extract direct quotes or statistics from these sources for your paper?”

If I request Persian sources:
👉 “Find Persian academic sources from Iranian universities or journals.”

‼️نکته: اگه خواستی منابع فارسی و مناسب برای دانشگاه‌های ایران پیدا کنه، بنویس:
“Find Persian academic sources from Iranian universities or journals.”


┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
Please open Telegram to view this post
VIEW IN TELEGRAM
👍52
🤍 چطور بسازم ؟

⚪️ این پرامپت ها ادیت خاصی روی عکس انجام نمیدن فقط یک افکت زیبا بهش اضافه میکنن که باعث قشنگ تر شدنش میشه برای انجامش هم عکس و پرامپت مورد نظر رو به جمنای بدید

پرامپت پسره :
Keep the face 100% identical to the reference. No changes to identity, facial shape, eyes, nose, lips, or hairstyle — only change lighting and pose. With zero percent change in the faces of the references:
A man wearing a thick, chunky knit black-and-cream wide-striped sweater (with large bold texture), standing by a rocky coast in heavy fog and light rain, a gray-blue choppy ocean with dark larger rocks in the background, a completely cloudy gray sky, cool diffused light, a fully matte and desaturated color palette with a bluish-gray shift, heavy fog and strong haze, very high film grain and gritty texture, a deep melancholic and somber mood, hands together in front with interlocked fingers, three-quarter profile silhouette looking at the ocean, a calm introverted expression, a natural pose with a slight forward lean, each time a different non-repetitive pose, realistic and hyper-detailed, shot on 35mm film, with the cool feel of Fujifilm Superia 400 or Portra 800, very high texture, atmospheric and cinematic, –ar 3:4 –style raw –v 6 –q 2
⚪️ پرامپت دختره اولی :
Keep the face 100% identical to the reference. No changes to identity, facial shape, eyes, nose, lips, or hairstyle — only change lighting and pose. With zero percent change in the faces of the references:

A girl with small freckles, wavy hair coming out from under a Royal Blue Bandana with Paisley pattern, bandana with white and red border tied at the back, tight white ribbed halter top with thin silver necklace, also wearing a thin carbony blue chiffon shirt, dramatic makeup, long thin eyeliner, shiny blue shadow, glossy pink-brown lipstick, sitting on dark sofa cushioned with cream pillow, white wall background with three colorful art boards (nature and moon), blue–white–black color theme with warm undertone.

Photo filled with soft mist and high analog grain like Kodak Portra 400, soft vintage cinematic filter with medium contrast and rich colors, close-up selfie from front and low angle, casual playful pose with direct gaze, sharp focus on face and bandana, soft bokeh in the background, hyper-real, 8K, soft natural lighting. Every shot with a different non-repetitive pose. Eye color, hair color, and main face features must not change by even 1 perc
ent.

⚪️ پرامپت دختره دومی :
Keep the face 100% identical to the reference.
No changes to identity, facial shape, eyes, nose, lips, or hairstyle — only change lighting and pose.
With zero percent change in the faces of the references:

A very beautiful girl, soft slightly wavy hair blown by strong wind covering half her face, eyes closed, calm immersed pose, slightly open natural lips, no makeup.
Makeup: matte flawless skin.

Minimal autumn style:
light beige long trench coat with large open collar,
underneath dark gray knit round-neck pullover,
neutral cool colors,
light breeze in hair,
soft diffused cloudy light of autumn day,
background completely blurred bushes and leafless trees in autumn, cool gray green tones,
sad calm cinematic mood,
shallow depth of field,
strong bokeh,
focus on hair and lips,
high fashion professional portrait photography,
cinematic, 8k quality, ar 3:4, stylize 300, v6.

Hair color, eye color, and main facial features must remain 100% unchanged.


┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
Please open Telegram to view this post
VIEW IN TELEGRAM
👍43
⌨️#Python_Quiz

خروجی این کد پایتون چیه؟ 🤔

#برنامه_نویسی #پایتون #Python #Programming #quiz
┏━━━━━━━━┓
@AIPyth0n
┗━━━━━━━━┛
👍41