📜  python 字母 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:33.600000             🧑  作者: Mango

代码示例6
test = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
test.isalpha()
# This will return True if all chars in string are from a-z or A-Z and Flase in all other cases