Python isalpha()方法

Python 字符串 Python 字符串

描述

Python isalpha() 方法检测字符串是否只由字母组成。

语法

isalpha()方法语法:


str.isalpha()

参数

  • 无。