🐍 Python & Raspberry 🐍
8.21K subscribers
1.92K photos
125 videos
623 files
1.23K links
Python- Raspberry Pi-AI-IOT
ادمین : فرهاد ناصری زاده
@farhad_naserizadeh
@farhad3412

گروه پایتون
@Python_QA
تبادل
@mmtahmasbi
کانال مرتبط
@new_mathematical
@micropython_iot
@c_micro
اینستاگرام
http://Instagram.com/python_raspberry
Download Telegram
#آموزش

🔴 string formating
قسمت دوم


txt = "this is a testing example really is example....wow!!! this is really testing"
print(txt.replace('is', 'was'))
ouput : thwas was a testing example really was example....wow!!! thwas was really testing

print(txt.rfind('z'))
ouput : 64

print(txt.rfind('is', 10,63))
ouput : 59

print(txt.rindex('z'))
#id rindex cant find z give error but rfind give -1

print(txt.split())
ouput : ['this', 'is', 'a', 'testing', 'example', 'really', 'is', 'example....wow!!!', 'this', 'is', 'really', 'testing']

print(txt.split('i',2))
ouput : ['th', 's ', 's a testing example really is example....wow!!! this is really testing']

print(txt.split('i'))
['th', 's ', 's a test', 'ng example really ', 's example....wow!!! th', 's ', 's really test', 'ng']

txt = "this is \ntxting example....\nwow!!!"
print(txt.splitlines())
output : ['this is ', 'txting example....', 'wow!!!']

txt = "This Is txting Example....WOW!!!"
print(txt.swapcase())
output : tHIS iS TXTING eXAMPLE....wow!!!

txt = "tabriz"
print(txt.zfill(20))
output : '00000000000000tabriz'

print(r"how use \n without go to new line", end="\n\n")
output : how use \n without go to new line
#with end you can add somthing at end of string for example i add two new line

for i in range(4):
print(i, end=", ")

output : 0, 1, 2, 3


با تشکر از مهندس
@milad_ghasemi_1

❇️❇️ @raspberry_python
گیت هاب تمام اکانت های پرایوت خود را مجانی کرد...
Link0
Link1
@raspberry_python
Forwarded from Python Socket
time in Python.pdf
429.4 KB
دوستان سلام. ماژول time بعنوان یکی از ماژولهای استاندارد کتابخانه پایتون شناخته می شود. با استفاده ازاین ماژول می توانید زمان را در برنامه های کاربردی خود گنجانده و از متدهای مرتبط با time بهره مند شوید. در مطلب پیوست این ماژول را بررسی کرده و همراه با ارایه نکاتی در خصوص زمان، برخی متدهای کاربردی ماژول time را نیز ارزیابی کرده ایم. مطالعه بفرمایید.
@pythonsocket
android programing in python
@raspberry_python
pyqt tutorials
@raspberry_python
Forwarded from Sadra Codes
🔺 موتور ساخته شده توسط بورد های الکترونیکی آردوینو 😃

🔰 @lnxpylnxpy
python tkinter tutorial
LinkPreview
@raspberry_python
گیت هاب قابلیت جدیدی برای تعیین وضعیت کاربرانش تعیین کرده
با این ویژگی جدید میتونید ب بازدید کننده ها اعلام کنید الان مشغول کاری هستید یا مسافرت هستید یا هر مورد دیگری
@raspberry_python
#آموزش

🔰 How to Access SMTP in Gmail with Python


from smtplib import SMTP

host="smtp.gmail.com"
port= 587

username= "abc@gmail.com"
password= "abc123"

from_email= username
to_list= ("example1@gmail.com", "example2@gmail.com")

CON= SMTP(host, port)
CON.starttls()
CON.login(username, password)
CON.sendmail(from_email, to_list, "Hey")
CON.quit()


❇️ @raspberry_python
#آموزش
روشن شدن وبکم لپتاپ و مشاهده تصویر با پایتون

import cv2
import numpy as np
cap = cv2.VideoCapture(1)
while True:
ret, frame = cap.read()
cv2.imshow('frame',frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap.release()
cv2.destoryAllWindows()

❇️ @raspberry_python
#آموزش
روشن شدن وبکم لپتاپ و ایجاد دو تصویر رنگی و سیاه سفید با پایتون
import cv2
import numpy as np
cap = cv2.VideoCapture(1)
while True:
ret, frame = cap.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
cv2.imshow('frame', frame)
cv2.imshow('gray', gray)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap.release()
cv2.destoryAllWindows()

❇️ @raspberry_python
Forwarded from Python Socket
Part1 - Introduction to SQL.pdf
127.9 KB
دوستان سلام. اولین مطلب از مجموعه مباحث SQL با پایتون به پیوست آمده است. لطفا مطالعه بفرمائید.
#DB
#pythonsocket
Forwarded from Python Socket
Scapy Installation and Usage.pdf
326.6 KB
اولین مطلب از مجموعه مباحث Scapy جهت مطالعه به پیوست آمده است. لطفا مطالعه بفرمائید.
#Scapy
#pythonsocket
Forwarded from Sadra Codes
🔍 Create Your Own Command in Linux like rtls


https://ccm.net/faq/2540-linux-create-your-own-command

🔰 @lnxpylnxpy
This media is not supported in your browser
VIEW IN TELEGRAM
Arduino. Raspberry pi. 3dprint. Rubiks cube

@raspberry_python