📌  相关文章
📜  Python - Comment vérifier une corde contient un nombre - Python 代码示例

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

代码示例1
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))