'''
ÔÚ Python1.6 ºÍºó¼Ì°æ±¾£¬¸ü¶àµÄ×Ö·û´®²Ù×÷¶¼¿ÉÒÔ×÷Îª×Ö·û´®·½·¨À´·ÃÎÊ,
Èç ÏÂÀý ËùÊ¾, string Ä£¿éÖÐµÄÐí¶àº¯ÊýÖ»ÊÇ¶ÔÏà¶ÔÓ¦×Ö·û´®·½·¨µÄ·â×°.
'''

text = "Monty Python's Flying Circus"

print "upper", "=>", text.upper()
print "lower", "=>", text.lower()
print "split", "=>", text.split()
print "join", "=>", "+".join(text.split())
print "replace", "=>", text.replace("Python", "Perl")
print "find", "=>", text.find("Python"), text.find("Perl")
print "count", "=>", text.count("n")