[Python commonly used gadgets] python prints 26 English letters

# -*- coding: utf-8 -*-
"""
Created on Wed Jan  6 16:12:11 2021

@author: sangliping
"""

for i in range(26):
    print(chr(ord('A')+i))

According to the above method, you can know any letter by knowing the distance between letters.

Search [Zixin] on WeChat or scan the QR code below to make friends and make progress together. The article is continuously updated. At present, I am organizing the study notes of Python hundred battles, and I look forward to more updates in the future.Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_51656605/article/details/112279641