I tried to run the following program using python 3.2, there is an error: the "module" object does not have the "div" attribute. Can anyone tell me what should I do to fix this? I really appreciate it!
import operator
ops = {'+':operator.add,'-':operator.sub,'*':operator.mul,'/':operator.div}
AttributeError: object 'module' does not have attribute 'div
source
share