Home  >  Article  >  Backend Development  >  What is the python division operator?

What is the python division operator?

藏色散人
藏色散人Original
2020-06-02 09:07:307566browse

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

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!

Statement:
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