User defined __mul__ method is not commutative

后端 未结 2 508
醉酒成梦
醉酒成梦 2020-12-29 21:26

I wrote a class to represent vectors in Python (as an exercise) and I\'m having problems with extending the built-in operators.

I defined a __mul__ meth

2条回答
提交回复
热议问题