Update strings.py
parent
cdb7fddd3a
commit
8b54a634ca
|
@ -15,7 +15,7 @@ print('字符串是不是大写: ', str1.isupper())
|
|||
print('字符串是不是以hello开头: ', str1.startswith('hello'))
|
||||
print('字符串是不是以hello结尾: ', str1.endswith('hello'))
|
||||
print('字符串是不是以感叹号开头: ', str1.startswith('!'))
|
||||
print('字符串是不是一感叹号结尾: ', str1.endswith('!'))
|
||||
print('字符串是不是以感叹号结尾: ', str1.endswith('!'))
|
||||
str2 = '- \u9a86\u660a'
|
||||
str3 = str1.title() + ' ' + str2.lower()
|
||||
print(str3)
|
||||
|
|
Loading…
Reference in New Issue