Home > Backend Development > Python Tutorial > What is the python division operator?

What is the python division operator?

藏色散人
Release: 2020-06-02 09:07:30
Original
7625 people have browsed it

What is the python division operator?

What is the python division operator?

One: "/" Division - x is divided by y b / a Output result 2

Two: "//" Divide by integer - Return the integer part of the quotient (taken down Whole)

>>> 9//2
4
>>> -9//2
-5
Copy after login

Recommended: "python tutorial"

The above is the detailed content of What is the python division operator?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template