目录 1.取奇数① 用for取奇数② 1.取奇数 ① 用for取奇数 word = 'Python' for q in range(len(word)): # 用len()将字符串转换为列表 if q % 2 == 0: print(q+1, ':', word[q]) ②