python arithmetic operators 200308
Others
2020-03-10 12:58:10
views: null
Arithmetic Operators
Operators |
description |
Examples |
+ |
plus |
10 + 20 = 30 |
- |
Less |
10 - 20 = -10 |
* |
Multiply |
10 * 20 = 200 |
/ |
except |
10 / 20 = 0.5 |
// |
Take divisible |
(Supplier) 2 9 // output portion 4 to return the integer division |
% |
Take the remainder |
Returns the division remainder = 1 2 9% |
** |
power |
Also known as power, power, 2 3 = 8 ** |
Operator drills
Published 64 original articles
·
won praise 1
·
views 814
Origin blog.csdn.net/whalecode/article/details/104733982