The 1th question of Pythonchallenge

Source: Internet
Author: User
Tags ord rfc

1, K, M O->q E-G

Hint: Everyone thinks twice before solving this problem.

Text:g FMNC wms Bgblr RPYLQJYRC gr ZW fylb. RFYRQ Ufyr AMKNSRCPQ ypc DMP. Bmgle GR GL ZW fylb GQ glcddgagclr ylb rfyr ' q UFW rfgq rcvr GQ QM Jmle. Sqgle QRPGLE.KYICRPYLQ () GQ PCAMKKCLBCB. LMU ynnjw ml RFC spj.

2 Increase in ASCII code value per letter

#-*-coding:utf-8-*-Str="g FMNC WMS Bgblr RPYLQJYRC gr ZW fylb. Rfyrq ufyr amknsrcpq ypc dmp. Bmgle GR GL ZW fylb GQ glcddgagclr ylb rfyr ' q UFW RFGQ RCVR GQ QM Jmle. Sqgle QRPGLE.KYICRPYLQ () GQ PCAMKKCLBCB. LMU ynnjw ml RFC spj."#(ord (x) +2-ord (' a '))%26#the ASCII value of x after +2 is the first letterPrint("". Join (Map (LambdaX:CHR (Ord ('a') + (ord (x) +2-ord ('a'))% 26)ifX.isalpha ()Elsex, str)))
(1)

After conversion text:i hope you didnt translate it by hand. Thats what computers is for. Doing it in by hand are inefficient and that's why the this text was so long. Using String.maketrans () is recommended. Now apply to the URL.

Then convert the URL and then replace the map to go to the next page: ocr.html

Replace the PC in the URL with PCC to see the official solution to the previous question

The 1th question of Pythonchallenge

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.