ch = input('') if ch >= 'A' and ch <= 'Z':
print(ch.lower())
elif ch >= 'a' and ch <= 'z':
print(ch.upper())
else:
print(ord(ch))
想要更好的排版?
快去学 markdown
https://oj.socoding.cn/discuss/view?id=426