# Capitalize output first letter capitalization
# test= ' LeI '
# v=test.capitalize ()
# print (v)
# casefold Output all lowercase (special language can also, with less)
# Lower output full lowercase
# Center Center can fill fill only single-character (padding optional)
# test= ' Lei '
# V=test.center (20, ' * ')
# print (v)
#********lei*********
# Count statistics appear after the number of characters can be added range
# test= ' Leileileilei '
# V=test.count (' l ', 5,8)
# print (v)
# 1
# EndsWith StartsWith Judging the beginning and end of the range can be added after
# test= ' Leio '
# v1=test.endswith (' io ')
# v2=test.startswith (' Le ')
# Print (V1,V2)
# True True
# Find the first post-output position from the beginning, add range 1 not found
# test = ' Leilei '
# v = test.find (' il ')
# print (v)
# 2
#index can not find an error, use Find not Error List in the index position to find the sequence
# Format formatted to replace a string placeholder with the specified value
# test = ' I am {name} '
# Print (test)
# v = test.format (name= ' lei ')
# print (v)
#i am {Name}
# I am Lei
# test = ' I am {name},age{a} '
# V1 = Test.format (name= ' lei ', a=10)
# v2 = test.format_map ({' name ': ' Lei ', ' a ': 22})
# Print (V1,V2)
# I am lei,age10 I am lei,age22
# Isalnum judgment string contains numbers and letters, and other special characters are false
# test = ' asds12324 '
# v = test.isalnum ()
# print (v)
#Ture
String Basics 1