classSolution:defIsContinuous(self,arr: List[int]) ->bool:# write code here book =set() mx, mi, cnt0 =1,13,0for x in arr:if x ==0: cnt0 +=1continue book.add(x) mx =max(mx, x) mi =min(mi, x)# 组成顺子的条件:没有重复牌,最大和最小的差小于等于 4returnlen(book)==5- cnt0 and mx - mi <=4