• 2021-04-14 问题

    当输入为 ‘cbabc’ 时,下列程序的输出结果为?s1=r...=s2*2index+=1prints2

    当输入为 ‘cbabc’ 时,下列程序的输出结果为?s1=r...=s2*2index+=1prints2

  • 2022-06-04 问题

    当输入为 ‘cbabc’ 时,下列程序的输出结果为?s1 = raw_input() index = 0 s2 = '' while index [ len(s1) - 1: if s1[index] ] s1[index + 1]: s2 += s1[index] else: s2 = s2 * 2 index += 1 print s2

    当输入为 ‘cbabc’ 时,下列程序的输出结果为?s1 = raw_input() index = 0 s2 = '' while index [ len(s1) - 1: if s1[index] ] s1[index + 1]: s2 += s1[index] else: s2 = s2 * 2 index += 1 print s2

  • 1