摘要: def check_str(value): # 检查你输入的是否是字符类型 if isinstance(value, str): # 判断字符串以什么结尾 if value.endswith('.sh'): return '%s 是以.sh结尾的字符串' % value # 判断字符串以什么开头 e 阅读全文
posted @ 2020-04-27 09:15 胸怀丶若谷 阅读(1122) 评论(0) 推荐(0) 编辑