name = "my name is alex"

print(name.capitalize())
print(name.count("a"))
print(name.center(50,"-"))
print(name.find("name"))
print(name[name.find("name"):])
print("abjc123".isdigit())
print('bbeb'.isalpha())
print("bajfbvkjBbkBVkbvkJvkbk不v开始吧".isidentifier())#是不是一个合法的变量名
print("bucsjc".isupper())  #是不是都是大写
print("+".join(["1","2","3","4"]))
print(name.ljust(50,"*"))
print(name.rjust(50,"-"))
print("bjhvabNJKVBDJK".lower())
print("bjsbvjbKJNAJV".upper())
print("\nAlex".lstrip())
print("---------")
p = str.maketrans( "abcdefgfigklmn","12345asdfghjkloiuyt")
print("alefghdfax li".translate(p))

print("alex li ".replace("1","L",1))






