print([object,...] [,seo = ‘ ’] [, end = '\n'] [, file = sys.stdout])
sep:
It means what character string is used to separate the output variables. If it is the default, the default is a space. It
end:
means that it ends with a certain string, and the default is a new line.
file:
Specifies the text object file to be transmitted, or other similar standard stream file; sys.stdout default
format string %d
%s
%(value; value)
;
wherein %4d
represents the output result is four strings, such as the four output string is not a space Placeholder.
%04d
It means that the output result is 4 character strings, if there are not enough 4 character strings, 0 is used to occupy the place.
for example:
input( prompt )
The prompt message prompt is displayed. It is the content entered by the user.
input( )
The return value of the function is a string type, which can be int()
replaced with an integer type through the function.