Обложка канала

Библиотека Python разработчика

20835 @BookPython

Библиотека Python разработчика. Книги по программированию на Python.

Библиотека Python разработчика

4 года назад
Открыть в
Python supports the new @ operator since Python 3.5. It's intended to use for matrix multiplication. However, none of the standard objects support it; it was introduced specifically for the numpy module. To make your objects support this operator, you should define one of the following methods: __matmul__, __rmatmul__ or __imatmul__. You can learn more from PEP 465.