默认调用 sys.stdout.write() 方法 import sys sys.stdout.write("hello") 会在控制台打印:hello 转载于:https://www.cnblogs.com/mxuanli/p/10060650.html