The string acts like a list of its chars, so for ch in s: print(ch) prints all the chars in a string. Range. The range(n) function yields the numbers 0, 1, ...
確定! 回上一頁