python
الذهاب إلى القناة على Telegram
channel interested in programming languages such as Python the creator : @DuDrD
إظهار المزيدلم يتم تحديد البلدالتكنولوجيات والتطبيقات97 291
343
المشتركون
لا توجد بيانات24 ساعات
لا توجد بيانات7 أيام
لا توجد بيانات30 أيام
أرشيف المشاركات
343
import telebot
from telebot import types
#@iq_python - @DuDrD
bot = telebot.TeleBot("Token")
#@iq_python - @DuDrD
@bot.message_handler(commands=['start'])
def start(message):
list = [
{"name": "python", "url": "https://t.me/iq_python"},
{"name": "أذكار", "url": "https://t.me/Y5Y1Y"}
]
bttn = types.InlineKeyboardMarkup()
for btns in list:
n = btns["name"]
u = btns["url"]
btn = types.InlineKeyboardButton(n, url=u)
bttn.add(btn)
bot.reply_to(message, "أهلاً حبيبي اضغط على الزر اليعجبك .", reply_markup=bttn)
bot.infinity_polling()
بوت يصنعلك ازرار لا نهائية من داخل قائمة تحتوي على الاسماء والروابط وبس
تكدر تسوي زر جديد بهطريقة
{"name" : "اسم الزر", "url" : "رابط الزر"}
بعدها تضيف ( , ) اذا تريد تسوي زر ثاني بهشكل
{"name" : "اسم الزر", "url" : "رابط الزر"},
{"name" : "بايثون", "url" : "https://t.me/iq_python"}343
Ar 🇮🇶
كود بوت ترجمة الى 5 لغات الي هي
الانكليزية ، الفرنسية ، العربية ، الصينية ، التركية
من تدزله كلمة راح يدزلك معناها بهذة اللغات بدون Api بـ مكتبة (
googletrans )
-
En 🇬🇧
Code bot translated into 5 languages
English, French, Arabic, Chinese, Turkish
Whoever enters a word, it will provide you with its meaning in these languages without the API using the Google Trans library .
@iq_python - @DuDrD343
import telebot
bot = telebot.TeleBot("Token")
@bot.message_handler(func=lambda message: message.text.isdigit())
def num(message):
num = int(message.text)
rel = ""
for i in range(1, 11):
rel += f"{num} × {i} = {num*i}\n"
bot.reply_to(message, rel)
@bot.message_handler(func=lambda message: not message.text.isdigit())
def unnum(message):
bot.reply_to(message, "اكتب بس رقم .")
bot.infinity_polling()
بوت بس تدزله رقم يدزلك جدوله الضرب343
import telebot
bot = telebot.TeleBot("Token")
@bot.message_handler(func=lambda message: True)
def logo(message):
logo = f"https://bcassetcdn.com/asset/logo/4b4b23e4-f3d3-42b1-9c5d-615ac62ef5ac/logo?v=4&text={message.text}"
bot.send_photo(message.chat.id, logo)
bot.infinity_polling()
بوت يصنعلك لوقو بالاسم التدزه .343
import math
from turtle import *
def hearta(k):
return 15*math.sin(k)**3
def heartb(k):
return 12*math.cos(k)-5*\
math.cos(2*k)-\
math.cos(3*k)-\
math.cos(4*k)
speed(0)
bgcolor('black')
for i in range (10000):
goto(hearta(i)*20,heartb(i)*20)
for j in range(5):
color("#f73487")
goto(0,0)
done()
كود رسم قلب
- @SeyedAliShakeriii343
قَالَ رسولُ الله ﷺ : إنَّ مِنْ أفْضَلِ أيَّامِكُمْ يَومَ الجُمُعَةِ ، فَأكْثِرُوا عَلَيَّ مِنَ الصَّلاةِ فِيهِ ، فَإنَّ صَلاَتَكُمْ مَعْرُوضَةٌ عَلَيَّ.
343
import random
num = int(input("حط عدد البطاقات ؟ : "))
for i in range(num):
a = ""
for j in range(16):
i = str(random.randint(0, 9))
a += i
if (j+1) % 4 == 0 and j != 15:
a += ""
b = str(random.randint(1, 12)).zfill(2)
c = str(random.randint(2024, 2030))
d = str(random.randint(100, 999))
aa = f"{a}|{b}|{c}|{d}"
print(aa)
كود ينشأ الك فيزات وهمية عشوائية بس حط عدد البطاقات التريد وهاهيه .343
import random
num = int(input("عدد الحسابات التريدها : "))
a = []
for _ in range(num):
email = ''.join(random.choice('abcdefghijklmnopqrstuvwxyz') for _ in range(12)) + '@gmail.com'
password = ''.join(random.choice('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789') for _ in range(15))
a.append(f"الايميل : {email} - الباسورد : {password}")
for aa in a:
print(aa)
كود ينشأ الك حسابات
ايميل : باسورد
مادري بشنو يفيد بس سهل وحلو وسويته عسريع
عندك فكرة ! اكتبها جوا