def write(s, fp=None):
# type: (Union[str, bytes], Optional[IO[Any]]) -> None
"""Write s to the binary stream fp (default is stdout).
"""
efp = fp if fp is not None else sys.stdout
rawstream(efp).write(bytestr(s))
文章目录