python arithmetic operators 200308

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

  • Exercise all operators and features Summary
Published 64 original articles · won praise 1 · views 814

Guess you like

Origin blog.csdn.net/whalecode/article/details/104733982