print中有变量和带有引号的字符串混用时,变量前后要加逗号
比如
a = 'apple'
b = 'boy'
print(a,' is good and, ' , b , ' want to have it.')
print中有变量和带有引号的字符串混用时,变量前后要加逗号
比如
a = 'apple'
b = 'boy'
print(a,' is good and, ' , b , ' want to have it.')
本文标题:Python3的print用法注意
本文链接:https://www.haomeiwen.com/subject/rggivttx.html
网友评论