# 检验是否含有中文字符
def is_contains_chinese(strs):
for _char in strs:
if '\u4e00' <= _char <= '\u9fa5':
return True
return False
#首字母大写
def firstUp(title):
new_str = '{}{}'.format(title[0].upper(), title[1:])
return new_str
python日常函数集合
最新推荐文章于 2024-09-15 22:31:42 发布