C++ 代码
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
using std::string;
int main()
{
string str = "1234567890-=QWERTYUIOP[]ASDFGHJKL;'ZXCVBNM,./";
string s;
while(getline(cin,s)){
for(auto& elem : s){
if(elem == ' ') continue;
elem = str[str.find(elem) - 1];
}
cout << s << endl;
}
return 0;
}