Python - Caesar Cipher

前端 未结 2 1981
别跟我提以往
别跟我提以往 2021-01-23 05:36

I\'m new to Python and thought I\'d try to make a Caesar cipher and could use some help with my code. It looks like this:

def cipher(input):
    input = input.lo         


        
2条回答
  •  太阳男子
    2021-01-23 05:55

    The statement

    output.append(alphabet[pos])
    

    should be inside the else block. In case of i == ' ', the output.append is run twice

提交回复
热议问题