点击运行
#!/usr/bin/python3 str = "this"; # No space & digit in this string print (str.isalpha()) str = "this is string example....wow!!!"; print (str.isalpha())
运行结果 :
正在执行...