🐍 Python & Raspberry 🐍
8.01K 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
https://youtu.be/nwIgxrXP-X4


تاحالا شده که بخواید مسیر اجرای یک کدی رو قدم به قدم ببینید ؟

یا تاحالا شده برای تدریس پایتون و اینکه قدم به قدم توی کد چ اتفاقی میوفته ب مشکل خورده باشید و مجبور باشید روش trace کردن رو یاد بدید و این چیزا؟

میتونید خیلی راحت از ی ide ب اسم
Thonny
استفاده کنید :)))

#kasra
@raspberry_python
👍7🔥4
چن تا از مهم ترین توابع تو پانداز که هرکدوممون باید بلد باشیم

اگه نمیدونید اون توابع چیکار میکنن میتونید داکشو بخونید و اگه بازم متوجه نشدید، اون قسمتی که مشکل دارید زیر همین پست بپرسید

#kasra
@raspberry_python
👍7
هرراه حلی برا این سوال به ذهنتون میرسه بگید و در اخر پایتونیک ترین روش رو اعلام خواهیم کرد(خواهشا قبل از نوشتن توی جوابارو نگاه کنید که جواب تکراری نفرستید):

تعداد ۵هایی که بعد از یک داخل لیست اومدن رو بشمرید.

مثلا
lst = [1,2,3,4,5,1,4,1,5]
باید عدد یک برگردونه

به عبارت دیگه میخوایم تعداد جفت های
1,5
رو بشمریم
#kasra
@raspberry_python
👍5
how to flatten a nested list (i.e., matrixes or boards)
1- one easy way is to use np.reshape, np.ravel, np.flatten
(note: ravel and flatten has a slight difference. Check the documents if you don't know or ask in the comments if you couldn't find the difference)

2- using python for:
flatten = []
for row in mat:
flatten.extend(row)

3- what if we don't want to use NumPy and still searching for an efficient way:
flatten = reduce(list.__add__, mat)

note: you can use operator.add if you want a more general function


#kasra
@raspberry_python
👍2
Represent the mistakes as advantages :)


#kasra
@raspberry_python
🔥18👍4👎2
وقتی ک نمیتونم باگ کدمو رفع کنم:
میشه زود درست بشی و بعدش بگی من دوست خوبتم؟

@raspberry_python
#kasra
👍10👎2🔥2
look-ahead and look-behind in Regular Expressions (Regex)

اگه فهم این ۴ تا موضوع براتون مشکل هست این پست خیلی کمکتون میکنه مطمینن

#kasra
@raspberry_python
👍7
ایا این کد درسته ؟
#kasra
@raspberry_python
👍1
This media is not supported in your browser
VIEW IN TELEGRAM
Coursera had started with my machine learning class. I’m delighted to announce that I’ll soon be teaching a new Machine Learning Specialization. Please help me spread the word! You can sign up here:

https://www.deeplearning.ai/program/machine-learning-specialization/

🔗 Andrew Ng (@AndrewYNg)

این اقا رو ک حتما میشناسید
حالا اومده یه دور جدید ماشین لرنینگ بزاره که ب گفته خودش خیلی بهتر از قبلیه
لینک های ثبت نامش رو هم اون بالا گذاشتم :)
@raspberry_python
#kasra
👍10🔥2