args [::-1] is a Pythonic way to use a slice operation to reverse a list. You execute the script as follows: $ python reverse.py "Real Python" nohtyP laeR.
確定! 回上一頁