减法
a, b = 1, 2
# Using the "-" operator:
b - a # = 1
import operator # contains 2 argument arithmetic functions
operator.sub(b, a) # = 1
可能的组合(内置类型):
int
和int
(给一个int
)int
和float
(给一个float
)int
和complex
(给一个complex
)float
和float
(给一个float
)float
和complex
(给一个complex
)complex
和complex
(给一个complex
)