The third simulation game of the 12th Lanqiao Cup-the ASCII code of the letter Q

1. Problem description:

ASCII code corresponds each character to a numerical value (code), which is used for information representation and transmission. In the ASCII code, English letters are coded in order from small to large. For example, the code of letter A is 65, the code of letter 6 is 66, and the code of letter C is 67. What is the code of letter Q?
Answer submission
is one line For questions with blank results, you only need to calculate the results and submit them. The result of this question is an integer. Only fill in this integer when submitting the answer, and fill in the extra content will not be scored.

2. Thinking analysis:

Because you are using python, you can use the ord function to output the ASCII encoding of the letters

3. The code is as follows:

if __name__ == '__main__':
    print(ord("Q"))

 

Guess you like

Origin blog.csdn.net/qq_39445165/article/details/115140692