def output(channel, outmode):
# type: (int or Sequence[int], int or bool or Sequence[int] or Sequence[bool]) -> None
__check_mode()
if isinstance(channel, Sequence):
def zip_outmode():
# type: () -> Sequence[tuple]
if isinstance(outmode, Sequence):
assert len(channel) == len(outmode)
return zip(channel, outmode)
else:
return zip(channel, [outmode] * len(channel))
for (c, m) in zip_outmode():
__output(__to_channel(c), m)
else:
__output(__to_channel(channel), outmode)
评论列表
文章目录