如何找到所有键盘字符和符号的移位值?

使用Python获取键盘上所有键和符号的“大写”值的最简单方法是什么?

我知道这适用于标准字母

mystr = "a"
print(mystr.upper()) # "A"

But what if I want to convert "1" into "!"? What is the best way to do this? mystr.upper() in this case outputs "1" still.