Python:实现S-DES加密算法 def apply_table(inp, table): res = "" for i in table: res += inp[i - 1] return res