Why/how does Python's print built-in allow the “>>” operator? [duplicate]
问题 This question already has an answer here : How does the right-shift operator work in a python print statement? (1 answer) Closed 6 years ago . I searched around and couldn't find an answer to this either on this site or elsewhere (always a challenge searching for topics involving punctuation chars). I was looking up the StringIO in the Python standard library (here) and one of the examples is this (excerpt): import StringIO output = StringIO.StringIO() output.write('First line.\n') print >