Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1589017
  • 博文数量: 695
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 4027
  • 用 户 组: 普通用户
  • 注册时间: 2013-11-20 21:22
文章分类

全部博文(695)

文章存档

2018年(18)

2017年(74)

2016年(170)

2015年(102)

2014年(276)

2013年(55)

分类: Python/Ruby

2015-11-30 18:03:19

遍历26个大小写字母:
import string
for word in string.uppercase+string.lowercase:
    print word
遍历26个大写字母
import string
for word in string.uppercase:
    print word

遍历26个小写字母:
import string
for word in string.lowercase:
    print word
阅读(4641) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~