美文网首页Python学习历程
Python3的字符串使用

Python3的字符串使用

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

    字符串可以相加,相乘

    she ='Mary'
    he ='Juli'
    does = ' said'
    her_does =she + does
    his_does = he + does
    words = 'love '*3
    
    print(her_does,', If you said the love three times ,I will marry you! ')
    print(his_does,', It is so easy, then ', words)
    

    相关文章

      网友评论

        本文标题:Python3的字符串使用

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