Questions tagged «zen-of-python»

15
පයිතන්හි stderr වෙත මුද්‍රණය කරන්නේ කෙසේද?
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", file=sys.stderr) බව පටහැනි බව පෙනේ Python ක Zen # 13 † ඒ දේ මෙහි වෙනස, සහ එක් ආකාරයකින් හෝ තවත් කිසිදු …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.