Percent sign at the end of the output of python script [closed]
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago . Improve this question Why is a percent sign at the end of the output of the python script? $ echo "TEST TEST" | trim TESTTEST% #!/usr/bin/env python import sys if __name__ == "__main__": for line in sys.stdin: sys.stdout.write(''.join(line.split())) 回答1: The % you see there might actually be your