码迷,mamicode.com
首页 > 编程语言 > 详细

Python 一次性多行打印多个变量

时间:2019-02-27 15:48:30      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:pytho   python   bar   http   mamicode   img   image   inf   打印   

 

 

>>> n = 123

>>> f = 456.789

>>> s1 = ‘hello ,world‘

>>> s2 = ‘hello, \‘adam\‘‘

>>> s3 = r‘hello, "bart"‘

>>> s4 = r‘‘‘hello,

lisa!‘‘‘

>>> print(n,f,s1,s2,s3,s4,sep=‘\n‘)

123

456.789

hello ,world

hello, ‘adam‘

hello, "bart"

hello,

lisa!

技术图片

技术图片

 

Python 一次性多行打印多个变量

标签:pytho   python   bar   http   mamicode   img   image   inf   打印   

原文地址:https://www.cnblogs.com/silencey/p/10444124.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!