标签: python operators
是否可以将自定义字符/符号映射到类方法 +映射到__add__,+=映射到__iadd__
+
__add__
+=
__iadd__
我已查看operator模块,但没有选项可以创建自定义表达式来映射方法。
operator