Unexpected outcome for negation of True and False using ~

后端 未结 0 1747
挽巷
挽巷 2020-12-30 18:14

Apologies for overexplaining here.

I was trying to see if a string has any digits or not. So I wrote simple code for this, which is:

any(char.isdigit()         


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