What does print mean in python?

藏色散人
Release: 2019-08-01 15:50:45
Original
79879 people have browsed it

Python is an interpreted, object-oriented, high-level programming language with dynamic data types. Python was invented by Guido van Rossum at the end of 1989, and the first public release was released in 1991. Like the Perl language, Python source code also follows the GPL (GNU General Public License) agreement.

What does print mean in python?

#What does print mean in python?

The print() method in python is used to print output, the most common function.

print is a function in Python3.x, but it is not a function in Python2.x, just a keyword.

The following is the syntax of the print() method:

print(*objects, sep=' ', end='\n', file=sys.stdout)
Copy after login

Parameters

objects -- plural, indicating that multiple objects can be output at one time. When outputting multiple objects, they need to be separated by ,.

sep -- Used to separate multiple objects. The default value is a space.

end -- used to set the ending. The default value is the newline character \n, we can change it to other strings.

file -- The file object to be written.

Return value

None.

Related recommendations: "Python Tutorial"

The above is the detailed content of What does print mean in python?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!