python study notes of built-in functions

The reversed # () 
# L = [1,2,3,4,5]
# l.reverse ()
# Print (L)
# L = [1,2,3,4,5]
# the reversed L2 = (L)
Print # (L2)
# retain the original list, returns a reverse iterator

# = L (1,2,23,213,5612,342,43)
# = SLI Slice (1,5,2)
# Print (L [SLI ])
# Print (L [. 1:. 5: 2])

# Print (the format ( 'Test', '<20 is'))
# Print (the format (' Test ','> 40 '))
# Print (the format (' test ',' ^ 40 ') )

Guess you like

Origin www.cnblogs.com/CoolClare/p/10932207.html