Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 uid=99(nobody) gid=98(nobody) groups=98(nobody) Safe-mode: OFF (not secure) /usr/doc/python-2.2.3/html/ref/ drwxr-xr-x | |
| Viewing file: Select action/file-type:
|
m_expr |
::= | u_expr | m_expr "*" u_expr
| m_expr "//" u_expr
| m_expr "/" u_expr |
| m_expr "%" u_expr | ||
a_expr |
::= | m_expr | a_expr "+" m_expr
| a_expr "-" m_expr |
The * (multiplication) operator yields the product of its
arguments. The arguments must either both be numbers, or one argument
must be an integer (plain or long) and the other must be a sequence.
In the former case, the numbers are converted to a common type and
then multiplied together. In the latter case, sequence repetition is
performed; a negative repetition factor yields an empty sequence.
The / (division) and // (floor division) operators yield
the quotient of their arguments. The numeric arguments are first
converted to a common type. Plain or long integer division yields an
integer of the same type; the result is that of mathematical division
with the `floor' function applied to the result. Division by zero
raises the
ZeroDivisionError exception.
The % (modulo) operator yields the remainder from the
division of the first argument by the second. The numeric arguments
are first converted to a common type. A zero right argument raises
the ZeroDivisionError exception. The arguments may be floating
point numbers, e.g., 3.14%0.7 equals 0.34 (since
3.14 equals 4*0.7 + 0.34.) The modulo operator always
yields a result with the same sign as its second operand (or zero);
the absolute value of the result is strictly smaller than the second
operand.
The integer division and modulo operators are connected by the
following identity: x == (x/y)*y + (x%y). Integer division and
modulo are also connected with the built-in function divmod():
divmod(x, y) == (x/y, x%y). These identities don't hold for
floating point numbers; there similar identities hold
approximately where x/y is replaced by floor(x/y)) or
floor(x/y) - 1 (for floats),5.2.
The + (addition) operator yields the sum of its arguments.
The arguments must either both be numbers or both sequences of the
same type. In the former case, the numbers are converted to a common
type and then added together. In the latter case, the sequences are
concatenated.
The - (subtraction) operator yields the difference of its
arguments. The numeric arguments are first converted to a common
type.
floor(x/y) to be one larger than
(x-x%y)/y due to rounding. In such cases, Python returns
the latter result, in order to preserve that divmod(x,y)[0]
* y + x % y be very close to x.
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0199 ]-- |