What does sep mean in python?

爱喝马黛茶的安东尼
Release: 2019-06-27 09:25:02
Original
39471 people have browsed it

There are two default parameters sep and end in print(). The sep function is to set the separator, the default is sep=' ' (space)

What does sep mean in python?

Example:

Related recommendations: "Python Video Tutorial

coffee_cup = ‘coffee’ print(“I love my”, coffee_cup, “!”,sep=”*”)
Copy after login

Output:

I love my*coffee*!
Copy after login

The above is the detailed content of What does sep 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!