🐍 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
#آموزش
import matplotlib.pyplot as plt

fig,axes= plt.subplots(nrows=2, ncols= 3)

x= [1,2,3,4,5]

y=[x**2 for x in x]

axes[0][1].plot(x,y)
axes[0][1].set_title('Non-Inverted Plot')

axes[1][0].plot(y,x)
axes[1][0].set_title('Inverted Plot')

plt.tight_layout()

plt.show()

🔰 @raspberry_python
#آموزش
🔰🔰 Create a Pie Chart

import matplotlib.pyplot as plt

labels= ['Mortgage', 'Utilities', 'Food', 'Gas']

colors=['blue', 'yellow', 'green', 'orange']

sizes= [1500, 600, 500, 300]

plt.pie(sizes,labels=labels, colors=colors, startangle=90, autopct='%1.1f%%')

plt.axis('equal')

plt.show()

🔰 @raspberry_python
یک سایت خوب برای مباحث رمزنگاری با پایتون
از طرف @Stack_Over_Flow

https://www.blog.pythonlibrary.org/2016/05/18/python-3-an-intro-to-encryption

🔰 @raspberry_python
آموزش افزایش سرعت پایتون
از طرف @mirruzh


http://earthpy.org/speed.html


🔰 @raspberry_python
مینی کامپیوترهای LattePanda با پردازنده های اینتل ویندوز ۱۰ و تمامی توضیع های لینوکس را میتوان بر روی این مینی کامپیوتر ها اجرا کرد و توانایی پردازش بسیار بالا در ابعاد کوچک را دارند
LinkPerview


@raspberry_python
DCP – Transfer Files Between Linux Hosts Using Peer-to-Peer Network

instal dcp:
npm i -g dat-cp

run this command on source host:
dcp file.ext

run this command on target host:
dcp <generated public key>

MoreInfo

@raspberry_python
گرفتن موقعیت مکانی با زبان پایتون




import requests

ip_request = requests.get('https://get.geojs.io/v1/ip.json')

my_ip = ip_request.json()['ip']

print(my_ip)

geo_request_url = 'https://get.geojs.io/v1/ip/geo/' + my_ip + '.json'

geo_request = requests.get(geo_request_url)

geo_data = geo_request.json()

print(geo_data)


🔰 @raspberry_python
#آموزش

📌How to Draw a Circle Using Matplotlib in Python


>>> import matplotlib.pyplot as plt

>>> def create_circle():
circle= plt.Circle((0,0), radius= 5)
return circle

>>> def show_shape(patch):
ax=plt.gca()
ax.add_patch(patch)
plt.axis('scaled')
plt.show()


>>> if name== 'main':
c= create_circle()
show_shape(c)

❇️ @raspberry_python