Python's/and//operations

Source: Internet
Author: User

#谁能告诉我这个框框怎么去掉!!!
In Python, the "/" Operation is a division operation, and the "//" operation is an integer except for the following differences:

"/" means floating-point division, returning floating-point results; #当除数和被除数都是整数的时候,/returns integer result, more languages/operations are except rounding operations

"//" denotes integer division and returns an integer result;# when a divisor or divisor is a floating-point number,//returns a floating-point number

A = 3= 4= 4.0print a/   b #0print A/c #0.Print a// b #0 print a//c #0.0

Python's/and//operations

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.