کمی با ریاضیات
import math
print (math.exp(4))
print (math.log(2,3))
print (math.log2(16))
print (math.log10(10000))
print (math.pow(3,2))
print (math.sqrt(25))
output :
54.598150033144236
0.6309297535714574
4.0
4.0
9.0
5.0
@raspberry_python
import math
print (math.exp(4))
print (math.log(2,3))
print (math.log2(16))
print (math.log10(10000))
print (math.pow(3,2))
print (math.sqrt(25))
output :
54.598150033144236
0.6309297535714574
4.0
4.0
9.0
5.0
@raspberry_python
مجموعه اموزش های پایتون
مدرس دکتر سیدناصر رضوی استاد دانشگاه تبریز
https://www.youtube.com/watch?v=iXGAdXlUrbo
@rasspberry_python
مدرس دکتر سیدناصر رضوی استاد دانشگاه تبریز
https://www.youtube.com/watch?v=iXGAdXlUrbo
@rasspberry_python
YouTube
برنامهنویسی پایتون (۱-۱) - معرفی درس
در این ویدیو ابتدا منابع و مراجع درس برنامهنویسی پایتون معرفی شده است و سپس فهرست مطالبی که در طول درس بررسی خواهند شد، به طور کامل معرفی شده است. این فهرست شامل چهار بخش اصلی است که در این ویدیو درباره هر یک از بخشها به طور مختصر توضیحاتی ارائه شده است.…
Forwarded from 🐍 Python & Raspberry 🐍 (فرهاد ناصری زاده)
🔴 نحوه اتصال ال سی دی کاراکتری به رزبری پای
@raspberry_python
@raspberry_python
Forwarded from 🐍 Python & Raspberry 🐍 (فرهاد ناصری زاده)
🔴🌟 کد پایتون اتصال ال سی دی کاراکتری با رزبری پای
import time
import Adafruit_CharLCD as LCD
lcd_rs = 25
lcd_en = 24
lcd_d4 = 23
lcd_d5 = 17
lcd_d6 = 18
lcd_d7 = 22
lcd_backlight = 2
lcd_columns = 16
lcd_rows = 2
lcd = LCD.Adafruit_CharLCD(lcd_rs, lcd_en, lcd_d4, lcd_d5, lcd_d6, lcd_d7, lcd_columns, lcd_rows, lcd_backlight)
lcd.message('Hello\nworld!')
time.sleep(5.0)
lcd.clear()
@raspberry_python
import time
import Adafruit_CharLCD as LCD
lcd_rs = 25
lcd_en = 24
lcd_d4 = 23
lcd_d5 = 17
lcd_d6 = 18
lcd_d7 = 22
lcd_backlight = 2
lcd_columns = 16
lcd_rows = 2
lcd = LCD.Adafruit_CharLCD(lcd_rs, lcd_en, lcd_d4, lcd_d5, lcd_d6, lcd_d7, lcd_columns, lcd_rows, lcd_backlight)
lcd.message('Hello\nworld!')
time.sleep(5.0)
lcd.clear()
@raspberry_python
دوستان گویا ریپازیتوری های pip ب مشکل خوردن و از ای پی های ایران دسترسی ندارن بهشون(نمیدونیم تحریمه یا فیلتر کسی میدونه بگه😅)
ولی فیلا برای دسترسی میتونید از فیلتر شکن استفاده کنید
https://t.me/raspberry_python/1714
یا میتونید از تگ
میتونید هم به صورت System-Wide رو کل سیستم تنظیمش کنید که هر دفعه نیاز نباشه این Flag رو اضافه کنید
https://pip.pypa.io/en/stable/user_guide/#config-file
@raspberry_python
ولی فیلا برای دسترسی میتونید از فیلتر شکن استفاده کنید
https://t.me/raspberry_python/1714
یا میتونید از تگ
—proxy
استفاده کنیدمیتونید هم به صورت System-Wide رو کل سیستم تنظیمش کنید که هر دفعه نیاز نباشه این Flag رو اضافه کنید
https://pip.pypa.io/en/stable/user_guide/#config-file
@raspberry_python
Telegram
🐍 Raspberry & Python 🐍
اموزش استفاده از Tor
نصبش میکنیم :
sudo apt install tor torsocks --reinstall
اجراش میکنیم:
sudo systemctl start tor
حالا بعضی وختا نصب میشه ولی کار نمیکنه اینجوری چک کنیم کار میکنه یا ن :
sudo systemctl status tor
اگه اون نوشته سبزه active(exited) بود…
نصبش میکنیم :
sudo apt install tor torsocks --reinstall
اجراش میکنیم:
sudo systemctl start tor
حالا بعضی وختا نصب میشه ولی کار نمیکنه اینجوری چک کنیم کار میکنه یا ن :
sudo systemctl status tor
اگه اون نوشته سبزه active(exited) بود…
🐍 Python & Raspberry 🐍
دوستان گویا ریپازیتوری های pip ب مشکل خوردن و از ای پی های ایران دسترسی ندارن بهشون(نمیدونیم تحریمه یا فیلتر کسی میدونه بگه😅) ولی فیلا برای دسترسی میتونید از فیلتر شکن استفاده کنید https://t.me/raspberry_python/1714 یا میتونید از تگ —proxy استفاده کنید…
$sudo pip --proxy 5.61.3.81:8080 install somepackageیا میتونید از متغیرهای سیستم استفاده کنید
$export https_proxy=5.61.3.81:8080@raspberry_python
$export http_proxy=5.61.3.81:8080
sudo -E pip install somepackage
🌟 خواندن و نوشتن فایل ها در پایتون
Reading and Writing Files in Python
pythonforbeginners.com/files/reading-and-writing-files-in-python
❇️ @raspberry_python
Reading and Writing Files in Python
pythonforbeginners.com/files/reading-and-writing-files-in-python
❇️ @raspberry_python
PythonForBeginners.com
Reading and Writing Files in Python - PythonForBeginners.com
In this tutorial, learn about reading and writing to files using the python read and write methods. - PythonForBeginners.com
Range Examples
>>> list(range(1,10))❇️ @raspberry_python
[1, 2, 3, 4, 5, 6, 7, 8, 9]
a = range(1, 10)
for i in a:
print i
for a in range(21,-1,-2):
print a,
#output(python2)>> 21 19 17 15 13 11 9 7 5 3 1
>>> list(range(0,20,2))
[0, 2, 4, 6, 8, 10, 12, 14, 16, 18]
>>> list(range(20,0,-2))
[20, 18, 16, 14, 12, 10, 8, 6, 4, 2]
>>> list(range(10))
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> list(range(-3.5,9.8))
[-3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8]
🌟 سایت هایی برای آموزش پایتون
🔰 pythonforbeginners.com/
🔰 practicepython.org
🔰 zetcode.com/
❇️ @raspberry_python
🔰 pythonforbeginners.com/
🔰 practicepython.org
🔰 zetcode.com/
❇️ @raspberry_python
PythonForBeginners.com
Learn Python By Example - PythonForBeginners.com
PythonForBeginners.com offers free content for those looking to learn the Python programming language. We offer the above Python Tutorial with over 4,000 words of content to help cover all the basics. We also offer an email newsletter that provides more tips…
🌟برخی از متغیرهای تصادفی و تابع چگالی احتمال (pdf) در پایتون
🔰 datacamp.com/community/tutorials/probability-distributions-python
🔰 bigdata-madesimple.com/how-to-implement-these-5-powerful-probability-distributions-in-python/
❇️ @raspberry_python
🔰 datacamp.com/community/tutorials/probability-distributions-python
🔰 bigdata-madesimple.com/how-to-implement-these-5-powerful-probability-distributions-in-python/
❇️ @raspberry_python
Datacamp
Probability Distributions in Python Tutorial
Learn about probability distributions with Python. Understand common distributions used in machine learning today!
How_To_install_python_and_PycharmPro_On_Windows.rar
13.1 MB
آموزش نصب اخرین نسخه پایتون و پایچارم پرو بر روی ویندوز و ایجاد
پروژه Hello World
با تشکر فراوان از مهندس
@MohammadrezaHMP
❇️ @raspberry_python
پروژه Hello World
با تشکر فراوان از مهندس
@MohammadrezaHMP
❇️ @raspberry_python
Forwarded from 🐍 Python & Raspberry 🐍 (فرهاد ناصری زاده)
https://www.balena.io/blog/build-an-environment-and-air-quality-monitor-with-raspberry-pi/
❇️ @raspberry_python
❇️ @raspberry_python
balena Blog
Build an Air Quality Monitor with InfluxDB, Grafana, & Docker on RPi
balenaSense reads temperature- humidity- barometric pressure- and air quality- and provides a dashboard that you can access from anywhere.