python中print输出的时候总会在每个输出之间加一个空格, 想要去除这个空格,那么就得用标准的输入输出了。 import sys sys.stdout.write("asd") 这样就不会输出空格了。