Python学习历程

Python3的字符串使用

2017-01-01  本文已影响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)
上一篇 下一篇

猜你喜欢

热点阅读