How to check if a Python string contains letters, numbers and '_' sign but nothing else?

前端 未结 0 599
礼貌的吻别
礼貌的吻别 2020-12-23 13:34

I\'d like to check if a Python string contains BOTH letter and number, but nothing else. In other words, strings like "A530", "D592" should return True,

相关标签:
回答
  • 消灭零回复
提交回复
热议问题