結果 : how to check if string has digits in python