01序列由三种成分构成:10, 11, 0
求序列经过解析后,最后一个成分是否为0
class Solution(object):
def isOneBitCharacter(self,bits):
length = len(bits)
c = 1
while c <length:
if c == length - 1:
return True
elif bits[c] == 0:
c += 1
else:
c += 2
return False