print函数在builtins模块内
print源码如下:
def print(self, *args, sep=' ', end='\n', file=None): # known special case of print """ print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False) Prints the values to a stream, or to sys.stdout by default. Optional keyword arguments: file: a file-like object (stream); defaults to the current sys.stdout.//输出源,默认是终端显示 sep: string inserted between values, default a space.//字符串之间的连接符 end: string appended after the last value, default a newline.//默认会在字符串末尾添加换行 flush: whether to forcibly flush the stream.//将缓存里面的内容立即输出到标准输出流,默认值是false """ pass