参考网址 有两种方法 1. import sys sys.stdout.write('.') 2. from __future__ import print_function print('.', end='')