#آموزش
💎 خواندن فایل تصویری
💎 خواندن فایل تصویری
from PIL import Image
im = Image.open("Image.bmp")
💎 تبدیل به فرمت JPEGfrom future import print_function
import os, sys
from PIL import Image
for infile in sys.argv[1:]:
f, e = os.path.splitext(infile)
outfile = f + ".jpg"
if infile != outfile:
try:
Image.open(infile).save(outfile)
except IOError:
print("cannot convert", infile)
❇️ @raspberry_python#آموزش
پخش فایل صوتی با pyglet
طریقه نصب pyglet
پایتون 2
پایتون 3
پخش فایل صوتی با pyglet
import pyglet
audio = pyglet.media.load("audio.wav")
audio.play()
طریقه نصب pyglet
پایتون 2
pip install pyglet
پایتون 3
pip3 install pyglet
❇️ @raspberry_python#آموزش
💎 استفاده از حلقه for ، داخل توابع در زبان پایتون
def func(params):
for value in params:
print ('Got value {}'.format(value))
if value == 1:
print (">>>> Got 1")
return
print ("Still looping")
return "Couldn't find 1"
func([5, 3, 1, 2, 8, 9])
💎 OUTPUT
Got value 5
Still looping
Got value 3
Still looping
Got value 1
>>>> Got 1
❇️ @raspberry_python
💎 استفاده از حلقه for ، داخل توابع در زبان پایتون
def func(params):
for value in params:
print ('Got value {}'.format(value))
if value == 1:
print (">>>> Got 1")
return
print ("Still looping")
return "Couldn't find 1"
func([5, 3, 1, 2, 8, 9])
💎 OUTPUT
Got value 5
Still looping
Got value 3
Still looping
Got value 1
>>>> Got 1
❇️ @raspberry_python
pir.pdf
624.5 KB
راه اندازی سنسور pir با رزبری پای و ارسال ایمیل با تشخیص هر گونه حرکت
از طرف مهندس @Rezaghrr
🔰 @raspberry_python
از طرف مهندس @Rezaghrr
🔰 @raspberry_python
🌈 Raincon
Rainbow Conky For Linux Users.
Download and Clone with :
GitHub.com/lnxpy/Raincon
🔰 @lnxpylnxpy
🔰 @raspberry_python
Rainbow Conky For Linux Users.
Download and Clone with :
GitHub.com/lnxpy/Raincon
🔰 @lnxpylnxpy
🔰 @raspberry_python
تنظیمات رزبری پای بدون مانیتور و کیبورد
https://www.youtube.com/watch?v=toWBmUsWD6M&feature=youtu.be
❇️ @raspberry_python
https://www.youtube.com/watch?v=toWBmUsWD6M&feature=youtu.be
❇️ @raspberry_python
YouTube
How to Setup a Raspberry Pi Without a Monitor or Keyboard
How to Setup a Raspberry Pi Without a Monitor or Keyboard
In this video, I'll walk you through the steps of setting up a Raspberry Pi from the first boot up without a keyboard or monitor. This process requires only a PC or Mac, an ethernet cable, and access…
In this video, I'll walk you through the steps of setting up a Raspberry Pi from the first boot up without a keyboard or monitor. This process requires only a PC or Mac, an ethernet cable, and access…
#آموزشک
با دستور cat میتوانیم چند فایل را توی خروجی ترمینال چاپ کنیم:
`@raspberry_python
با دستور cat میتوانیم چند فایل را توی خروجی ترمینال چاپ کنیم:
$~ cat file0 file1
text from file0
text from file1
با دستور <
میتوانیم خروجی ترمینال رو توی یک فایل ذخیره کنیم $~ ls > test.txt
با استفاده از این دو میتوانیم چند فایل را باهم یکی کرده و در داخل یک فایل جدید قرار بدیم 😃
$~ cat file0 file1 file2 > combined_file`@raspberry_python
8 تا از تکست ادیتورهای خوب و ناشناخته لینوکس
@raspberry_python
@raspberry_python
How to Set Up System Locale on Ubuntu 16.04
https://www.rosehosting.com/blog/how-to-set-up-system-locale-on-ubuntu-16-04/
@raspberry_python
https://www.rosehosting.com/blog/how-to-set-up-system-locale-on-ubuntu-16-04/
@raspberry_python
کتاب آمار و احتمالات مهندسی مخصوص رشته کامپیوتر از 10% تا 85% رو توضیح داده👍
🔰 @raspberry_python
🔰 @raspberry_python
Pychips 🖼
Make You'r Own Picture with Pychips
Licensed by GPL
〽 Download & Clone with :
GitHub : GitHub.com/lnxpy/Pychips
🔰 @lnxpylnxpy
🔰 @raspberry_python
Make You'r Own Picture with Pychips
Licensed by GPL
〽 Download & Clone with :
GitHub : GitHub.com/lnxpy/Pychips
🔰 @lnxpylnxpy
🔰 @raspberry_python