天天看點

python函數作用的描述_【Python】函數功能描述

Help on built-in function print in module builtins:

01-print(...)

print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False)

Prints the values to a stream, or to sys.stdout by default.

Optionalkeyword 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.

Here is a list of the Python keywords. Enter any keyword to get more help.

False class from or

None continue global pass

True def if raise

and del import return

as elif in try

assert else is while

async except lambda with

await finally nonlocal yield

break for not

Help on built-in function format in module builtins:

format(value, format_spec='', /)

Return value.__format__(format_spec)

format_spec defaults to the empty string.

See the Format Specification Mini-Language section of help('FORMATTING') for

details.