字符串可以相加,相乘
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)
字符串可以相加,相乘
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
网友评论