name = 'alex jack'
print(name)
print(name.capitalize()) #行首字母大写
print(name.count("a")) #统计字母a的个数
print(name.center(20,"-")) #共打印20个字符,变量值居中,剩下的用-填充
print("Total".center(30,"-"))
print(name.find('jack')) #查找字符串的起始位置
print('aaa'.isidentifier()) #判断是否为合法的标识符(变量名)
print('alex li'.replace('l','L')) #对变量值作替换
#对于字符串太长的问题,可分多行书写,python会自动join相临的字符串
x = ('This will build a very long long '
'long long long long long long string')
print(x)