1.输出A~Z
a = 65
for i in range(26):
print("%c"%(a+i)+" ",end="")#将上下两行连接起来
2.输出a ~ z
a = 97
for i in range(26):
print("%c"%(a+i)+" ",end="")#将上下两行连接起来
标签:输出,26,end,基础,range,循环,print,连接起来
来源: https://blog.csdn.net/weixin_48180029/article/details/111402655