نسخه ۳.۹ پایتون امروز بهصورت رسمی منتشر شد. تغییرات این نسخه رو میتونید در لینک زیر مشاهده کنید:
https://docs.python.org/3.9/whatsnew/3.9.html
https://docs.python.org/3.9/whatsnew/3.9.html
تو پایتون، تابع int از اون چیزی که فکر میکنید به مراتب قوی تره!
برای مثال اعداد به هر زبانیو براتون معادل یونیکدشون تو انگلیسی میکنه
https://twitter.com/raymondh/status/1288332005373960193?s=09
برای مثال اعداد به هر زبانیو براتون معادل یونیکدشون تو انگلیسی میکنه
https://twitter.com/raymondh/status/1288332005373960193?s=09
Twitter
Raymond Hettinger
#Python tip: The int() function is smarter than it looks: >>> int('42') 42 >>> int('४२') 42 >>> int('٤٢') 42
بهترین الگوی موفقیت شما دیروز شماست.
اگر امروز بهتر از دیروز هستید، پس موفقید.
در موفقیت کسی را الگو قرار ندهید!
اضطراب دیگری شدن، شما را از خود شدن هم باز میدارد.
موفقیت یک استثنا نیست، یک قاعده است، برای کسانی که پشتکار دارند.
#آداب_خردمندی
اگر امروز بهتر از دیروز هستید، پس موفقید.
در موفقیت کسی را الگو قرار ندهید!
اضطراب دیگری شدن، شما را از خود شدن هم باز میدارد.
موفقیت یک استثنا نیست، یک قاعده است، برای کسانی که پشتکار دارند.
#آداب_خردمندی
محاسبات موازی آسان تر از هر زمان دیگر در سی پلاس پلاس 17 و STL!
C++17 introduced the parallel implementation of STL routines, I love It, It's a clean and standard way to achieve parallelism using CPU threads. If you are looking for such a high level way for parallel programming on GPU, then take a look at Thrust:
https://docs.nvidia.com/cuda/thrust/index.html
It provides an efficient parallel implementation of C++ STL (most of it) for CUDA devices!
C++17 introduced the parallel implementation of STL routines, I love It, It's a clean and standard way to achieve parallelism using CPU threads. If you are looking for such a high level way for parallel programming on GPU, then take a look at Thrust:
https://docs.nvidia.com/cuda/thrust/index.html
It provides an efficient parallel implementation of C++ STL (most of it) for CUDA devices!
study-guide-data-manipulation-with-python.pdf
372.5 KB
great #python data manipulation cheat sheet
منبع:
https://github.com/shervinea/mit-15-003-data-science-tools/tree/master/en
منبع:
https://github.com/shervinea/mit-15-003-data-science-tools/tree/master/en
✌️👌 بلاخره نسخه 1.0 کتابخانه معروف یادگیری ماشین scikit-learn منتشر شد!
با دستور
pip install -U scikit-learn
یا
conda install -c conda-forge scikit-learn
این نسخه را نصب کنید!
https://scikit-learn.org/stable/auto_examples/release_highlights/plot_release_highlights_1_0_0.html
📢More ML news: @cvision
با دستور
pip install -U scikit-learn
یا
conda install -c conda-forge scikit-learn
این نسخه را نصب کنید!
https://scikit-learn.org/stable/auto_examples/release_highlights/plot_release_highlights_1_0_0.html
📢More ML news: @cvision
یه ریپو پر از قطعه کدها با خروجی های غیر قابل انتظار از پایتون و دلیلشون
#pitfall #pitfalls
github.com/satwikkansal/wtfpython
#pitfall #pitfalls
github.com/satwikkansal/wtfpython
چه چیزی پرینت میشود؟
l = [12,5,3,10]
print(l.sort())
l = [12,5,3,10]
print(l.sort())
Anonymous Quiz
9%
[12,5,3,10]
65%
[3,5,10,12]
26%
None