python(但是莫名其妙不给过,思路可参考)

QLxie2023 发表于 4个月前 · 关联问题 判断字符类型

a=input() b=ord(a) if 48<=b<=58:

print('dight')

elif 65<=b<=90:

print('upper')

elif 97<=b<=122:

print("lower")

elif b==32:

print("space")

else:

print('other')

你的digit打错了