返回顶部

收藏

Demonstrates the len() function and the in operator

更多
message = 'this is a test'

print '\nThe length of your message is:', len(message)

print '\nThe most common letter in the English language, 'e',',
if 'e' in message:
    print 'is in your message.'
else:
    print 'is not in your message.'

标签:Python,String

收藏

0人收藏

支持

0

反对

0

发表评论