style: 优化部分文件中的函数及类注释
This commit is contained in:
@@ -10,6 +10,7 @@ class StringUtil:
|
||||
def is_blank(cls, string: str) -> bool:
|
||||
"""
|
||||
校验字符串是否为''或全空格
|
||||
|
||||
:param string: 需要校验的字符串
|
||||
:return: 校验结果
|
||||
"""
|
||||
@@ -28,6 +29,7 @@ class StringUtil:
|
||||
def is_empty(cls, string) -> bool:
|
||||
"""
|
||||
校验字符串是否为''或None
|
||||
|
||||
:param string: 需要校验的字符串
|
||||
:return: 校验结果
|
||||
"""
|
||||
@@ -37,6 +39,7 @@ class StringUtil:
|
||||
def is_http(cls, link: str):
|
||||
"""
|
||||
判断是否为http(s)://开头
|
||||
|
||||
:param link: 链接
|
||||
:return: 是否为http(s)://开头
|
||||
"""
|
||||
|
Reference in New Issue
Block a user