|
发表于 2020-11-17 18:59:05
|
显示全部楼层
>>> help(print)
Help on built-in function print in module builtins:
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. # 附加在最后一个值之后的字符串,默认为换行,end=''就是空,就是不换行。
flush: whether to forcibly flush the stream. |
|