رجکس یا Regular Expression به فارسی یعنی «عبارت باقاعده». یه ابزار قدرتمند برای جستجو، تطبیق، و فیلتر کردن متنهاست. با رجکس میتونی الگوهایی تعریف کنی که توی رشتههای متنی دنبالشون بگردی مثل پیدا کردن شماره تلفن، ایمیل، تاریخ، یا حتی کلمات خاص.
#Rejex
🖥 @Computer_MCH
Please open Telegram to view this post
VIEW IN TELEGRAM
❤4❤🔥3🔥1
Media is too big
VIEW IN TELEGRAM
from zipfile import ZipFile
🖥 @Computer_MCH
Please open Telegram to view this post
VIEW IN TELEGRAM
❤2😭1
Media is too big
VIEW IN TELEGRAM
pip install bs4
pip install requests
pip install lxml
🖥 @Computer_MCH
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3
Media is too big
VIEW IN TELEGRAM
from bs4 import BeautifulSoup
import requests
res = requests.get("URL").text
soup = BeautifulSoup(res,"lxml")
Tag = soup.select('tagName)
Id = soup.select('#idName')
Class = soup.select('.className)
🖥 @Computer_MCH
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3
Media is too big
VIEW IN TELEGRAM
from PIL import Image
نصب کتابخانه:
pip install pillow
🖥 @Computer_MCH
Please open Telegram to view this post
VIEW IN TELEGRAM
❤2
Media is too big
VIEW IN TELEGRAM
import csv
file = open('file.csv',
uncoding='utf-8')
objcsv = csv.reader(file)
🖥 @Computer_MCH
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3
Media is too big
VIEW IN TELEGRAM
import PyPDF2
file = open('file.pdf', 'rb')
objpdf = PyPDF2.PdfFileReader(file)
نصب کتابخانه:
pip install PyPDF2
🖥 @Computer_MCH
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3
#News #Microsoft #Windows
🖥 @Computer_MCH
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4🤯2
👍4❤2
❤4👍3
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3
Computer MCH
سلام دوستان؛ وقت همگی بخیر. 💡 تصمیم گرفته شد که روند کانال تغییر کنه؛ تو کانال مطالب آموزشی داریم و بقیهی مطالب هر روز بیشتر و کاملتر میشه. اگه وقت داشته باشیم ترفند یا کوئیز هم براتون میذاریم؛ ولی برای اخبار ممکنه من و بقیهی ادمین ها وقت کافی برای پست…
┌
├
├
└
🖥 @Computer_MCH
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3🔥3😍1