check if string includes other characters besides the type you want python

前端 未结 0 1041
感动是毒
感动是毒 2020-12-24 02:28

I want to be able to return a boolean value if there are any other characters that deem false. Ex.

x = "0&"
if x.isnumeric() == False:
     retu         


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