python 怎么把list中的True映为1,False映射为0

NoSuchKey