Python程序:判断输入字符类型
ch = input()
if ch.isalpha(): print('输入的是英文字母') elif ch.isdigit(): print('输入的是数字') else: print('输入的是其他字符')
原文地址: https://www.cveoy.top/t/topic/lRpg 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
ch = input()
if ch.isalpha(): print('输入的是英文字母') elif ch.isdigit(): print('输入的是数字') else: print('输入的是其他字符')
原文地址: https://www.cveoy.top/t/topic/lRpg 著作权归作者所有。请勿转载和采集!