|
发表于 2020-4-7 17:26:43
|
显示全部楼层
按住Ctrl 然后点击 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.
"""
pass
python 内置默认 end='\n"
\n 是换行符号, 你可以替换其他的
print('abc', end='python') #你运行这个看下 |
|