-->
当前位置:首页 > 题库

PROGRAMMING:JMU Python Caesar encryption algorithm

Luz5年前 (2021-05-10)题库529
Write a Caesar password encryption program, receive the text and key K input by the user, and replace the letters A-Z and A-Z in the plaintext with the k-th letter after them.
###Input format:
Receiving two lines of input, the first line is plaintext to be encrypted, and the second line is key K.
###Output format:
Output encrypted ciphertext.
###Input example:
Here is a set of inputs. For example:
```in
Hello World!
three
```
###Output example:
The corresponding output is given here. For example:
```out
Khoor Zruog!
```







answer:If there is no answer, please comment