There are two default parameters sep and end in print(). The sep function is to set the separator, the default is sep=' ' (space)
Example:
Related recommendations: " Python Video Tutorial》
coffee_cup = ‘coffee’ print(“I love my”, coffee_cup, “!”,sep=”*”)
Output:
I love my*coffee*!
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!