Checking if any character in a string is alphanumeric

后端 未结 0 1005
暗喜
暗喜 2021-02-07 17:39

I want to check if any character in a string is alphanumeric. I wrote the following code for that and it\'s working fine:

s = input()

temp = any(i.isalnum() fo         


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