End to end of the string generated python

Using the CHR () and the ord () function, facilitate the creation of a string attached to the first

x=30
n=0
l=[]
for i in range(x):
    l.append (CHR (the ord ( " A " ) + n-))   # CHR, the ord function as lowercase ord ( "a")
    n+=1
    if n==26:
        n=0
S = '' .join (L)       # List to String

 

Guess you like

Origin www.cnblogs.com/imhuanxi/p/11344996.html