美文网首页Python学习历程
Python3的print用法注意

Python3的print用法注意

作者: 心际花园 | 来源:发表于2017-01-01 22:35 被阅读8次

    print中有变量和带有引号的字符串混用时,变量前后要加逗号

    比如

    a = 'apple'
    b = 'boy'
    print(a,'  is good and, ' , b , ' want to have it.')
    

    相关文章

      网友评论

        本文标题:Python3的print用法注意

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