char1 = input("请输入一个小写英文字母:");
if(ord(char1) >= ord('a') and ord(char1) <= ord('z')):
print(char1.upper());
else:
print("不是小写字母!");
char1 = input()
if(ord(char1) >= ord('a') and ord(char1) <= ord('z')):
print(char1.upper())
else:
print(char1)
Emm我不是很明白你的意思