判断字母_python3
判断是不是字母
http://www.nowcoder.com/questionTerminal/91a588dd4cd244bfa616f17603ec123c
while True:
try:
c = input()
if str.isalpha(c):
print('{} is an alphabet.'.format(c))
else:
print('{} is not an alphabet.'.format(c))
except EOFError:
break
腾讯公司福利 1143人发布
查看25道真题和解析