In that example, k takes on the values 0, 1, 2, ... n-1, as the loop runs. That is: Python allows two other forms of the range expression, for your.
確定! 回上一頁