Resultados da pesquisa a pedido "zen"

16 a resposta

Como imprimir em stderr em Python?

Existem várias maneiras de escrever no stderr: # Note: this first one does not work in Python 3 print >> sys.stderr, "spam" sys.stderr.write("spam\n") os.write(2, b"spam\n") from __future__ import print_function print("spam", ...