Python3之len的使用
2017-01-01 本文已影响10人
心际花园
she = 'Mary'
he = 'Juli'
does = ' said '
words = 'Happy new year! I hope we could have a good time!'
she_does = she + does
he_does = he + does
print(she_does,'Do you know the number of these words')
print(he_does,'Of course,the number is ',len(words))\