def fOperator(stack, z, mode):
if mode == 1: # num
stack.append(math.factorial(int(z)))
elif mode == 2: # str
stack.append([''.join(p) for p in itertools.permutations(z)])
elif mode == 3: # list
stack.append([list(p) for p in itertools.permutations(z)])
else:
monadNotImplemented(mode, '')
# g
评论列表
文章目录