If you're talking about this man taiji66 10, it's true. I have seen 7 doctors, the only old doctor who can video in real time.
.
Open IDLE, that is, at the beginning, all programs, python2.7 or 3.2, idle python GUI. If you don't use your own idle, you can also use other text editors or directly use the dos window.
Python programming module function
First, import the module \ nmodule function in the first format. That \n stands for line break, which is often used in Ruby language. Derive floor function in mathematics module. invest
Import mathematics
Math Floor (39.9)
Python programming module function
Enter two lines of code, then press Enter, and the output is 39.0. Remove the decimal place after 39.9, and keep one decimal place without rounding. At this time, the usage of the floor function needs to be imported, not directly. Now you can use other import methods.
From the entrance floor of mathematics
The result is the same as 39.0. These two import methods are the same. The method of importing a function from a form module can directly use the function without adding the module name. Try to import another module and enter the code.
Press Enter, and the output result is 3.0. The interpreter still keeps the numerical value at one decimal place, and the sqrt function is also in the math module, which needs to be imported with the import command. This sqrt is used to find the square root of a number, and the square root of 9 is 3.