📜  字符串验证器hackerrank - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:10.693000             🧑  作者: Mango

代码示例1
if __name__ == '__main__':
    s = input()
    print(any(a.isalnum() for a in s) )
    print(any(a.isalpha() for a in s) )
    print(any(a.isdigit() for a in s) )
    print(any(a.islower() for a in s) )
    print(any(a.isupper() for a in s) )