Study notes (3): zero-based mastering Python entry to actual combat-where does a dot go (2)

Learn now: https://edu.csdn.net/course/play/26676/338772?utm_source=blogtoedu

The built-in function that can be rounded in python: round (the number to be rounded, keep the number of decimal places);

But this does not completely solve the problem of hexadecimal conversion (it can solve 0.1+0.2; but it cannot solve the rounding of 1.2345), and there will still be incorrect results in some problems. But a tool that can solve this problem will be introduced in later chapters.

 

The representation of scientific notation in python:

Use e to represent 10; then e2 is the power of 10. For example, 1.2e2 is 120, where both uppercase E and lowercase e can be expressed in this way.

 

The id() function can view the address of the object on this computer; and the help function can call up the help description file corresponding to the object. This object can be a value or a function.

Guess you like

Origin blog.csdn.net/Bernze/article/details/109189196