美文网首页
2018-09-17——Python之print语句

2018-09-17——Python之print语句

作者: Ariel_wyy | 来源:发表于2018-09-17 18:54 被阅读0次

print语句也可以跟上多个字符串,用逗号“,”隔开,就可以连成一串输出:

>>> print 'The quick brown fox', 'jumps over', 'the lazy dog'

The quick brown fox jumps over the lazy dog

print会依次打印每个字符串,遇到逗号“,”会输出一个空格,因此,输出的字符串是这样拼起来的:

相关文章

网友评论

      本文标题:2018-09-17——Python之print语句

      本文链接:https://www.haomeiwen.com/subject/aiarnftx.html