Python basic input and output and built-in functions

input (): the output is in the form of a string
Insert picture description here
eval (): you can remove the outer quotation marks of the string
Insert picture description here
sorting and reverse order
Insert picture description here
enumeration and iteration
Insert picture description here
enumerate lazy evaluation, can not be viewed directly, the example is installed in the list to view
map ()
Insert picture description here
Example: Input a natural number, and output each bit of it at a time
Insert picture description here
Insert picture description here
. There are two parameters in the function.
Insert picture description here
Use the ordinary method:
Insert picture description here
reduce ()
Insert picture description here
filter ()
zip ()

Published 72 original articles · praised 3 · visits 3555

Guess you like

Origin blog.csdn.net/id__39/article/details/104898771