String backwards traversal

 . 1 name = ' zrtzrt ' 2 Print (name [:: -. 1]) # minus infinity to minus infinity traversal step 

name [-1:: -1] indicates the first bit from the end of the unit 1 according to positive infinity traversal

Left - Right positive step

Right - Left negative step

Guess you like

Origin www.cnblogs.com/zhangRT312/p/12109830.html