結果 : check if string has characters python