📅  最后修改于: 2022-03-11 14:46:58.936000             🧑  作者: Mango
str1 = "python1" str2 = "nonumber" str3 = "12345" print(any(chr.isdigit() for chr in str1)) print(any(chr.isdigit() for chr in str2)) print(any(chr.isdigit() for chr in str3))