python Copy consonants = ['b', 'f', 'g', 'h', 'j', 'k'] i = consonants.index('g') print('The index of g is:', i).
確定! 回上一頁