热线电话:13121318867

登录
2019-01-24 阅读量: 1320
python中sep和end结合有什么作用

sep参数与end参数一起使用会产生很棒的结果。通过组合sep和end参数的一些示例。

print('G','F', sep='', end='')

print('G')

#n provides new line after printing the year

print('09','12', sep='-', end='-2016n')

print('prtk','agarwal', sep='', end='@')

print('geeksforgeeks')

输出:

0.0000
2
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子