某市实施交通管制,早晚高峰根据车牌号单双号限行。车牌尾号为单号的双号日限行,车牌尾号为双号的单号日限行。若车牌尾号不是数字,则从车牌号中取最后一位数字。 实现上述功能的Python 程序代码如下: chepai = input('请输入您的车牌:浙A') for i in range( __________________,-1): if '0' <= chepai[i] <='9': lastnum = int(chepai[i]) if lastnum % 2 == 0: print('车牌尾号双号,单号日限行!') else: print('车牌尾号为单号,双号日限行!') break 划线处应填入代码是( )
A . len(chepai)-1,-1
B . len(chepai),0
C . len(chepai)-1,0
D . 1,len(chepai)+1
答案:A