1 、搭配字串使用 str1 = 'python' for index,value in enumerate(str1): print(f'{index}:{value}') # 結果 0:p 1:y 2:t 3:h 4:o 5:n # 2、搭配 ...
確定! 回上一頁