首页 > 教育

下列语句什么意思

更新时间2018-11-22 14:42:43

if count == 0:    temp.append(lists[count + 1])    temp.append(lists[count])    temp.append(lists[count + 2])elif count == 1:    temp.append(lists[count - 1])    temp.append(lists[count])    temp.append(lists[count + 1])elif count == 2:    temp.append(lists[count - 2])    temp.append(lists[count])    temp.append(lists[count - 1])

if count == 0:    temp.append(lists[count + 1])    temp.append(lists[count])    temp.append(lists[count + 2])elif count == 1:    temp.append(lists[count - 1])    temp.append(lists[count])    temp.append(lists[count + 1])elif count == 2:    temp.append(lists[count - 2])    temp.append(lists[count])    temp.append(lists[count - 1])


=========意思是---------见如下===============


结果  1:

如果计数 = = 0: temw. append (列表 [计数 + 1]), 则为 temw. append (列表 [计数]), 则为 "发送" (列表 [计数 + 2])elif 计数 = 1: temt. append (列表 [计数-1]) temt. append (列表 [计数]), 发送 (列表 [计数 + 1])elif 计数 = = 2 = 2 (列表 [计数-2])发送 (列表 [计数]), 发送 (列表 [计数-1])


结果 2:

如果计数== 0:temp.append(列表[COUNT + 1])temp.append(列表[COUNT])temp.append(列表[计数+ 2])的elif计数== 1:temp.append(列表[计数 - 1])temp.append(列表[COUNT])temp.append(列表[计数+ 1])的elif计数== 2:temp.append(列表[计数 - 2])temp.append(列表[COUNT]) temp.append(列表[数 - 1])

 

结果 3:

如果count=0:temp.append(count +列表[ 1 ](列表)temp.append [数](列表)temp.append count + [ 2 ] elif count = =):(1 temp.append count列表[ 1 ](列表)temp.append [数](列表)temp.append count + [ 1 ] elif count)= 2:temp.append(count列表[ 2 ](列表)temp.append [数] [(列表)temp.append count1)]


结果 4:

如果计数==0:诱惑。附录(列出[计数+1])诱惑。附录(列出[计数])(表数+1)(表数=2)(表数-2)(表数-2)(表数)(表数)(表数-1)

上一篇:诗歌《假如我是一道光》好在哪里?

下一篇:兰州民政局是事业编制还是公务员编制?