ممکنه برخورده باشید بعضی مواقع متغیر رشته ای به این صورت است!
b'salam'
Why the 'b's in front of the string? Bytes literals are always prefixed with 'b' or 'B'; they produce an instance of the bytes type instead of the str type. They may only contain ASCII characters; bytes with a numeric value of 128 or greater must be expressed with escapes.
https://stackoverflow.com/questions/6269765/what-does-the-b-character-do-in-front-of-a-string-literal
b'salam'
Why the 'b's in front of the string? Bytes literals are always prefixed with 'b' or 'B'; they produce an instance of the bytes type instead of the str type. They may only contain ASCII characters; bytes with a numeric value of 128 or greater must be expressed with escapes.
https://stackoverflow.com/questions/6269765/what-does-the-b-character-do-in-front-of-a-string-literal
Stack Overflow
What does the 'b' character do in front of a string literal?
Apparently, the following is the valid syntax:
b'The string'
I would like to know:
What does this b character in front of the string mean?
What are the effects of using it?
What are appropriate
b'The string'
I would like to know:
What does this b character in front of the string mean?
What are the effects of using it?
What are appropriate
functools — Higher-order functions and operations on callable objects
partial gives default values to the parameters of a function that would otherwise not have default values.
#pytrick
partial gives default values to the parameters of a function that would otherwise not have default values.
#pytrick
How to count the occurrence of certain item in an ndarray in Python?
فرض کنید در یک وکتور نامپای منحصر به فردها و تعداشان را میخواهید بدانید...
مناسب برای گرفتم آمار لیبل های دیتاست .
{0: 7, 1: 4, 2: 1, 3: 2, 4: 1}
فرض کنید در یک وکتور نامپای منحصر به فردها و تعداشان را میخواهید بدانید...
مناسب برای گرفتم آمار لیبل های دیتاست .
a = numpy.array([0, 3, 0, 1, 0, 1, 2, 1, 0, 0, 0, 0, 1, 3, 4])
unique, counts = numpy.unique(a, return_counts=True)
dict(zip(unique, counts))
{0: 7, 1: 4, 2: 1, 3: 2, 4: 1}
سلام.
از دوستانی که کلاس آزمایشگاه متلب داشتند و پایتون ارائه دادم؛ ممنون میشم پاسخ سوال زیر را برایم در خصوصی ارسال کنند. @alirezaweb
یکی از اساتید دیگر دانشگاه به گفته دانشگاه قصد دارد در کارگاه متلب، پایتون ارائه کند.
چه مباحثی از کلاس در چه درسهایی به کارتان آمده و چه مباحثی نیاز بود بیان شود و بیان نشده است؟
از دوستانی که کلاس آزمایشگاه متلب داشتند و پایتون ارائه دادم؛ ممنون میشم پاسخ سوال زیر را برایم در خصوصی ارسال کنند. @alirezaweb
یکی از اساتید دیگر دانشگاه به گفته دانشگاه قصد دارد در کارگاه متلب، پایتون ارائه کند.
چه مباحثی از کلاس در چه درسهایی به کارتان آمده و چه مباحثی نیاز بود بیان شود و بیان نشده است؟
Manipulate audio with a simple and easy high level interface https://pydub.com
https://github.com/jiaaro/pydub
https://github.com/jiaaro/pydub
GitHub
GitHub - jiaaro/pydub: Manipulate audio with a simple and easy high level interface
Manipulate audio with a simple and easy high level interface - jiaaro/pydub
Forwarded from Tensorflow(@CVision) (Alireza Akhavan)
#خبر
نامپای روی GPU با قابلیت autodiff و اضافه شدن JIT کامپایلر ...
(Pic: https://t.iss.one/cvision/813 )
JAX is NumPy on the CPU and GPU with autodiff and JIT compilation. It's just been released, try it out!
https://github.com/google/jax
همین الان روی گوگل کولب شروع کنید:
https://colab.research.google.com/github/google/jax/blob/master/notebooks/quickstart.ipynb
نامپای روی GPU با قابلیت autodiff و اضافه شدن JIT کامپایلر ...
(Pic: https://t.iss.one/cvision/813 )
JAX is NumPy on the CPU and GPU with autodiff and JIT compilation. It's just been released, try it out!
https://github.com/google/jax
همین الان روی گوگل کولب شروع کنید:
https://colab.research.google.com/github/google/jax/blob/master/notebooks/quickstart.ipynb
Telegram
Tensorflow
نامپای را روی GPU تصور کنید!
Python's list comprehensions are awesome
even_squares = [x * x for x in range(10) if not x % 2]
#pytrick
even_squares = [x * x for x in range(10) if not x % 2]
#pytrick
چند وقتیه که در توئیتر جوی راه افتاده که developer ها نوت بوک jupyter را خیلی نقد میکنند.
یکی از توسعه دهندگان این پروژه از این جو منفی رنجیده شده و گفته میخوام از توئیتر برم!
https://twitter.com/yuvipanda/status/1072379534631190529
پیام قبلی جرمی هاوارد نیز به این واکنش، و دلجویانه بوده!
یکی از توسعه دهندگان این پروژه از این جو منفی رنجیده شده و گفته میخوام از توئیتر برم!
https://twitter.com/yuvipanda/status/1072379534631190529
پیام قبلی جرمی هاوارد نیز به این واکنش، و دلجویانه بوده!
https://twitter.com/K1sadri/status/1073135184038498304
همش از پایتون خوب گفتیم، توئیت های مخالف هم ببینیم...
همش از پایتون خوب گفتیم، توئیت های مخالف هم ببینیم...
Twitter
کیوان (@K1sadri) | Twitter
The latest Tweets from کیوان (@K1sadri). شيميدان نامراد
Here are the top 15 Python libraries covering Data Science, Data Visualization, Deep Learning, and Machine Learning.
https://www.kdnuggets.com/2018/12/top-python-libraries-2018.html
https://www.kdnuggets.com/2018/12/top-python-libraries-2018.html
در محیط پایتون تایپ کنید
import antigravity!!CPython easter egg
Forwarded from Programming Resources via @like
Free online book for learning data science with python programming language
یکی از کتاب های خوب Oreilly که بصورت رایگان و آنلاین قرار داده شده تا به کمک اون علوم داده را با استفاده از زبان پایتون میشه یاد گرفت
#python #data_science #data_mining
thanks to: aliREZA
@pythony
jakevdp.github.io/PythonDataScienceHandbook
یکی از کتاب های خوب Oreilly که بصورت رایگان و آنلاین قرار داده شده تا به کمک اون علوم داده را با استفاده از زبان پایتون میشه یاد گرفت
#python #data_science #data_mining
thanks to: aliREZA
@pythony
jakevdp.github.io/PythonDataScienceHandbook
#jupyter_notebook
پشتیبانی jupyter notebook از اکثر زبان هاُ از جمله متلب و اکتاو!
حتی اگر زبان مورد نظرتون هنوز پشتیبانی نمیشه خودتون اضافه کنید!
https://github.com/Calysto/metakernel
پشتیبانی jupyter notebook از اکثر زبان هاُ از جمله متلب و اکتاو!
حتی اگر زبان مورد نظرتون هنوز پشتیبانی نمیشه خودتون اضافه کنید!
https://github.com/Calysto/metakernel